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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
newhopepdx
Helper III
Helper III

Create Net Income table

I have a table of Income and one of expenses. I'm wanting to create a calculated table with 3 columns: Last day of the month, Income total for that month and expense total for that month.

 

The goal is to have something I can use to show changes in net income over time in a graph. If there's a simpler way than creating a calculated table, I open to that.

Thanks

1 ACCEPTED SOLUTION

Hi @newhopepdx 

 

That code is for a calculated table rather than a measure. Try it to create a calculated table and see if it can meet your need. 

 

Otherwise, you don't need to create a calculated table. Since you have two separate tables for incomes and expenses, you can create relationships between Calendar table and the separate tables on Date columns:

Calendar (one side) --(single direction)--> Exp_Current (many side)

Calendar (one side) --(single direction)--> Inc_Current (many side)

 

Then create three measures:

Total Income = SUM('Inc_Current'[Amount])

Total Expenses = SUM('Exp_Current'[Amount])

Net Income = [Total Income] - [Total Expenses]

 

Then add the EndofMonths column and above three measures into the same visual to view the result. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

5 REPLIES 5
MahyarTF
Memorable Member
Memorable Member

Hi,

Not sure, but maybe the below solution will be useful for you :

- I create a column in my Date Dim as below :

EndofMonthMs = ENDOFMONTH('Date'[Date])
-Then I create a Measure Table and use it to develop visuals as below :
MahyarTF_0-1658461541811.png

* All the value for the right side visual are comes from Measure Table (Summ)

Mahyartf

Tried to replicate your solution. Added and EndofMonths column to my date table (Calendar) and created the measure. My report has two separate tables, one holding income records (Inc_Current) and the other expenses (Exp_Current). Here's the measure and the error I got.2022-07-22 07_33_36-Inc-Exp - Copy - Power BI Desktop.png

Hi @newhopepdx 

 

That code is for a calculated table rather than a measure. Try it to create a calculated table and see if it can meet your need. 

 

Otherwise, you don't need to create a calculated table. Since you have two separate tables for incomes and expenses, you can create relationships between Calendar table and the separate tables on Date columns:

Calendar (one side) --(single direction)--> Exp_Current (many side)

Calendar (one side) --(single direction)--> Inc_Current (many side)

 

Then create three measures:

Total Income = SUM('Inc_Current'[Amount])

Total Expenses = SUM('Exp_Current'[Amount])

Net Income = [Total Income] - [Total Expenses]

 

Then add the EndofMonths column and above three measures into the same visual to view the result. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Makes sense! Thanks

parry2k
Super User
Super User

@newhopepdx share sample data in a table format with the expected output, you don't need to create a separate table but with the measures, it can be achieved.

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.