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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

how generate a calculated column with max date1 for each label

label     DATA1                  NEEDED COLUMN

A           01-01-2023          10-01-2023

A           05-01-2023          10-01-2023

A           10-01-2023          10-01-2023

B           03-01-2023           08-01-2023

B           08-01-2023           08-01-2023

 

how can i generate a calculated column (the  needed column) with max date1 for each label

 

1 ACCEPTED SOLUTION
Avantika-Thakur
Solution Supplier
Solution Supplier

Hi @Anonymous ,

Can you try creating a DAX column with the below formula

Max date = calculate(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[label]))
 
AvantikaThakur_0-1675083319734.png

 

 
Hope this helps!
 
Please accept the solution if this answers your query.
 
Thanks,
Avantika Thakur

View solution in original post

1 REPLY 1
Avantika-Thakur
Solution Supplier
Solution Supplier

Hi @Anonymous ,

Can you try creating a DAX column with the below formula

Max date = calculate(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[label]))
 
AvantikaThakur_0-1675083319734.png

 

 
Hope this helps!
 
Please accept the solution if this answers your query.
 
Thanks,
Avantika Thakur

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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