Forum Discussion

Rsanjuan's avatar
Rsanjuan
Advocate III
9 years ago
Solved

Calculation

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

 

 

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!

 

  • 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" )
    )
    

4 Replies

  • 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

     

     

    And than the result looks like this

     

    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

  • v-chuncz-msft's avatar
    v-chuncz-msft
    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" )
    )
    
  • corodyne's avatar
    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?