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,
I used the following article on http://breaking-bi.blogspot.ca/2016/06/power-bipowerpivot-using-slicers-to.html to create a slicer that gives the user the option to choose which measure to display in the chart and now I am wondering if it’s possible to do the same thing with the dimensions instead of the measures so the user will be able to choose the dimension dynamically using additional slicer? If so, how?
Regards,
Ohad
Hi,
I have a table with the following columns:
Instead of creating a separate chart for Item_Quantity and another one for Net_Sales_Amount (for example) I managed to create a slicer (using the link above) that will give the user the option to choose the measure (Y axis) using a slicer from the following columns:
This is the formula that I am using so far for the measure:
Selected_Measure = IF(HASONEVALUE(Data_Measures[Measure]),SWITCH(FIRSTNONBLANK(Data_Measures[Measure],Data_Measures[Measure]),"Item_Quantity",SUM(Data[Item_Quantity]),"Gross_Amount",SUM(Data[Gross_Amount]),"Discount_Amount",SUM(Data[Discount_Amount]),"Net_Sales_Amount",SUM(Data[Net_Sales_Amount])))
Now I am looking to do the same for the dimension (X axis) and save the need of creating separate chart for Store_Name and another one for Category_Group_Name (for example), I would like to create an additional slicer that will give the user the option to choose from the following columns:
Hope that it’s clear now.
Thanks,
Ohad
I had previously asked that same question on the forum and was told that right now, you can only do this with measures, not categorical dimensions. They suggested that I create a psuedo-hierarchy and use drill down to see the various categories on the x-axis. It worked out fairly nicely and did the trick but would have liked the ability to use a slicer. As an aside, the measures that you use in your example have to be all the same data type/format. You cannot mix types of number, date, text, etc.
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 |
---|---|
108 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |