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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.