Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi - I have created a custom chart having clustered, staked and line charts by combined 3 visual as shown in the below image. To aling all the 3 visuals, I have set the Y axis limit to 2000, a constant limit . I have a slicer which changes the values in the below chart. for certain filter, the values are too low, therefoe having a higher limit of the Y axis is not useful in terms of visualizing the total received, Total Closed, Carried Forward and Backlog closed count. Is there a way to change the Y axis range dynamically based on the Total values for certain filters in the slicer?
When slicer has all the value selected,
When silcer has some value selected,
Thanks
Fareeth
Hi @hasarinfareeth ,
You can achieve your goal by this DAX:
MaxLimit =
VAR MaxValue =
MAX(
MAX(
[total received],
[Total Closed]
),
MAX(
[Carried Forward],
[Backlog closed]
)
)
RETURN
MaxValue * 1.1
Now select your chart and go to format pane, and in your Y-Axis select the fx to apply maximium limit:
Now the field should be based on the creatd measure:
Now your max will be dynamic and will be based on maximum of your measures increased in 10% (1.1).
Thank you very much @Bibiano_Geraldo but this is not giving me an expected result as one of the value in the visual is a count of total rows.
Tried with the below.
Hi @hasarinfareeth, hello Bibiano_Geraldo, thank you for your prompt reply!
According to your screenshot, your chart only shows four key metrics, why does your MaxLimit calculation include values that are not part of the actual chart?
If possible, please upload the sample pbix file without any sensitive information for further troubleshooting.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.