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.
I'm looking to take my table of values that has similar terms in the one column and group those terms and their respective data into columns of their own.
My goal is to produce the result shown in the image above. I can do so manually by expanding all the columns, but I won't know the names or number of the columns in the future. I would like to be able to generate these columns dynamically regardless of the names of the like terms nor the number of like terms. (ie. TM1, 010ST, etc.)
The goal of this is to produce seperate data series for each name to plot a chart and format that series seperately. I can do so manually for a previously determined set of values, but cannot determine a way to do so dynamically.
Solved! Go to Solution.
NewStep=let a=Table.Group(PreviousStepName,"Name",{"n",each [Merged]}) in Table.FromColumns(a[n],a[Name])
Thank you so much, I've spent far too many hours trying to figure this out on my own!
I'm still just learning to code in M, would you be able to provide any further explanation so I might better understand this solution?
NewStep=let a=Table.Group(PreviousStepName,"Name",{"n",each [Merged]}) in Table.FromColumns(a[n],a[Name])
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 |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |