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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Geek0874
Frequent Visitor

Power Query - Add Column which is global minimum of another column

Hi,

 

I have the the following data :

response_timestampidstatusinfos
26/10/2023 4:30 PM1active...
26/10/2023 4:31 PM2inactive...
26/10/2023 4:33 PM3active...

 

I would like to keep the minimum response_timestamp but can't figure out the M code to do so. I have calculated the minimum with List.min() function but don't know how to assign it to a new column...

 

The expected result would be : 

 

response_timestampmin_response_timestampidstatusinfos
26/10/2023 4:30 PM26/10/2023 4:30 PM1active...
26/10/2023 4:31 PM26/10/2023 4:30 PM2inactive...
26/10/2023 4:33 PM26/10/2023 4:30 PM3active...
1 ACCEPTED SOLUTION
mlsx4
Super User
Super User

Hi @Geek0874 

= Table.AddColumn(#"PreviousStepName", "Min_response_timestamp", each List.Min(Table[response_timestamp]))

View solution in original post

1 REPLY 1
mlsx4
Super User
Super User

Hi @Geek0874 

= Table.AddColumn(#"PreviousStepName", "Min_response_timestamp", each List.Min(Table[response_timestamp]))

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

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.

Top Solution Authors
Top Kudoed Authors