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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MrMarshall
Helper II
Helper II

Dax - FY Cumulative total on Average budget for a smooth graph

Main problem, I am trying to make my budget line go a little bit smoother in my FY-graph. It only got rows in the first day in each month and looks like a staircase...

 

 I am calculating the FY cumulative budget and sales with the same formula:

Sales FYTD = CALCULATE(SUM(Sheet3[Sales]), DATESYTD('Calendar'[Date], "30/9"))
Budget FYTD = CALCULATE(SUM(Sheet1[Budget]), DATESYTD('Calendar'[Date], "30/9"))

I also made a formula for the Average budget and it's working, but I can't figure out how to make it cumulative...

Budget Average Per Day = 
CALCULATE (
    AVERAGEX ( Sheet1 , Sheet1[Budget] ),
    DATESINPERIOD (
        'Calendar'[Date],
        LASTDATE ( 'Calendar'[Date] ),
        -1 ,
        MONTH
    )
)

Anyone got an idea of how to make the average budget added upp on FY total?

Problem:

Screenshot_180.png

 

 

I made an example for you to try on! 🙂 

 

 

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @MrMarshall,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @MrMarshall,

 

I'm afraid there isn't a good way to do that. Because the budget table only has values for the first day of the month. That means the other days of the month will be empty or the same with the first day if we accumulate the values. So there could be always an angle.

How about removing the Day level? 

Dax-FY-Cumulative-total-on-Average-budget-for-a-smooth-graph

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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