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

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.

Reply
ICTJZT
Frequent Visitor

Scale y axis based on legend selection

I have the following bar chart setup in PowerBI. Sum of cut is generally but not always much smaller than sum of fill. I'd like to be able to display them together but I'd also like the y axis to scale appropriately when I select just sum of cut in the legend. Is there a way to achieve this? Currently when I select sum of cut I get the below screenshot, sum of fill is greyed out but still present. Doesn't neccesarily have to be through the legend, I would be happy to have a slicer I am just not sure how to setup a slicer to pick variables to display.

 

ICTJZT_0-1701746683755.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @ICTJZT 
You can use field parameters to achieve the goal ( with a slicer not from legend) if the values are 2 different measures.

Please refer to the linked tutorial:

https://www.youtube.com/watch?v=V6WchPDZibI
if it is split by category that you put on legend, just create a simple slicer with these categories as a field.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @ICTJZT 
You can use field parameters to achieve the goal ( with a slicer not from legend) if the values are 2 different measures.

Please refer to the linked tutorial:

https://www.youtube.com/watch?v=V6WchPDZibI
if it is split by category that you put on legend, just create a simple slicer with these categories as a field.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.