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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NaGaLoTH
New Member

Setting a dynamic Y-axis minimum

Greetings,

 

I have several line and clustered column charts.
X-axis = year and monthnumber
Y=axis column average cost per stop included corrections
DAX:

DIVIDE([total costs], [Total stops])


Y=axis line average cost per stop excluded corrections

DAX:

CALCULATE(DIVIDE([Total costs], [Total stops]), Network[Network] <> "COR")
 
On the page is a pagefilter that shows the last 11 calendar months
Each chart has a filter for a specific depot
on the dashboard is a slicer where you can select different networks

The problem i'm having is the start of the Y-axis. With auto it starts at $0 but when the line is close to the column you can't really see the delta. If i set a specific value it might be to high or to low when switching in the slicer.

I wanted to link the minimun to a DAX that calculates 90% of the minimum vallue in the chart and that switches when selecting a different option in the slicer.
 
I tried DIVIDE([total costs], [Total stops]) * 0.9 but ofcourse that was to easy to think of and doesn't work. I can't figure it out. Please help.
 
 
1 REPLY 1
Anonymous
Not applicable

Hi @NaGaLoTH ,

 

May not have fully understood what you meant. Since 0 multiplied by any number is 0, you could write an addition operation, or you could write an IF statement to try it.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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