Forum Discussion

Cabbage_Baby's avatar
Cabbage_Baby
Frequent Visitor
1 year ago
Solved

Measure Not Working on Line Chart Y-Axis Maximum

Hi Power BI Experts, I could use some help with a DAX and visual interaction issue:

I'm trying to create a dynamic Y-axis maximum for a line chart that responds to different levels of date granularity. Here's the measure I created:


 

The intention is to return a different maximum value based on the current date level selected via bookmark navigation (week, month, or year).

When I use this measure in a matrix visual, it works perfectly—returning the expected values when switching between date levels using the bookmark navigator.



 

However, when I try to apply this same measure to the Y-axis Maximum range via Conditional Formatting on a line chart, it doesn’t respond at all. The value remains static, regardless of which date granularity is selected.

 

Is there any workaround to get this formula to work?


Below is the link to my power BI report :

https://drive.google.com/file/d/1PNr_YBySL6FxNSUZMji1lqB23oLzjJw4/view?usp=sharing


Appreciate any insights!

2 Replies