Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear All,
I have bar graph where it should display different measures based on filter/slicer selection.
Data model looks like:
1. Dimension_Region
2. Fact_sales
Slicer Data which comes from Dimension_Region and looks like below:
--> Select All
--> Asia
--> America
--> Europe
case-1: When "Select All" option selected in the filters/slicers, then it should display "Measure1".
case-2: When remaining option selected in the filters/slicers, then it should display "Measure2"
Please help me how to write DAX expression to implement? Thanks in advance.
Kind Regards,
Maruthi
Solved! Go to Solution.
You'd want to do something like this:
Measure := IF( ISFILTERED(Dimension_Region), [Measure2], [Measure1] )
Where Dimension_Region is replaced with the column that the slicer is getting its data.
You'd want to do something like this:
Measure := IF( ISFILTERED(Dimension_Region), [Measure2], [Measure1] )
Where Dimension_Region is replaced with the column that the slicer is getting its data.
Will this also work on a table/matrix visual?
Hi vega,
I tried but no luck 😞
Above is the error I got it.
You are missing a closing parenthesis after [regions]
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |