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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Divide two dynamical Measures

Hello,

 

I have a P&L Table, sorted by Month.

P&L TabelP&L Tabel

 

I created the following measures to visualize the data: (note there are Slicers)

 

  1. Measure "Actual" just gives the values, according to category and month.
  2. Measure "Numerator" states the costs/incomes in the selected month. 

 

Numerator = 
VAR Cost_of_Material = CALCULATE([Actuals]; 
    FILTER('Financial Category'; 'Financial Category'[Category] = "Cost of Material"))
VAR Personnel = CALCULATE([Actuals]; 
    FILTER('Financial Category'; 'Financial Category'[Category] = "Personnel"))
VAR other_Exp = CALCULATE([Actuals]; 
    FILTER('Financial Category'; 'Financial Category'[Category] = "other op. Exp."))
VAR other_Inc = CALCULATE([Actuals]; 
    FILTER('Financial Category'; 'Financial Category'[Category] = "other op. Inc."))
VAR Depreciation = CALCULATE([Actuals]; 
    FILTER('Financial Category'; 'Financial Category'[Category] = "Depreciation"))

RETURN
(Cost_of_Material + Personnel + other_Exp + Depreciation + other_Inc)

 

     3. Measure "Total Output" gives the total Sales in the selected month.

 

Total Output = 
    CALCULATE([Actuals]; 
    FILTER('Financial Category'; 'Financial Category'[Category] = "Sales Revenue"))

 

      4. Measure "% of Sales Revenues" should give the percentage of each Numerator divided by Total Output.

 

% of Sales Revenue = 
[Numerator]/[Total Output]) // or DIVIDE([Numerator];[Total Output];0)

 

 

As you can see, the 4. Measure isn't showing my anticipated results. If I enter the static number of Sales Revenues (in the table = 4,836 Mil. €), I receive the correct percentages in the column. 

I tried several approaches to get the percentage. It seems that I can't put a measure, which only refers to one value, in the Denominator. I won't be able to add the Total Output manually in the Denominator using IF-clauses, since the table will update regularly.

 

Is there any way to divide the Nominators by Sales Revenue??

 

Thanks in advance

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Perhaps try:

Total Output =
CALCULATE([Actuals];
FILTER(ALL('Financial Category'); 'Financial Category'[Category] = "Sales Revenue"))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Perhaps try:

Total Output =
CALCULATE([Actuals];
FILTER(ALL('Financial Category'); 'Financial Category'[Category] = "Sales Revenue"))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks a lot, it works! Finally!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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