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.
Sample data attached
https://www.dropbox.com/s/rki3lhmh6augvqk/Sample%20data.xls?dl=0
INPUT data Has same data for each user except Gruoup name so I need to show each row for each row with all the group associated with each user..I have tried pivoting ..But its not worked for me
Output should be like above
Solved! Go to Solution.
Usually it's the other way around ( want to get the data into rows..) so this was good challenge.
Everything was down in PQ, so you will be able to walk through the applied steps and see what is happening. There is 1 Table, 2 Lists and 3 functions. There is a tab in the excel file called "Column Names". It has the original column names and the new column names. Since you wanted theer to be new rows, the Ans columns all cannot be 1 and two ( else they would append together) so I changed the column names to be able to input a number. Both of those tables in excel ( old column names and the new column names) are loaded as lists into PQ with the appropriate name.
But from there all the steps are in the FinalTable. Way to much going there to type all out here. This will not be the most rebust thing (for instance fnFillDown and fnFillUp are hard-coded with column names) but this took a little bit of time and didnt want to take all the fun for myself 🙂
Looks like it is pretty spot on with your desired output:
Here's the excel file:
https://1drv.ms/x/s!AoQIGRpzoxRHgbUhTG24JBBjirVNfw
-Nick
Just wondering if this helped you out?
Usually it's the other way around ( want to get the data into rows..) so this was good challenge.
Everything was down in PQ, so you will be able to walk through the applied steps and see what is happening. There is 1 Table, 2 Lists and 3 functions. There is a tab in the excel file called "Column Names". It has the original column names and the new column names. Since you wanted theer to be new rows, the Ans columns all cannot be 1 and two ( else they would append together) so I changed the column names to be able to input a number. Both of those tables in excel ( old column names and the new column names) are loaded as lists into PQ with the appropriate name.
But from there all the steps are in the FinalTable. Way to much going there to type all out here. This will not be the most rebust thing (for instance fnFillDown and fnFillUp are hard-coded with column names) but this took a little bit of time and didnt want to take all the fun for myself 🙂
Looks like it is pretty spot on with your desired output:
Here's the excel file:
https://1drv.ms/x/s!AoQIGRpzoxRHgbUhTG24JBBjirVNfw
-Nick
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 |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |