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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
yanivshe86
New Member

Field hierarchy detection

Hi all,

 

I have a problem modeling\viewing my data in PBI.

I have a table of product tree (3 level hierarchy):

TOP_LEVELMID_LEVELLOW_LEVEL
AA_1A_1_1
AA_1A_1_2
A A_1_3
BB_1 
BB_2B_2_1
BB_2B_2_2

 

And for each product level I have its sales score in a different measure.

So for example:

B score is 0.78

B_2 score is 0.83

B_2_1 score is 0.89

The score for each level is calculated in 3 different measures (one for each product level:

- score_top_level_measure

- score_mid_level_measure

- score_low_level_measure

 

I want to use a tree visual to show the score of each product.

So I added TOP_LEVEL, MID_LEVEL & LOW_LEVEL to the categories, but my problem is with the "value" field.

When I will click on TOP_LEVEL product and view the MID_LEVEL I want to see the scores of the MID_LEVEL products.

 

How can I know which product level the tree is showing?

How can I achieve what I want?

Note: Some levels don't have MID_LEVEL\LOW_LEVEL produts to them

1 REPLY 1
lbendlin
Super User
Super User

For ragged hierarchies like yours you generally use ISINSCOPE() to suppress the output for deadend branches.

 

I hope the third line in your sample data is a typo?

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