Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Calculate Budget per Week

Hello everyone,
I have a dataset with the budget figures per month of a year. For each YYYYMM a budget figure is written down for the month. The budget table is linked to the date table via this YYYYMM field. This separate date table contains all the days of a year, with monthly, weekly and daily fields etc. A field from this date table indicates whether a day is a working day or not. I have used this to create a calculated column in the budget table, which divides the budget for a month by the working days and thus outputs the budget per day. Now I would also like to determine the budget per week so that the same weekly budget is displayed for each day of a calendar week.
Thanks for any help, I have not found a solution.

LG Lukas

YYYYMMmonthly Budgetdaily Budget
202401100045,45
202402200085,24
2024033000150
202404200095,24

 

YYYYMMYearMonthWeekWorking days
202401202401014
202401202401025
202401202401035
202401202401045
202401202401053
202402202402052

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hey Anonymous,

      Thank you for your answer. I would expect that since the first calendar week in 2024 has only 4 working days, as the first of January is a public holiday, that the 45.45 daily budget for January is multiplied by the 4 working days, so for each day of week 1, 181.8 is entered. For week 2, as this week has 5 working days, 45.45 is multiplied by 5 and 227.25 is entered. Is this understandable?