Stop 12 · Interactive Reports & StorytellingTopics · 5/9

Field Parameters

Part of the Power BI Roadmap

In short

"Can I see this chart by Profit instead of Sales? And by City instead of Region?" Instead of building four charts, field parameters let users switch the measure or dimension with a slicer.

Field parameters let users pick which measure or dimension a visual shows, like switching a chart between Sales, Profit and Orders, using a slicer.

The jaadu stands at a street-food griddle, holding a ladle over one big crisp dosa while three small bowls of different fillings wait beside it.

Think of it like this

The dosa counter

At a dosa stall the batter and tawa stay the same. You just pick the filling: masala, paneer or cheese. The cook makes the same dosa with your choice. A field parameter keeps the chart the same and lets the reader pick what goes into it.

Watch it happen

Switching a chart's measure

User
Metric slicer
Chart

picks "Profit"

1/4The slicer lists the options defined in the field parameter.

The big ideas

What you need to know

Modeling > New parameter

Choose Fields, pick measures or columns, and Power BI builds the table and slicer for you.

It's a DAX table

Each row holds a display name, a NAMEOF reference to the field and an order number. You can edit the DAX.

Measures or dimensions

One parameter can switch measures on the Y axis, another can switch the X axis between Region, City and Category.

Dynamic titles

SELECTEDVALUE on the parameter's name column gives the chosen label for titles.

See it in code

Walk through the code

dax
1Metric = {2    ( "Sales", NAMEOF ( [Total Sales] ), 0 ),3    ( "Profit", NAMEOF ( [Total Profit] ), 1 ),4    ( "Orders", NAMEOF ( [Order Count] ), 2 )5}6 7Break Down By = {8    ( "Region", NAMEOF ( Store[Region] ), 0 ),9    ( "City", NAMEOF ( Store[City] ), 1 ),10    ( "Category", NAMEOF ( Product[Category] ), 2 )11}12 13Chart Title =14SELECTEDVALUE ( Metric[Metric], "Sales" )15    & " by "16    & SELECTEDVALUE ( 'Break Down By'[Break Down By], "Region" )

1/3Each row is a display name, a reference to the measure and its sort order. Power BI generates this when you use New parameter > Fields.

Two field parameters, one for the measure and one for the axis, plus a title that follows both.

Save yourself the pain

Common mistakes

Oops

Building three bookmarks to switch between Sales, Profit and Orders charts.

Do this instead

One field parameter and one chart do the same with far less upkeep.

Oops

Mixing rupee and percentage measures in one parameter on a single axis.

Do this instead

Margin % on an axis built for ₹ lakh looks flat. Keep measures with similar units together.

Your mission

One chart, nine views

~25 min

Quick check

What does a field parameter let a report user do?

Go deeper

  1. 1Create a field parameter for three measures.
  2. 2Create another to switch the chart axis between Category and Region.
  3. 3Use clear labels so users know what they are switching.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge