Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi experts,
I need to create a custom column using Power Query in Power BI like below.
Please help
Solved! Go to Solution.
I have created a custom column 'Type' for differentiate self and nominees. And grouped using below query and merged.
= Table.Group(#"Added Conditional Column", {"EMPLOYEE CODE"},
{{"AllRows", each
Table.AddIndexColumn( Table.Sort(_, {{"Type", 1}} ) ,
"rowindexinsubset" ,1,1 ), type table}})
I have created a custom column 'Type' for differentiate self and nominees. And grouped using below query and merged.
= Table.Group(#"Added Conditional Column", {"EMPLOYEE CODE"},
{{"AllRows", each
Table.AddIndexColumn( Table.Sort(_, {{"Type", 1}} ) ,
"rowindexinsubset" ,1,1 ), type table}})
Hello @Anonymous ,
Can you specify the conditions that will lead to your output so we could help you?
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 127 | |
| 117 | |
| 77 | |
| 56 |