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
joshua1990
Post Prodigy
Post Prodigy

Budget on a daily and monthly level

Hello everyone!

I need to show the monthly budget and the accumulated budget until today in one matrix:

 

 

AreaMonth To DateToday Target
A15000500
A2750750

 

I have the following measure to determine the weekly budget:

Budget = CALCULATE(SUM(Budget[Value]),FILTER(Budget,Budget[Target] = "Budget"))
 
For the MTD Target I use the following Measure:

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?

 

 

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @joshua1990 

 

If you need to work with budgets on different granularities then this post should help.

https://www.daxpatterns.com/budget-patterns/

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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:

  • Area
  • Fiscal Year-Week
  • Value

 

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.

Top Solution Authors