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.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |