Skip to content
VirtualLP Virtual Learning Platform

Intermediate: Visual Calculations, Conditional Formatting and Parameters

8 min read Topic 23 of 38 1 hands-on lab

Understand it in simple language

Measures live in the semantic model. Visual calculations operate over the visual's displayed result structure and have their own availability and limitations. Choose the level that matches reuse: a business metric needed across reports generally belongs in a measure. Dynamic format strings can format a numeric measure without converting it into text with FORMAT.

Conditional formatting draws attention to meaningful thresholds. It should be accompanied by text so color is not the only signal.

Do it step by step

  1. Build a matrix with Date month rows, Revenue and Profit values.
  2. Apply background or font conditional formatting to Profit using a documented threshold; keep the numeric label visible.
  3. Create a field parameter through Modeling > New parameter > Fields, select Revenue and Profit, and add its slicer.
  4. Switch the slicer and verify both totals against 2300 and 920.
  5. Where your Desktop version supports visual calculations, add a running-sum visual calculation through the visual's calculation editor and verify month ordering. If unavailable, use the Revenue YTD measure instead and document the difference in scope.
  6. Use a numeric format string appropriate to currency/ratio measures and verify that sorting remains numeric.

Check your result

Does your calculation still mean the same thing when a visual is sorted differently? Test it before use.

If something goes wrong

Feature menus and preview status can change. Check current documentation; never describe a visual-only calculation as a reusable model measure.

Practice data and learning method

Industry practice collection: downloadable retail, finance, HR and operations datasets, dictionaries, full walkthroughs and answer sheets. The cases contain multiple years, multiple related tables, deliberate data defects and known-answer checks. Progress from the small foundation files below to these cases; do not reuse the foundation totals for the larger datasets.

Download Sales.csv, Products.csv, and the dataset guide. These files contain synthetic training data, not real customers. Use the Power BI virtual labs for guided browser practice. Each lab states its supported operations. Then repeat the procedure above in the actual Microsoft tools and save evidence of your result. Try another filter or an intentionally incorrect setting and explain what changed before moving on.

Guided practicals for this topic

Virtual lab · Microsoft Power BI · 35 min

Apply accessible threshold formatting

Hands-on retail case: load the downloadable CSV tables, perform the actions, inspect the full-data result and reconcile it. Includes a paired Desktop procedure.

Open lab

Continue learning from Microsoft

Power BI documentation · DAX reference · Power Query M reference · Power BI analyst skills map. Features, licensing, menus and availability can change; check the relevant official page for your environment.

Practise this topic

Hands-on virtual lab

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.