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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors