This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Suppose, I have a table like this:
And I want to turn it into this:
Is there any way of doing so.
I will appreciate all the help.
Thank you In Advance.
Solved! Go to Solution.
NewStep=#table(Table.ColumnNames(PreviousStepName),List.Accumulate(Table.ToRows(PreviousStepName),{{},""},(x,y)=>{x{0}&{List.RemoveLastN(y,1)&{if List.Last(y)=x{1} then null else List.Last(y)}},List.Last(y)}){0})
NewStep=#table(Table.ColumnNames(PreviousStepName),List.Accumulate(Table.ToRows(PreviousStepName),{{},""},(x,y)=>{x{0}&{List.RemoveLastN(y,1)&{if List.Last(y)=x{1} then null else List.Last(y)}},List.Last(y)}){0})
Thank you so much daniel. It worked as charm.
However, I have various other columns to execute as same as above.
As I remember the code, the code doesnt mention the column name.
So, how Will I achieve this?
what is the frame of your data? and what is the rule of replacement?
My data is like 8 columns and some rows.
Remember, what happens when we perform groupby and use some column as "SUM" aggregator while some columns to show all the rows instead of doing any aggregation?
The "All rows" aggregator repeats all the values for a specific column.
My need is to show the values of those columns only one time for each ID, not repetative.
Like in the screenshot above, You helped me in achieving each Brand name for each ID, despite having numerous model names.
I want to do the same with multiple columns. Like for 6-7 column at once.
If you have a different approach for this, feel free to enlighten me.
Thanks in Advance.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |