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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors