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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.