Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I feel like this should be really easy but can't for the life of me work out how to do it 😕 (have tried various pivoting/unpivoting type options but can't get anything to work. Thank you in advance!
Solved! Go to Solution.
Use the following code
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
ChangedType = Table.TransformColumnTypes(Source,{{"Item", type text}, {"Label", type text}}),
GroupBy = Table.Group(ChangedType, {"Item"}, {{"Labels", each Text.Combine([Label],", "), type nullable text}})
in
GroupBy
If this answers your question, please accept it as a solution, and we welcome Kudos 🙂
Ok - thank you for replying and thanks again for your help, greatly appreciated!
Use the following code
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
ChangedType = Table.TransformColumnTypes(Source,{{"Item", type text}, {"Label", type text}}),
GroupBy = Table.Group(ChangedType, {"Item"}, {{"Labels", each Text.Combine([Label],", "), type nullable text}})
in
GroupBy
If this answers your question, please accept it as a solution, and we welcome Kudos 🙂
Thank you that works perfectly - solution accepted!
Was there a way to do that via the menu (i.e. without knowing the code itself?), feels like it would be a fairly common use case!
Unfortunately there is no option in the user interface, you have to Group By then tweak the M code, we can also have the list sorted in ascending order if you wish
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |