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
Anonymous
Not applicable

How to set up a slicer that changes the dynamic y axis on more than 1 graph?

Hi! I am pretty new to power BI. Started using it about 1 month ago. 

 

I have seen many videos and posts about creating a slicer to dynamically change the axis in ONE graph. I have a dashboard with about 15 graphs, in order to be able to compare them side by side. I want the user to be able to select an option on the slicer and it change all of the graphs' y axis, as it is different units/data/etc. 

 

I started by trying it out with 2 graphs. I got the dynamic axis to work for the first graph, but when I added the second one, it did not work. It is only showing one of the legend items on the second one and it is not even the right values. This is what I did: 

 

sofiamonroy29_0-1657641522602.png

^ For this one I wrote the first 2 "SELECTEDVALUE" lines for the first graph, and it worked, when I used this measure as the y-axis. However, I just do not know how to incorporate the other graphs into this measure in order to create the slicer. The slicer I made was just the "Field" column of the following table that I made: 

 

sofiamonroy29_1-1657641977536.png

 

This is my first post on the forum (any forum) so I am not sure if I have formatted the question properly. But basically my question is: "How do you create a dashboard with a slicer that dynamically changes the axis of 2+ grpa

4 REPLIES 4
MFelix
Super User
Super User

Hi  @Anonymous ,

 

In this case the best option is to use the new feature Field Parameters check the link below:

 

https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi Miguel, 

 

Thank you for your response. 

 

I did try that. I set my y axis in my line chart to be the field parameter, but it is not graphing it or showing anything when I select options on the slicer. Any idea how to fix this? 

 

Thanks!

Hi @Anonymous ,

 

In the line chart the field parameter shoul be place on the x-axis, if you have columns on the field parameters and your measures on the Y-axis.

 

If your 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



amitchandak
Super User
Super User

@Anonymous , You need to create one more field parameter. That can help you make a dynamic axis

 

https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd

 

 

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.