Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
65 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |