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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
LP135
Frequent Visitor

How to deal with blanks in hierarchies?

I have data for two years (later: 50 years) which I structure in a three (later: five) level hierarchy. The hierarchy is defined in a separate table and then connected to the actual data via a relationship.

 

For the second year, the data is forecasted - however, only for Levels 1 and 2, so level 3 (later: 3-5) is blank, i.e., in the forecast, we do not care about the level-3-composition of level 2, we just forecast the aggregate. This forecast is done externally, not in the Power BI model.

 

Since the hierarchy leads to automatic aggregation of lower levels to higher levels, the forecast of level 2 is not shown in the resulting matrix and the total (level 1) is consequently wrong.

 

How can I tell Power BI that it should use the "hard", i.e. manually implemented, values for levels 1 and 2 if no values are available for level 3?

 

I have uploaded an example file here:

Uploaded example file

 

Any help is highly appreciated!

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @LP135,

 

"How can I tell Power BI to use the value for NL 2017 if Health 2017 and/or P&C 2017 are not available?"

I think it doesn't make sense to achieve such a result. 

 

1.PNG

The relationship is generated based on Table1[Attribute] and Table2[3]. That is to say, each item of Table1[Attribute] is matched with that in Table2[3]. The record "2017 PI NL 3" doesn't find its mapping row in Table2[3], that is why no value is displayed in Matrix under level-3. Also, the "PI NL" we can see in Matrix is matched with items in Table2[2] instead of Table2[3]. So, it is not possible to refer to the record "2017 PI NL 3" in Table1 using current relationship (Table1[Attribute] <--> Table2[3]).

3.PNG

2.PNG

 

In your scenario, you may need to insert below record to Table2.

1               2            3

PI Total     PI NL      PI NL

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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