Forum Discussion
Solution in Table Formatting
Good evening, everyone.
I would like to ask for your wisdom here.
I am exploring methods to create "Formatted Table 2" from the following "Source Table" using Power Query and DAX expressions in Power BI Desktop.
[Source Table]
| Name Code | Name | Department Code |
| 1000 | Mr. A | A000,B100,C100 |
| 1010 | Mr. B | A000,B100,C200,D000,F000 |
| 1020 | Mr. C | X000,Y100 |
↓
[Formatted Table 1]
| Name Code | Name | Department Code.1 | Department Code.2 | Department Code.3 | Department Code.4 | Department Code.5 |
| 1000 | Mr. A | A000 | B100 | C100 | ||
| 1010 | Mr. B | A000 | B100 | C200 | D000 | F000 |
| 1020 | Mr. C | X000 | Y100 |
↓
[Formatted Table 2]
| Name Code | Department Code |
| 1000 | A000 |
| 1000 | B100 |
| 1000 | C100 |
| 1010 | A000 |
| 1010 | B100 |
| 1010 | C200 |
| 1010 | D000 |
| 1010 | F000 |
| 1020 | X000 |
| 1020 | Y100 |
I managed to create "Formatted Table 1" from "Source Table" using Power Query, but I am unsure how to format "Formatted Table 2".
I am open to ideas on how to format "Formatted Table 2" either from "Formatted Table 1" or directly from the "Source Table" if possible. Any guidance on achieving this would be greatly appreciated.
Hi SideWinderTel
You can get the last form table with the split-to-rows functionality in the power query.result
pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
2 Replies
- Ritaf1983Super User
Hi SideWinderTel
You can get the last form table with the split-to-rows functionality in the power query.result
pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
- SideWinderTelRegular Visitor
Thank you for your response!
I wasn't aware of the existence of the Details tab, but by following the steps you provided, I was able to resolve all the issues!
Thank you very much!