Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I would like to create a custom column to concatenate the ORDERNUM number based on SHIPPLANT.
i.e.
011 - 04779,04780,04782,04784
022 - 04872,04902
026 - 04827,04828
Any Ideas?
Solved! Go to Solution.
@slatesha
You can use GROUP BY and modify the code as follows.
Create a blank Query, go to the Advanced Editor, clear the existing code, and paste the codes give below and follow the steps.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("XcnBCQAgCADAXXz7UInUWcT91wikAn0eFwG0VB0QiBkSy0bDMryaTetFrp26TbS8v+05Dw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ORDERNUM = _t, SHIPPLANT = _t]),
#"Grouped Rows" = Table.Group(Source, {"SHIPPLANT"}, {{"ORDERNUM-CONCAT", each Text.Combine([ORDERNUM],","), type nullable text}})
in
#"Grouped Rows"
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@slatesha
You can use GROUP BY and modify the code as follows.
Create a blank Query, go to the Advanced Editor, clear the existing code, and paste the codes give below and follow the steps.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("XcnBCQAgCADAXXz7UInUWcT91wikAn0eFwG0VB0QiBkSy0bDMryaTetFrp26TbS8v+05Dw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ORDERNUM = _t, SHIPPLANT = _t]),
#"Grouped Rows" = Table.Group(Source, {"SHIPPLANT"}, {{"ORDERNUM-CONCAT", each Text.Combine([ORDERNUM],","), type nullable text}})
in
#"Grouped Rows"
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you that worked I was overlooking the group function.
***USING Power Query for excel, dont have the option to use concatx.