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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
lallac
Frequent Visitor

Getting the max month selected not working properly

Hello everyone, 

I need a formula that returns the maximum month among the selected ones. 

In my file, I have data up until April. I tried using

MAX(ANAG Months [Months]) 

and

MAXX(ALLSELECTED(ANAG Months [Months]), ANAG Months [Months])

but they all give me back "March", even when I select April or May. 

I don't understand what I'm doing wrong. I would appreciate your help!

 

 

2 REPLIES 2
AnalyticPulse
Super User
Super User

hi @lallac 
did you check this relationships?
if the relationships are correct there might be some filter that is preventinfg other month from appearing .
also check your backend data if its there for other months apart from march.

 

Learn Power BI free:

https://analyticpulse.blogspot.com

Learn Power BI free

Powerbi Visualisation

 

AnalyticPulse_0-1715829624787.png

 

 

Hi @AnalyticPulse , thank you for replying. 

There is a relationship between the database that I'm using and the month column, specifically between the column DB [Months] and ANAG Months [Months].

This relationship is working properly, in fact if I select a month from ANAG Month [Month], I can see the data of the month I selected. There are no other filters that block this from working. 

 

I tried to upload the ANAG Month sheet on its own, but the formulas are still giving me the wrong month. If I select the months "March" and "June", it gives me back "March". Could it be a problem with the way that Power BI reads months when they're written in text?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors