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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
swinings
Helper I
Helper I

Add Net Operating Income

Hello,

 

I am trying to get Net Operating Income/Net Income into a table in PowerBI Desktop. I have utilized this forum (https://community.fabric.microsoft.com/t5/Desktop/How-to-include-measures-NOI-Net-Income-into-table/...) for everything and the Net Income column is STILL not showing up. It disappears when I add in the values.

 

What am I doing wrong?

 

Here are my measure codes:

Sum of Actuals = 
SUM ( 'Licking 2025'[Amount])
Net Operating Revenue = 
CALCULATE ( [Sum of Actuals], FILTER ( 'Licking 2025', 'Licking 2025'[Revenue/Expenditure] = "Revenue" ) )
    - CALCULATE (
        [Sum of Actuals],
        FILTER ( 'Licking 2025', 'Licking 2025'[Revenue/Expenditure] = "Expenditure"  )
    )
Actuals with Net Operating Revenue = 
VAR __GROUP =
    SELECTEDVALUE ( 'Group'[Group] )
RETURN
    IF (
        __GROUP = "Net Operating Revenue",
        [Net Operating Revenue],
        CALCULATE ( [Sum of Actuals], FILTER ( 'Licking 2025', 'Licking 2025'[Revenue/Expenditure] = __GROUP ) )
    )

 

Here is my visualization info:

swinings_0-1761763988126.png

Thanks,

Shannon

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @swinings 

Try this.

Actuals with Net Operating Revenue = 
VAR __GROUP =
    SELECTEDVALUE ( 'Group'[Group] )
RETURN
    IF (
        __GROUP = "Net Operating Revenue",
        CALCULATE ( [Net Operating Revenue], ALL ( 'Group'[Group] ), ALL ( 'Licking 2025'[Revenue/Expenditure] ) ),
        CALCULATE ( [Sum of Actuals], FILTER ( 'Licking 2025', 'Licking 2025'[Revenue/Expenditure] = __GROUP ) )
    )

 

 Otherwise, please provide a workable sample data (not an image), your expected result from the same sample data and your reasoning behind. You may post a link to Excel or a sanitized copy of your PBIX stored in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

pls try thi

Actuals with Net Operating Revenue = 
VAR __GROUP =
    SELECTEDVALUE ( 'Group'[Group] )
RETURN
    IF (
        __GROUP = "Net Operating Revenue",
        CALCULATE ( [Net Operating Revenue],REMOVEFILTERS())),
        CALCULATE ( [Sum of Actuals], FILTER ( 'Licking 2025', 'Licking 2025'[Revenue/Expenditure] = __GROUP ) )
    )

 

danextian
Super User
Super User

Hi @swinings 

Try this.

Actuals with Net Operating Revenue = 
VAR __GROUP =
    SELECTEDVALUE ( 'Group'[Group] )
RETURN
    IF (
        __GROUP = "Net Operating Revenue",
        CALCULATE ( [Net Operating Revenue], ALL ( 'Group'[Group] ), ALL ( 'Licking 2025'[Revenue/Expenditure] ) ),
        CALCULATE ( [Sum of Actuals], FILTER ( 'Licking 2025', 'Licking 2025'[Revenue/Expenditure] = __GROUP ) )
    )

 

 Otherwise, please provide a workable sample data (not an image), your expected result from the same sample data and your reasoning behind. You may post a link to Excel or a sanitized copy of your PBIX stored in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

This worked perfectly. Thank you!

kiwirichrad
Advocate II
Advocate II

Does the Net Operating Revenue measure work without the group in the visualisation rows? If it does then the error might be with the group bit.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors