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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Wresen
Post Patron
Post Patron

Get last month form a measure

Hi and thanks for reading this.

 

I want to get the max month number based on a measure.

 

month.PNG

 

 

Mesure 1 is doing calaculations and get the results as shown.

If i do MAX(month[month]) now i get 202205 
I would like the get the last month (202112) that has a number calculated.

This needs to be in a measure.

 

I hope i could explain what i want to do.

 

/Thanks 

 

1 ACCEPTED SOLUTION
Deku
Super User
Super User

MAXX(

Filter(

Allselected( table[month]),

Not iSBLANK( [measure] )

),

Table[month]

)


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
Deku
Super User
Super User

MAXX(

Filter(

Allselected( table[month]),

Not iSBLANK( [measure] )

),

Table[month]

)


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Thanks so much @Deku for the help.

Helpful resources

Announcements
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.