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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.