Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
H_insight
Helper V
Helper V

Custom Hierarchy

Hi All,

 

I am trying to achieve the below hierarchy in PQ, but not getting much success. Any chance of help?

 

Expected outcome:

H_insight_1-1665124377176.png

 

Sample file link.

 

Many thanks

1 ACCEPTED SOLUTION
bharat_kumar
Regular Visitor

Hey
I have tried the same and achieve the hierarchy you have mentioned.
please find the Screenshots for your reference.

bharat_kumar_0-1665127419266.pngbharat_kumar_1-1665127444818.png

Let me describe you the Applied Steps:

1. Unpivot the Type column
2. Pivot the value column by keeping Attribute in value dropdown.
3. Use Headers as First Row.

bharat_kumar_2-1665127780557.png

4. Remove the Bottom row (1).
5. Rename the Column names as per your levels,
6. Sort the columns as required.

Please like the solution if you got success.

View solution in original post

3 REPLIES 3
bharat_kumar
Regular Visitor

Hey
I have tried the same and achieve the hierarchy you have mentioned.
please find the Screenshots for your reference.

bharat_kumar_0-1665127419266.pngbharat_kumar_1-1665127444818.png

Let me describe you the Applied Steps:

1. Unpivot the Type column
2. Pivot the value column by keeping Attribute in value dropdown.
3. Use Headers as First Row.

bharat_kumar_2-1665127780557.png

4. Remove the Bottom row (1).
5. Rename the Column names as per your levels,
6. Sort the columns as required.

Please like the solution if you got success.

@bharat_kumar 

 

Any chance of sharing the working files please? You can use this free site to upload it. thanks "https://easyupload.io/!

Please find the attached file.

https://easyupload.io/mtdbx7

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.