cancel
Showing results for 
Search instead for 
Did you mean: 
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.

View solution in original post

TomMartens
Super User II
Super User II

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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors