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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JJ2022PBI
Helper I
Helper I

Turning a monthly budget into a daily budget for a table

Hello

 

I have a budget data in Power BI that is input on the last day of the month but is for the whole of that month. I would like to show this by day in equal installments. For example if the monthly budget entered on 31/01/2023 is £620k I would like to convert this to a daily amount on each day of that month of £20k, with the total daily amount coming to £620k for Jan-23.

 

I have looked at similar messages on this forum but the suggested solutions don't work for me.

 

I currently have this formula but it only divides the monthly budget by the number of days int hat month, rather than having a value for each day so that the totals for the month match.

 

Plan Daily WS Flows = sum(WSPlan[Value])/day(EOMONTH(max(WSPlan[Date]),0))

 

I also have a dates table called 'Dates' with the column date being in the date.

 

Thank you for your help in advance.

3 REPLIES 3
ichavarria
Solution Specialist
Solution Specialist

Hi @JJ2022PBI,

 

I think one way you can solve this is by creating a new measure similar to this (You may need to change a couple of things depending on your data):

 

Daily Budget = DIVIDE(SUM(WSPlan[Value]), DAY(EOMONTH(MAX(WSPlan[Date]),0)))
 

This formula uses the DIVIDE function to divide the total budget value for the month (calculated using SUM(WSPlan[Value])) by the number of days in the month (calculated using DAY(EOMONTH(MAX(WSPlan[Date]),0))).

 

Once you have this measure, you can use it in your visuals to display the daily budget amounts for each day of the month. To do this, you can add the Dates table to your visual, and then add the Daily Budget measure to the values section of the visual.

 

You should also add a filter to your visual to only show the data for the month you're interested in (e.g., January 2023). This will ensure that the daily budget amounts are only displayed for the relevant time period.

 

Let me know if this works!

 

Best regards, 

 

Isaac Chavarria

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

Thanks @ichavarria 

 

This method still only shows me one day, rather than all the days in the month. When Jan-23 is selected in the slicer is it possible to show all the days in the month each with a daily value in them? 

 

Plan WS Flows = the plan at monthly level (currently all input on the last day of the month)

Plan Daily 2 WS Flows = the code you shared above that should have a value for each day in Jan

 

Thanks again for your help.

 

JJ2022PBI_0-1679063219696.png

 

Hi @ichavarria. I have done some digging and found this DAX formula, it doesn't work for me as my budget is loaded for the whole month on the last day of the month rather than by entering 'January'. 

 

Daily Plan =

VAR DaysinContext = COUNTROWS( Dates )

VAR DaysinMonth = CALCULATE( COUNTROWS( Dates ), ALL( Dates ), VALUES( Dates[Month & Year] ) )

VAR CurrentMonth = SELECTEDVALUE( Dates[MonthName] )

VAR MonthlyBudgetAmounts = CALCULATE( [Total Budgets], FILTER( ALL( 'Product Budgets'[MonthName] ) , CurrentMonth = 'Product Budgets'[MonthName] ) )

 

RETURN

IF( OR( HASONEVALUE( Dates[Date] ), HASONEVALUE( Dates[Month & Year] ) ),

    DIVIDE( DaysinContext, DaysinMonth, 0  ) * MonthlyBudgetAmounts,

        [Total Budgets] )

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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