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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
cuohanele
Helper I
Helper I

DYNAMIC Y AXIS

Hello everyone,

 

Is it possible to dynamically change the Y axis of one visual based on another visual. I have two bar charts with different values but I want for the y axis of the chart on the left to change based on the axis on the right chart. Please advise

 

Screenshot (36).png

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

You can't tie the axes max values together, but you could write a measure to be used in the first visual that shows you a percent of the max value shown in the 2nd one (or some other dynamic calculation to relate them) to get a similar effect.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


How can I go about this? Any example? I think that might work

Hi @cuohanele,

Normally power bi uses highlight effect to the interaction between charts, you cna turn on the 'edit interaction' and change the visual interaction mode to filter instead of highlight, then these corresponding visual graphs will be filtered by your action on the current visual.

Change how visuals interact in a Power BI report 

If you are trying to design visuals that dynamical changes axis and category based on filters, you can also take a look at the following blog about dynamic attribute filters:

Dynamic Attributes In A Power BI Report 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@cuohanele , You set interaction to filter(Cross filter). Click on one of the bar then set it Filter.

There is no control. This will make y-axis to adjust.

 

refer step : https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions

Interactions.png

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

Top Solution Authors