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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.