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
ErikBI
Resolver I
Resolver I

Create a cumulative budget line from budget with a start and end date.

Hey everyone,

 

I've been thinking about this for a while, but I am nowhere near as knowledgable to figure out how to do it. I'll try my best to explain it! 

 

Below Is a graph where I show the cumulative spendings in blue.

The black line (drawn with MS paint) is what I'm trying to achieve, which is supposed to be the budget line.

 

1 graph.PNG

 

My Budget data is as following with a budget price, start and end date. 

2. budget.PNG

 

From what I understand, to achieve this line I need to spread the budget over each day between the start and end date, and then make that into a running total. But I am having trouble with this. I don't know DAX nearly as well!

 

I have attached the pbix file below. In here you can see all the data that I'm using.

Example.pbix 

Source data 

 

I hope there is a way to achieve this! That would be fantastic. If you have any questions let me know!

 

Cheers.

Erik

 

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @ErikBI ,

 

You could reference the video and the blog to learn how to spread date.

List dates between two dates in Power Query 

Fill dates between dates with Power BI / Power Query 

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This looks very helpful. I'll look into it! Thanks.

Hi @ErikBI ,

 

was your problem solved?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


amitchandak
Super User
Super User

@ErikBI , You can refer this file for allocation

https://www.dropbox.com/s/fnq82ksdzk1lqs3/Target_allocation_daily.pbix?dl=0

 

example of cumulative

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=max(Sales[Sales Date])))

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.