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

Taking a Daily Budget (calculation) and converting it to a cumulative budget

Hi

 

I have an annual budget that has been converted into a daily budget, based on #days in month... (I had some help to get to this point)

 

Budget Daily Allocation =
VAR DaysInMonth = [Budget Days in Month]
VAR DailyBudget = [Budget $ (EOM)]

RETURN
IF(ISFILTERED(IA_TCALENDAR_DATES[CALENDAR_D]),
DIVIDE(DailyBudget, DaysInMonth,0),
[Budget $ (EOM)])
 
...now I have this daily figure (based on # days in month), how do I accumulate this into a rolling Budget YTD with in the filtered dates?
2 REPLIES 2

Hi - I was using something like this, its only now I have realised why it wasnt displaying how I expected it. The plan rate is using a monthly calendar date (1st of each month) only giving plan at month level, its not granular to a daily level, but I was trying to show it as a cumulative daily total.

 

That was the issue, so I need to rethink this.

v-yanjiang-msft
Community Support
Community Support

Hi @mattrixdesign2 ,

According to your description, please try the below solution.

YTD =
SUMX (
    FILTER ( ALL ( IA_TCALENDAR_DATES ), [CALENDAR_D] <= MAX ( [CALENDAR_D] ) ),
    [Budget Daily Allocation]
)

Best Regards,
Community Support Team _ kalyj

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

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.