Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to 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.
Hi,
Not sure, but maybe the below solution will be useful for you :
- I create a column in my Date Dim as below :
* All the value for the right side visual are comes from Measure Table (Summ)
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.
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
@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.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |