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
AlexFelipe
New Member

How to get a table with lastest stage from each name based in date?

image.pngI wanna show in table only the lastest stage from each name based in date.

I tried use MAXX function but i failed.

How can i make it? Thanks everyone

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@AlexFelipe 

 

Please create a new measure and add the following formula:

MaxStage = CALCULATE(MAX(Sheet1[Stage]),FILTER(Sheet1,Sheet1[Date]=MAX(Sheet1[Date])))

 

PowerBI workspace attached

 

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @AlexFelipe 

is the Date column form the same table or from a date table?

From the same table

themistoklis
Community Champion
Community Champion

@AlexFelipe 

 

Please create a new measure and add the following formula:

MaxStage = CALCULATE(MAX(Sheet1[Stage]),FILTER(Sheet1,Sheet1[Date]=MAX(Sheet1[Date])))

 

PowerBI workspace attached

 

Works! Thank you so much!!

I'll just leave the code here for everyone:

 

MaxDate = CALCULATE(MAX(Sheet1[Date]),FILTER(Sheet1,Sheet1[Date]=MAX(Sheet1[Date])))
MaxStage = CALCULATE(MAX(Sheet1[Stage]),FILTER(Sheet1,Sheet1[Date]=MAX(Sheet1[Date])))

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.