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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.