Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I have a Slicer that dynamically selects Measures.I was able to achive this for a Single Measure but now i have to display 4 measures when single measure is selectedin slicer .How do I achive this.?
Eg:when Count of Items is selected in the slicer,the graph should display 4 measure(one month Avg,two month avg....) line need to displayed. for Count of Items
I was able to do it for single measure and single calculation using the below
Steps done so far:
1)Create a table with measure to be displayed in Slicer.
2) Create a Measure column for 1 Month Avg (which Includes switch for the 6 measure) as shown below
3)Replicated the same for 3 month Avg ,6month Avg and 12 month Avg..........
When i select Item count in slicer,I get only only one line showing the 1 month avg...
Regards,
Raj
Hi @Anonymous ,
I think this scenario is currently not supported.
In SWITCH(), one condition has one value. And measure always returns a single value.
=SWITCH(MAX('Selection'),"1 Month",[M1],"2 Month",[M2])
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,Based on what I got
That means 4 measure has to be created using the measure slicer
So 4 measure has use the value of slicer
Yes, when i select Item Count from Slicer,I need the graph below to show me four lines (1Month Avg,3 Month Avg,6 month Avg,12 month avg)....
I created 4 measures(one for each month Avg) using switch ( for 6 slicer measures)...anything i am missing?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |