Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello.
I would like to merge the duplicates in "Device Name" #1, and add the integers in column "Total (Sheets) #2". The other data can just be seperated by a comma.
I tried merge queries, but it did not return the results I needed. I am new at this and just may not understand how to use it yet.
Thank you in advance!
Solved! Go to Solution.
Hi @MTBradley ,
Here is my sample data:
Please use this M function to add a custom column:
let
currentDeviceName = [Device Name],
allRows = Table.SelectRows(#"Changed Type", each [Device Name] = currentDeviceName),
allTotals = allRows[#"Total (Sheets)"],
concatenatedTotals = Text.Combine(List.Transform(allTotals, each Text.From(_)), ",")
in
concatenatedTotals
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MTBradley ,
Here is my sample data:
Please use this M function to add a custom column:
let
currentDeviceName = [Device Name],
allRows = Table.SelectRows(#"Changed Type", each [Device Name] = currentDeviceName),
allTotals = allRows[#"Total (Sheets)"],
concatenatedTotals = Text.Combine(List.Transform(allTotals, each Text.From(_)), ",")
in
concatenatedTotals
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
13 | |
13 | |
11 | |
8 | |
8 |