Forum Discussion

SideWinderTel's avatar
SideWinderTel
Regular Visitor
2 years ago
Solved

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 NameDepartment Code
1000Mr. AA000,B100,C100
1010Mr. BA000,B100,C200,D000,F000
1020Mr. CX000,Y100



[Formatted Table 1] 

Name CodeNameDepartment Code.1Department Code.2Department Code.3Department Code.4Department Code.5
1000Mr. AA000B100C100  
1010Mr. BA000B100C200D000F000
1020Mr. CX000Y100   




[Formatted Table 2]

Name CodeDepartment Code
1000A000
1000B100
1000C100
1010A000
1010B100
1010C200
1010D000
1010F000
1020X000
1020Y100

 

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

  • 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.

  • 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!