Forum Discussion

cuohanele's avatar
cuohanele
Helper I
5 years ago

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

 

4 Replies

  • mahoneypat's avatar
    mahoneypat
    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

     

    • cuohanele's avatar
      cuohanele
      Helper I

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

      • Anonymous's avatar
        Anonymous
        Not applicable

        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