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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Income Statement % of Revenue - using columns from others tables with measure does not work

Hi,

 

Background:

 

I'm currently working on a P&L Statement report in Power BI.

 

To illustrate, I have a column called [P&L Line] with the account name, and [Current Estimate] with the latest forecast for that P&L line.

 

I have created a calculated measure in order to calculate each P&L Line as a % of net sales:

 

 

Current Estimate %NS = DIVIDE(SUM(CPM[Current Estimate]),CALCULATE(SUM(CPM[Current Estimate]),CPM[P&L Line]= "Total  Net Sales"))

 

 

 

When I create a matrix with [P&L Line] in the rows and [Current Estimate %NS] in the values it works exactly as intended.

 

Here is the complication:

 

I created a hierarchy of [P&L Line] so that users can drill down into the account level of detail needed. To illustrate, suppose there are two [P&L Line] values, Digital Advertising and Traditional Advertising. I have created a seperate table with the hierarchisation:

 

[P&L Line Level 4] = Digital Advertising / [P&L Line Level 4] = Traditional Advertising

 

There would roll up into

 

[P&L Line Level 3] = Advertising

 

Which would roll up into

 

[P&L Line Level 2] = Direct Operating Expenses

 

And into

 

[P&L Line Level 1] = Total Operating Expenses

 

And I have created a relationship between the two tables.

 

The issue that has arisen is that when I create a matrix with [P&L Line Level 4] in rows, and [Current Estimate %NS] in the values, all values are equal to 0% except for Net Sales which is 100%.

 

Would anyone know the solution to this? Thank you.

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Not very clear. Refer if this can help

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak ,

 

Thank you for your response.

 

I have the first table with the [P&L Line] and [Current Estimate].

 

I have the second table with [P&L Line Level 1], [P&L Line Level 2], [P&L Line Level 3], and [P&L Line Level 4].

 

[P&L Line] and [P&L Line Level 1] are related.

 

If I were to reword it, in a DAX formula, I would like to filter [Current Estimate] (which is in the first table) by [P&L Line Level 1], 2, 3 and 4 (which are in the second table).

 

Would you know how to do this? Let me know if I can clarify better in any way.

 

Thanks for the help.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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