cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft

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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors