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

View all the Fabric Data Days sessions on demand. View schedule

Reply
pey
Frequent Visitor

hierarchy for measure

Hi,

 

I would like to seek some help with building hierarchy - I realize I am not able to create hierarchy with measures, only able to do it with non-measure parameters. Please see the dataset below.

 

I would like to create a hierarchy called Total exports: Exports of goods and services (higest level), consisting of "Export of goods" and "Export of services" so that I can put it into a table and click + to expand to lower level..

 

pey_0-1630134916848.png

 

Thank you.

 

1 REPLY 1
TomMartens
Super User
Super User

Hey @pey ,

 

unfortunately this is not possible.

A very simplyfied explanation for this is: This is because of the mechanics of the underlying data store that fuels Power BI, it's the Analysis Services Tabular engine. This engine considers facts  being "simple" numeric columns that can not be arranged in any hierarchical form.

 

To overcome this "limitation", you have to think a little outside of the box. You have to pivot your numeric columns "Export of goods" and "Export of services" in to a single column, call this column something like "Level 0" and the corresponding values into a Value column. Create a second (being precisea a 3rd) column and call this column "Level 1" This Column contains a single value: Exports of goods and services.

 

Then you can create something that you can expand/collapse.

 

But from the screenshot you provided this is a much more complex design adventure, creating a structure that contains all "measures" and also forms allows to create a simple structure.

 

Maybe you can also consider using visuals that allow creating "sums" like the Zebra BI visual: https://zebrabi.com/power-bi-custom-visuals/tables/

 

Hopefully, this provides some ideas on how to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors