Field Parameters in Power BI
Field parameters let the reader pick which field a visual uses — switch Sales / Orders / AOV on the same chart, or switch the axis between City and Channel — without building three copies of the page.
Friends! Authors duplicate pages for every KPI. Why? They never met field parameters. How? We create a Measure Pick parameter for fictional FreshBasket sales, drop it on a slicer, put the parameter on the chart Values well, then optionally add an axis parameter. One chart, many questions.
मित्रांनो! Authors प्रत्येक KPI साठी pages डुप्लिकेट करतात. का? Field parameters भेटलेच नाहीत. कसे? FreshBasket sales साठी Measure Pick parameter, स्लायसर वर ठेवायचे, chart Values मध्ये parameter, मग हवे असल्यास axis parameter. एक chart, अनेक प्रश्न.
मित्रों! Authors हर KPI के लिए pages डुप्लिकेट करते हैं. क्यों? Field parameters मिले ही नहीं. कैसे? FreshBasket sales के लिए Measure Pick parameter, स्लाइसर्स पर रखें, chart Values में parameter, फिर चाहें तो axis parameter. एक chart, कई सवाल.
Quick answer
Vertical path:
- Modeling → New parameter → Fields.
- Tick
[Total Sales],[Orders],[AOV]→ name it Measure Pick. - Put Measure Pick on a slicer (single select).
- Chart Values gets the parameter field — remove the old hard-coded measures.
- Optional: second parameter for City / Channel / Month on the axis.
- Click each slicer value and read the number.
Slicer picks a field → visual uses that field → same chart, new question
Real example: one bar, three shop questions
| City | Sales | Orders | AOV |
|---|---|---|---|
| Mumbai | 1000 | 2 | 500 |
| Pune | 160 | 2 | 80 |
Without a parameter you build three charts. With a field parameter:
- Slicer = Sales → Mumbai bar 1000, Pune 160.
- Slicer = Orders → both cities 2.
- Slicer = AOV → Mumbai 500, Pune 80.
- Rows of the model did not change. The visual swapped which measure it asked for.
Why the helper exists: the Values well can only show what you put there. The parameter is a special field that points at the chosen measure.
What do I need before this guide?
- Working measures (DIVIDE for AOV).
- A bar chart (choose a chart).
- Course: Field parameters — measures.
Before and after (look at the tables first)
Before
आधी (Before)
पहले (Before)
After
नंतर (After)
बाद में (After)
Create a measure parameter
A field parameter lets the reader pick which measure the same chart shows — Sales, Orders, or AOV.
Field parameter वाचकाला निवडू देतो की तोच chart कोणता measure दाखवेल — Sales, Orders, किंवा AOV.
Field parameter पाठक को चुनने देता है कि वही chart कौन सा measure दिखाए — Sales, Orders, या AOV.
Drop the parameter on a slicer. The chart fields well holds the parameter column, not every measure by hand.
Parameter स्लायसर वर ठेवा. Chart च्या fields well मध्ये parameter कॉलम असतो — प्रत्येक measure हाताने नाही.
Parameter स्लाइसर्स पर रखें. Chart के fields well में parameter कॉलम होता है — हर measure हाथ से नहीं.
- Modeling → New parameter → Fields.
- Select the measures. Keep “Add slicer to this page” ticked while learning.
- On the chart, remove
[Total Sales]from Values. - Drag Measure Pick (the parameter column) into Values.
- Format each base measure (currency, whole number). The parameter reuses those formats.
Axis parameter (dimensions)
A second parameter can switch the axis: City, Channel, or Month — one chart, three questions.
दुसरा parameter axis बदलू शकतो: City, Channel, किंवा Month — एक chart, तीन प्रश्न.
दूसरा parameter axis बदल सकता है: City, Channel, या Month — एक chart, तीन सवाल.
- New Fields parameter with City, Channel, Month.
- Put it on the axis well instead of a fixed City.
- Now the same measure can answer “by city” or “by channel”.
- Title the page so readers know the slicer changes the question.
Field parameter vs what-if vs old SWITCH table
- Field parameter — switches fields on visuals.
- What-if parameter — numeric input (discount %, target) for scenarios.
- Disconnected table + SWITCH — older pattern; still useful, but field parameters cover most measure pickers.
Mistakes and calm fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Blank chart | Old measures still on Values; parameter missing | Values = parameter field |
| Wrong format | Base measure not formatted | Format Sales / Orders / AOV |
| Confusing multi-select | Too many fields at once | Single-select slicer |
| Thought it was what-if | Mixed names | Numeric what-if is a different tool |
Ravindra Bagale's Tip
Interview line: “Field parameters swap fields on a visual; what-if parameters feed numbers into measures.” Then show one slicer changing Sales to AOV. Got it?
Ravindra Bagale's Tip – मराठी
Interview line: “Field parameters visual वर fields swap करतात; what-if parameters measures मध्ये numbers देतात.” नंतर एक स्लायसर Sales कडून AOV कडे बदलताना दाखवा. समजलं का?
Ravindra Bagale's Tip – हिंदी
Interview line: “Field parameters visual पर fields swap करते हैं; what-if parameters measures में numbers देते हैं.” फिर एक स्लाइसर्स Sales से AOV बदलते हुए दिखाओ. समझ में आया?
Practice task
- Build Measure Pick for Sales, Orders, AOV.
- Wire one bar chart.
- Add an axis parameter for City and Channel.
- Screenshot each slicer state with the number you expect.
Got it? Field parameter = reader picks the field; one chart answers many questions. Next: report layout. Let us go ahead.
समजलं का? Field parameter = वाचक field निवडतो; एक chart अनेक प्रश्नांची उत्तरे देतो. पुढे: report layout. आता पुढे जाऊया.
समझ में आया? Field parameter = पाठक field चुनता है; एक chart कई सवालों के जवाब देता है. आगे: report layout. अब आगे बढ़ते हैं.
Frequently asked questions
Field parameter vs what-if?
Field parameters switch fields on a visual. What-if parameters are numeric inputs for scenarios.
Why is the chart blank?
You left the old measures on Values and never placed the parameter column.
Can I format each measure?
Format the underlying measures. The parameter points at them; it does not replace their formats.
Disconnected table still needed?
Not for this pattern. Field parameters replaced most SWITCH disconnected-table setups for measure pickers.
Multi-select?
Possible, but single-select is clearer when the card should show one KPI.
Course lessons?
Field parameters for measures and for dimensions, in the dynamic charts chapter.