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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
lifesafari
Helper I
Helper I

Find min and max date in relationship order number

Hello,

 

i have a table like this and i need to create a new two colum to have the date start and date end (min and max) for each order (ordine di produzione). 

For example order 5650734146 must be have start date at 03/01/2024 18:50 and finish date at 04/01/2024 03:15.

ORDERSTARTEND
565073414603/01/2024 18:5003/01/2024 20:15
565078975602/01/2024 19:2502/01/2024 20:35
565073414603/01/2024 23:3304/01/2024 03:15
568098784430/01/2024 23:3330/01/2024 23:53

This is an example and this is my file https://docs.google.com/spreadsheets/d/1r6UTQPQ-OUUUFM4LO9OtHfZwSHcNnIUyulhNorJbE7M/edit?usp=sharing

 

1 ACCEPTED SOLUTION
JamesFR06
Resolver IV
Resolver IV

Hi @lifesafari 

I create a table new dates with your sample :

End = calculate(max('New dates'[Fine Fermo Tecnico]),ALLEXCEPT('New dates','New dates'[Ordine Produzione]))
Start = calculate(min('New dates'[Inizio Fermo Tecnico]),ALLEXCEPT('New dates','New dates'[Ordine Produzione]))
 

View solution in original post

1 REPLY 1
JamesFR06
Resolver IV
Resolver IV

Hi @lifesafari 

I create a table new dates with your sample :

End = calculate(max('New dates'[Fine Fermo Tecnico]),ALLEXCEPT('New dates','New dates'[Ordine Produzione]))
Start = calculate(min('New dates'[Inizio Fermo Tecnico]),ALLEXCEPT('New dates','New dates'[Ordine Produzione]))
 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.