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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
reddy421
Helper I
Helper I

Calculate Daily Budgets based on Previous Year sales and this year monthly budget values

I have a PBI solution with the sales for the last x number of year for each facility and the summary table looks like below.

1.png


I have the Monthly Budgets for this year as below .

2.png

 

There is a relation between my Summary table to date, facility.
There is a relation between my Monthly Budgets to the facility.

 

I need to calculate the daily budgets for each store based on last years sale(Sample pic shown below for reference).

FYI.. We are not doing date to date but day to day(The highlited boxes in the below pic)

3.png

Any help is really appreciated.

 

1 REPLY 1
adudani
Super User
Super User

hi @reddy421 ,

 

consider:

1. Converting you monthly budget into daily budgets. ( Refer to List.Dates function for this conversion : this given a column with a list of all dates between the start date and end date of the month. Another column, dividing the metric= ex. sales by the number of days in the period ( end date - start date +1) . Then expand the dates.)

2. Merge the daily budget on the daily sales table using a key ( join on : Date+FacilityID)

3. This should enable using any time intelligence calculations.

 

 

if this doesn't resolve the issue, kindly provide sample data masking sensitive information in a usable format (excel, csv, table etc.)

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.