A Sort on a Table.Combine in a Group By step...but from a different column

johnny51981

Active Member
Joined
Jun 8, 2015
Messages
409
I have 3 total columns, Customer Job ID, Daily #, and Daily Date. I would like to update this M code to combine all distinct Daily #s sorted in order by Daily Date. Any assistance on updating this would be greatly appreciated.

Power Query:
= Table.Group(#"Filtered Rows", {"Customer Job ID"}, {{"Daily IDs", each Text.Combine(List.Distinct([#"Daily #"]),"/"), type nullable text}})
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Power Query:
= Table.Group(#"Filtered Rows", {"Customer Job ID"}, {{"Daily IDs", each let t = Table.Sort(_, {"Daily Date", Order.Ascending}) in Text.Combine(List.Transform(List.Distinct(t[#"Daily #"]), Text.From),"/")}})
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top