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
Anonymous
Not applicable

Prorated Daily Budget from Monthly Budget

I need help figuring out the right DAX statement to show a prorated amount based on date filters, YTD, MTD, Daily using the monthly budget data shown in the table below. I also have to take into consideration the number of working days for the month excluding weekends and holidays if there are any for that month.

 

gfouty_0-1635280264436.png

 

Thank you in advance!

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

All measures are in the attached pbix file with steps that are numbered in front of each measure's name.

I only considered weekends because I do not know when are your holidays.

I only calculated Sales Budget, and calculations for GM Budget are the same process.

 

Picture1.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

All measures are in the attached pbix file with steps that are numbered in front of each measure's name.

I only considered weekends because I do not know when are your holidays.

I only calculated Sales Budget, and calculations for GM Budget are the same process.

 

Picture1.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Hi Jihwan,

 

Thank you for providing solution to my post about prorated budget. I didn't take into consideration the categories so each month's working days is getting counted more than once. Would you be able to get the prorated budget for all of the categories in a month?

 

MonthMO Sales Budget  Profit Budget Category
Jan1 $        1,306,639 $            242,326Category1
Feb2 $        1,217,900 $            225,868Category1
Mar3 $        1,809,389 $            335,564Category1
Apr4 $        1,871,548 $            347,092Category1
May5 $        1,939,097 $            359,620Category1
Jun6 $        2,431,779 $            450,991Category1
Jul7 $        2,457,921 $            455,839Category1
Aug8 $        2,303,864 $            427,268Category1
Sep9 $        1,688,019 $            313,055Category1
Oct10 $        1,706,837 $            316,545Category1
Nov11 $        1,334,696 $            247,529Category1
Dec12 $        1,501,319 $            278,430Category1
Jan1 $            707,206 $            205,965Category2
Feb2 $            705,694 $            205,525Category2
Mar3 $        1,622,676 $            472,584Category2
Apr4 $        1,313,584 $            382,565Category2
May5 $        1,606,444 $            467,857Category2
Jun6 $        1,404,395 $            409,013Category2
Jul7 $        1,116,400 $            325,138Category2
Aug8 $        1,245,360 $            362,695Category2
Sep9 $        1,078,278 $            314,035Category2
Oct10 $            760,724 $            221,551Category2
Nov11 $            771,767 $            224,768Category2
Dec12 $            630,658 $            183,671Category2
Jan1 $        3,527,697 $            792,906Category3
Feb2 $        3,903,140 $            877,293Category3
Mar3 $        6,366,679 $        1,431,013Category3
Apr4 $        6,392,293 $        1,436,770Category3
May5 $        8,669,700 $        1,948,654Category3
Jun6 $        9,036,646 $        2,031,131Category3
Jul7 $        8,208,031 $        1,844,886Category3
Aug8 $        7,586,690 $        1,705,230Category3
Sep9 $        6,551,668 $        1,472,592Category3
Oct10 $        4,759,158 $        1,069,697Category3
Nov11 $        3,910,475 $            878,942Category3
Dec12 $        3,357,914 $            754,745Category3
amitchandak
Super User
Super User

@Anonymous , You can refer my blog on the topic

 

Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-Convert-to/ba-p/1657798

 

This is for a year, but the approach is to create a table

 

Distributing/Allocating the Yearly Target(Convert to Daily Target): https://community.powerbi.com/t5/Community-Blog/Distributing-Allocating-the-Yearly-Target-Convert-to-Daily/ba-p/1463290

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