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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.