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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
joshua1990
Post Prodigy
Post Prodigy

WTD running total based on DIVIDE

Hello everyone!

I have a measure that shows me the daily budget level based on a weekly target:

 

Sales Phasing = DIVIDE([Budget], [# Working Days per Week])

 

[Budget] is a column based on a year-week granularity.

To get the daily target I divide the budget by the number of working day per week.

Now I would like to accumulate this daily budget by month.

Something like:

DateDaily BudgetMTD Budget
01.01.20195050
02.01.201950100
03.01.201925125

 

How would you do that?

I guess a simple running total will not work based on the result of a DIVID function, right?

This is my MTD measure for the actual sales:

 

Sales MTD = 
CALCULATE (
    [Sales],
    FILTER (
        ALL ( 'Calendar' ),
        'Calendar'[Fiscal Year]
            = MAX ( 'Calendar'[Year] )
            && 'Calendar'[Date]
                <= MAX ( 'Calendar'[Date] )
            && 'Calendar'[Fiscal Month Number]
                = MAX ( 'Calendar'[Fiscal Month Number] )
    )
)

 

4 REPLIES 4
Anonymous
Not applicable

That's actually very easy once you start thinking in Power BI and DAX terms. You need daily target? Then create a table that will store each and every day in the range you want and assign the right amount to these days. Then connect to the table a Date table and you'll be able to aggregate any way you want and create any measures quickly and simply. Please do not make mistakes that so many do because their thinking is rigid. Simpler DAX means easier to understand and faster to execute.
amitchandak
Super User
Super User

@joshua1990 , refer if this file can help

https://www.dropbox.com/s/fnq82ksdzk1lqs3/Target_allocation_daily.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thanks for your help!

In your provided file I can't find a running total measure, just da daily target allocation.

Cou you please help?

@joshua1990 , allocate it daily and WTD /MTD as a measure.

You have given output

Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors