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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
EugenioProlog
Helper I
Helper I

How Can I align both axis while respecting the filters?

I have this dashboard and I want both my Y axis aligned. I tried creating a "Max_Value" metric and set it as maximum Y limit for both axis, but this metric does not respect my TimeFilter (it shows the Yearly max even when I select monthly). How can i solve this?

Here is the link to my sample dashboard. 
https://drive.google.com/file/d/15Cqmf9xnsXuhpiufceEjrkNCtrBM3H1q/view?usp=sharing 

EugenioProlog_0-1738768197190.png

 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @EugenioProlog 

Since you have 'calendar'[dt_date] on the X-axis, you need to find the maximum of the two measures per dt_date.

To do this, update Max_Value as follows:

Max_Value = 
MAXX (
    VALUES ( 'calendar'[dt_date] ),
    MAX ( [_TotalExpenses], [_TotalSales] )
)

The original Max_Value measure returned the maximum of the totals of the two measures, which didn't change when TimeFilter changed.

 

Does this work for you?

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @EugenioProlog 

Since you have 'calendar'[dt_date] on the X-axis, you need to find the maximum of the two measures per dt_date.

To do this, update Max_Value as follows:

Max_Value = 
MAXX (
    VALUES ( 'calendar'[dt_date] ),
    MAX ( [_TotalExpenses], [_TotalSales] )
)

The original Max_Value measure returned the maximum of the totals of the two measures, which didn't change when TimeFilter changed.

 

Does this work for you?

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors