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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello everyone!
I need to show the monthly budget and the accumulated budget until today in one matrix:
Area | Month To Date | Today Target |
A1 | 5000 | 500 |
A2 | 750 | 750 |
I have the following measure to determine the weekly budget:
Budget MTD = CALCULATE ( [Budget], FILTER ( ALL ( 'Calendar' ), 'Calendar'[Fiscal Year] = VALUES ( 'Calendar'[Fiscal Year] ) && 'Calendar'[Fiscal Month Number] = VALUES ( 'Calendar'[Fiscal Month Number] ) && 'Calendar'[Date] <= MAX ( 'Calendar'[Date] ) ) )
So, this measures shows me the monthly budget.
Now, I need to calculate the same for the accumulated budget until today.
Basically it should be something like: (Budget MTD / Sum Workingdays) * Workingdays Past
Does someone have any idea?
Hi @joshua1990
If you need to work with budgets on different granularities then this post should help.
https://www.daxpatterns.com/budget-patterns/
Thanks a lot!
How would you edit this measure to get the budget on a daily basis?
[Budget] :=
IF (
[IsBudgetValid],
SUM ( Budget[BudgetAmount] ),
SUMX (
VALUES ( 'Date'[Year] ),
CALCULATE (
COUNTROWS ( 'Date' ),
'Date'[WorkingDay] = TRUE
)
/ CALCULATE (
COUNTROWS ( 'Date' ),
ALLEXCEPT ( 'Date', 'Date'[Year] ),
'Date'[WorkingDay] = TRUE
)
* CALCULATE (
SUM ( Budget[BudgetAmount] ),
FILTER ( ALL ( Budget[Year] ), Budget[Year] = 'Date'[Year] )
)
)
)
Now it's based on a yearly bucket, right?
My Budget table has the following structure: