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
Daxmax
Helper I
Helper I

How to include measures (NOI, Net Income) into table?

Hello,

I'm reproducing an income statement from Excel into Power BI. 

The generic structure of the income statement is like this:

1.png

 

My datasource is a SQL database and I've desined my table like this:

2.png

In Power BI, I've created a Pivot Table, and pulled in the relevant columns, but I still need to show NOI, and Net Income, which are measures. 

 

How do I show these measures within the table itself?

Thank You

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Daxmax ,

There is not out of the box solution to your use case but DAX is flexible enough for that. My approach would be to create a disconnected table (no relationship to Fact or Dimension tables) that will hold the value of each group plus the one for net income). There are many ways to create that table - you can use the Enter Data table or create one using DAX. I'll be using DAX for this.

Create a calculated table using the formula below and then sort the Group by Order column.

Group = 
DATATABLE (
    "Group", STRING,
    "Order", INTEGER,
    {
        { "Revenue", 1 },
        { "Expenses", 2 },
        { "Other Expenses", 3 },
        { "Net Income", 4 }
    }
)

 

Create these measures:

Sum of Actuals = 
SUM ( 'Table'[Actuals] )
Net Income = 
CALCULATE ( [Sum of Actuals], FILTER ( 'Table', 'Table'[Group] = "Revenue" ) )
    - CALCULATE (
        [Sum of Actuals],
        FILTER ( 'Table', 'Table'[Group] IN { "Expenses", "Other Expenses" } )
    )
Actuals with Net Income = 
VAR __GROUP =
    SELECTEDVALUE ( 'Group'[Group] )
RETURN
    IF (
        __GROUP = "Net Income",
        [Net Income],
        CALCULATE ( [Sum of Actuals], FILTER ( 'Table', 'Table'[Group] = __GROUP ) )
    )

 

Here's a screenshot of the final output:

danextian_1-1653452723535.png

 

Here's the sample PBIX for your reference: https://drive.google.com/file/d/1KZo45MbHRIui1v1hLKrpJKyMDpYdm081/view?usp=sharing 





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

2 REPLIES 2
danextian
Super User
Super User

Hi @Daxmax ,

There is not out of the box solution to your use case but DAX is flexible enough for that. My approach would be to create a disconnected table (no relationship to Fact or Dimension tables) that will hold the value of each group plus the one for net income). There are many ways to create that table - you can use the Enter Data table or create one using DAX. I'll be using DAX for this.

Create a calculated table using the formula below and then sort the Group by Order column.

Group = 
DATATABLE (
    "Group", STRING,
    "Order", INTEGER,
    {
        { "Revenue", 1 },
        { "Expenses", 2 },
        { "Other Expenses", 3 },
        { "Net Income", 4 }
    }
)

 

Create these measures:

Sum of Actuals = 
SUM ( 'Table'[Actuals] )
Net Income = 
CALCULATE ( [Sum of Actuals], FILTER ( 'Table', 'Table'[Group] = "Revenue" ) )
    - CALCULATE (
        [Sum of Actuals],
        FILTER ( 'Table', 'Table'[Group] IN { "Expenses", "Other Expenses" } )
    )
Actuals with Net Income = 
VAR __GROUP =
    SELECTEDVALUE ( 'Group'[Group] )
RETURN
    IF (
        __GROUP = "Net Income",
        [Net Income],
        CALCULATE ( [Sum of Actuals], FILTER ( 'Table', 'Table'[Group] = __GROUP ) )
    )

 

Here's a screenshot of the final output:

danextian_1-1653452723535.png

 

Here's the sample PBIX for your reference: https://drive.google.com/file/d/1KZo45MbHRIui1v1hLKrpJKyMDpYdm081/view?usp=sharing 





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 works. Thank you very much!

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