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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shepa006
New Member

Budget Remaining Multiple Projects in Dataset

I have two tables (expenses and budgeted) each with data for multiple projects in them. I am trying to use Power BI to create a report that 1) includes a line chart with the budget remaining where each project has it's own line and 2) the user could select a slicer to focus on just one project at a time. I have read multiple posts and suggestions about using calculate, sum, and filtering by date less than. The solutions that I've followed have gotten me part way there but they end up with the starting amount being the same for all them (i.e. the total combined funding for all projects) however I need each line should only have the funding amount for that specific project.

 

Below are samples of the tables and an example visual of what I'm trying to achieve. I'm just learning Power BI so any examples that you can provide on how to achieve this would be appreciated.

 

Sample of budgeted table, funding may come in at multiple times during the project

ProjectIDAmountFundingDate
A        400.0012/1/2022
A        300.002/1/2023
B     1,500.0012/1/2022
C     1,500.0012/1/2022
C     1,500.003/15/2023

 


Sample of expenses table

ProjectIDExpenseDateAmountCategoryDescription
A1/1/2023        100.00CAT-1some
A1/20/2023        100.00CAT-2thing
A2/5/2023        100.00CAT-1we
A2/20/2023        100.00CAT-2did
A3/1/2023        100.00CAT-1cost
A3/25/2023        100.00CAT-2the
A4/2/2023        100.00CAT-1project
A4/21/2023        100.00CAT-2money
B1/5/2023        200.00CAT-1some
B1/20/2023        200.00CAT-1thing
B2/20/2023        400.00CAT-1we
B3/15/2023        200.00CAT-1did
B3/28/2023        400.00CAT-2cost
C1/1/2023        500.00CAT-1the
C2/1/2023        750.00CAT-1project
C3/1/2023        750.00CAT-1money
C4/1/2023     1,000.00CAT-1

money

 

Sample line chart from Excel, manually created for illustration purpose

SampleProjectBudgetRemainingLineChart.png

2 REPLIES 2
parry2k
Super User
Super User

@shepa006 Not sure if it is clear how you want to visualize it.

 

For example, project A has expenses over the period, and is shown on the line visual, assume $400 is the remaining budget for that project, how would you like to see it on the line visual because there is no line for it, it is just a remaining amount.



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.

@parry2k I hadn't thought about showing the project ending amount. I was just focused on learning how to do the running amount remaining. But you bring up a good point, my thoughts on this are below but I'm open to suggestions if you've done this before and have a way that worked well for you:


Could I add another table with the project start and end dates, this would be different than the funding approved that I have in my original post, and add a point marker like a diamond for each project that shows the start and end date? Again using project A as an example it would have a Dec point of $400 for the project start date and a point in April of $-100 for the end. That might get really distracting though to the viewer but it could help address the issue you bring up of having a remaining amount just floating out there after the project end date. This could also help address the reality that not all projects are going to start and end on the same dates.

 

This is just one piece that I'm trying to learn. Next I will be digging into learning how to create a date table so that I can set custom hierarchy to allow the user to view the report based on calendar year or fiscal year.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.