Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Field Parameters, NOT Calculation Groups. SELECTEDMEASURE() functionality without Tabular Editor

FIELD PARAMETERS or CALCULATION GROUPS?
Both are used to dynamicaly change fields/measures in your report/visual.
I would recommend to start with Field Parameters, as far as:

  1. It's more modern feature.
  2. Covers Calculation Groups functionality.
  3. Don't need external tools (like Tabular Editor).
  4. You could use it together with over fields/measures.
  5. Supports  individual values columns sort in matrix (How to sort values in pivoted columns

My favourite tutorial video for this topic by @AlbertoFerrari : Fields parameters in Power BI

Just one problem: how to pass selected measure as variable for another measure?
Example:
I have two almost identical measures: 

 

YTD Sales = CALCULATE([Sales], DATESYTD('Calendar'[DateKey]))

 

and

 

YTD Quantity = CALCULATE([Quantity], DATESYTD('Calendar'[DateKey]))

 

But I want to reduce amount of measures and use something like

 

YTD = CALCULATE([Melected], DATESYTD('Calendar'[DateKey]))
//[Melected] - Measure sELECTED 
//           - measure that could be equal [Sales] or [Quantity] depending on our slicer single choice/election

 

Here is amazing video by @pleblanc  dedicated to this topic:
REDUCE the # of measures with Calculation Groups In Power BI

 

Question: is it possible to get SELECTEDMEASURE() functionality without Tabular Editor?
Answer: Yes
Details: Desired functionality:

DenisSipchenko_1-1691651451226.png

DenisSipchenko_0-1691651427464.png

 

 

 

How To, a 5-step guide (the initial two steps being the focus of this article)


1) Let's create _MeasureSelected table and use it's [Melected Name] column as single choice slicer in our report:

 

DenisSipchenko_3-1691597811816.png

DenisSipchenko_5-1691598017663.png

 

 

2) Create [Melected] measure, that will be equal [Sales] or [Quantity] based on [Melected Name] slicer single choice:

 

DenisSipchenko_6-1691598267138.png

 

 

3) Create [Melected] dependent measures like:

 

DenisSipchenko_7-1691598404768.png

 

 

 

4) Create Field Parameter with list of measures:

 

DenisSipchenko_8-1691598824812.png

 

 

5) Create matrix and Enjoy result

 

DenisSipchenko_2-1691651821705.png

 

 

P.S. Source file (Download)

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.