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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculated Column with MAX Date

Hi, I have this calculated column called "Ready for Prep":

Screenshot_1.jpg 

 

I need to improve it by making the IF take into account, for each KEY, the MAX date in the column "Change Date".

In the example, I want only a "1" for the first row (which has the MAX date , 04-Jun-2020)

 

Another way to put this is:

I need to Count the KEYS with the MAX "Change Date" when the column "To" is = "Ready for Development "

 

Thanks a lot!

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

If([change date]= maxx(filter(Epicstatuschangelog, [key]=earlier([Key]) && [to] ="Ready for development"),[change date]) && [to] ="Ready for development",
1,0)
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like

If([change date]= maxx(filter(Epicstatuschangelog, [key]=earlier([Key]) && [to] ="Ready for development"),[change date]) && [to] ="Ready for development",
1,0)
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks !!

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