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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rsanjuan
Helper IV
Helper IV

Calculation

This may be a real simple calculation, but I am having trouble gettting it.  Perhaps, because it's a Monday. 

 

Capture.JPG

 

What I want to do is calculate the Net Operating Income as a % of Revenue for each month.  I know I want to do Net Operating Income / Revenue, but how do I create the measure with the data set up this way?

 

Thanks!

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Rsanjuan,

 

You may create a measure as shown below.

Measure =
DIVIDE (
    CALCULATE ( SUM ( Table1[Actual] ), Table1[Metric] = "Net Operating Income" ),
    CALCULATE ( SUM ( Table1[Actual] ), Table1[Metric] = "Revenue" )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@Rsanjuan,

 

You may create a measure as shown below.

Measure =
DIVIDE (
    CALCULATE ( SUM ( Table1[Actual] ), Table1[Metric] = "Net Operating Income" ),
    CALCULATE ( SUM ( Table1[Actual] ), Table1[Metric] = "Revenue" )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TomMartens
Super User
Super User

Hey,

the easiest way to achieve what you want is to pivot your table in Power Query and create two metric colums with the value

Pivot.png 

 

And than the result looks like this

Result Pivot.png

 

From here you can simply your measure, without pivoting your Metric column can can become very difficult to find the proper lines.

 

Hope this helps



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
corodyne
Frequent Visitor

Do you need the NOI to be in the same column as your monthly income?  Or, could it be in a second column?

@corodyne

 

It could be in a separate column.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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