Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have this table shown below. I want to group by Site and if SFID is blank for Status Active and SFID is populated for Deselect then the values of SFID, task and Workflow needs to move from row 3 to row 2.
Original Data
| Sno | Site | Status | SFID | Type | Task | WorkFlow |
| 1 | Site A | null | null | Swift | ||
| 2 | Site A | Active | null | Swift | ||
| 3 | Site A | Deselect | 2929194 | Retain | 2 | INSTALL |
| 4 | Site B | null | null | Swift | ||
| 5 | Site B | Active | null | Swift | ||
| 6 | Site B | Deselect | 2928855 | Retain | 2 | INSTALL |
| 7 | Site C | Active | 1234567 | Retain | 2 | INSTALL |
| 8 | Site D | Active | 1235668 | Swift | 2 | INSTALL |
| 9 | Site D | Deselect | 1235639 | Retain | 2 | DAS |
| 10 | Site D | Active | 1278537 | BH | 2 | GUP |
Result should look like this as below
| Sno | Site | Status | SFID | Type | Task | WorkFlow |
| 1 | Site A | null | null | Swift | ||
| 2 | Site A | Active | 2929194 | Swift | 2 | INSTALL |
| 3 | Site A | Deselect | null | Retain | ||
| 4 | Site B | null | null | Swift | ||
| 5 | Site B | Active | 2928855 | Swift | 2 | INSTALL |
| 6 | Site B | Deselect | null | Retain | ||
| 7 | Site C | Active | 1234567 | Retain | 2 | INSTALL |
| 8 | Site D | Active | 1235668 | Swift | 2 | INSTALL |
| 9 | Site D | Deselect | 1235639 | Retain | 2 | DAS |
| 10 | Site D | Active | 1278537 | BH | 2 | GUP |
Any help is appreciated.
Thanks
Solved! Go to Solution.
I found the solution. This video tells exactly what I was looking for.
Refer to Previous Row for Subgroups in Power Query - YouTube
Hi @Manjarigoyal1 ,
Glad your problem is solved!
If you have no other problems, would you mind accept your reply as solution? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,
Community Support Team _ kalyj
I found the solution. This video tells exactly what I was looking for.
Refer to Previous Row for Subgroups in Power Query - YouTube
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |