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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors