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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
KV2022
Helper II
Helper II

max date group by columns

Hi, please help

idstagestartenditeration
1127-Jul28-Jul1
1230-Jul1-Aug1
112-Aug4-Aug2

For this, i need to calculate max of start date for each stage

2 REPLIES 2
amitchandak
Super User
Super User

@KV2022 , A new column

 

Maxx(filter(Table, id = earlier([ID])  && [Stage] = earlier([Stage]) ), [Start Date])

 

 

If needed refer

https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

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

Sorry. I gave a wrong scenario. 

 

KV2022_0-1661866776978.png

Output should be like

id stage1 value stage2 value stage3 value

Stage names should be dynamic. here the value are same calculations(diff b/w two dates in days)  for each stage. I  need to write the stage name for each stage in a crosstab. Please help.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.