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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Rsanjuan
Advocate III
Advocate III

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.