Forum Discussion
Tweaking Financial Calendar
- 6 months ago
Hi MKPartner
I have attached a sample PBIX that uses a financial calendar along with the DAX logic.
Hope this helps !!
Thank You.
Hi MKPartner
To better understand Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
This is my current data:
| Year No | Day of the year | Qtr | Week of Month | Month no | Month no P | Week | Week WK | Year | WC_Month | WC_Date | Month Index (related) | Week_Value | Day of Week |
| 8 | 358 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | grudzień 2025 | 2025P12WK52 | 2 | 1 | 1 |
| 8 | 359 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | grudzień 2025 | 2025P12WK52 | 2 | 0 | 2 |
| 8 | 360 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | grudzień 2025 | 2025P12WK52 | 2 | 0 | 3 |
| 8 | 361 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | grudzień 2025 | 2025P12WK52 | 2 | 0 | 4 |
| 8 | 362 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | grudzień 2025 | 2025P12WK52 | 2 | 0 | 5 |
| 8 | 363 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | grudzień 2025 | 2025P12WK52 | 2 | 0 | 6 |
| 8 | 364 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | grudzień 2025 | 2025P12WK52 | 2 | 0 | 7 |
| 9 | 1 | 1 | 1 | 1 | P01 | 1 | WK01 | 2026 | styczeń 2026 | 2026P01WK01 | 1 | 1 | 1 |
| 9 | 2 | 1 | 1 | 1 | P01 | 1 | WK01 | 2026 | styczeń 2026 | 2026P01WK01 | 1 | 0 | 2 |
| 9 | 3 | 1 | 1 | 1 | P01 | 1 | WK01 | 2026 | styczeń 2026 | 2026P01WK01 | 1 | 0 | 3 |
| 9 | 4 | 1 | 1 | 1 | P01 | 1 | WK01 | 2026 | styczeń 2026 | 2026P01WK01 | 1 | 0 | 4 |
| 9 | 5 | 1 | 1 | 1 | P01 | 1 | WK01 | 2026 | styczeń 2026 | 2026P01WK01 | 1 | 0 | 5 |
| 9 | 6 | 1 | 1 | 1 | P01 | 1 | WK01 | 2026 | styczeń 2026 | 2026P01WK01 | 1 | 0 | 6 |
| 9 | 7 | 1 | 1 | 1 | P01 | 1 | WK01 | 2026 | styczeń 2026 | 2026P01WK01 | 1 | 0 | 7 |
| 9 | 8 | 1 | 2 | 1 | P01 | 2 | WK02 | 2026 | styczeń 2026 | 2026P01WK02 | 1 | 1 | 1 |
I would like to include Week 01 which is currently in 2026 into 2025.
| Date | Year No | Day of the year | Qtr | Week of Month | Month no | Month no P | Week | Week WK | Year | WC_Month | Month Index (related) | Week_Value | Day of Week |
| 21/12/2025 | 8 | 358 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | December 20255 | 2 | 1 | 1 |
| 22/12/2025 | 8 | 359 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | December 2025 | 2 | 0 | 2 |
| 23/12/2025 | 8 | 360 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | December 2025 | 2 | 0 | 3 |
| 24/12/2025 | 8 | 361 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | December 2025 | 2 | 0 | 4 |
| 25/12/2025 | 8 | 362 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | December 2025 | 2 | 0 | 5 |
| 26/12/2025 | 8 | 363 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | December 2025 | 2 | 0 | 6 |
| 27/12/2025 | 8 | 364 | 4 | 5 | 12 | P12 | 52 | WK52 | 2025 | December 2025 | 2 | 0 | 7 |
| 28/12/2025 | 9 | 1 | 1 | 1 | 1 | P01 | 1 | WK01 | 2025 | December 2025 | 1 | 1 | 1 |
| 29/12/2025 | 9 | 2 | 1 | 1 | 1 | P01 | 1 | WK01 | 2025 | December 2025 | 1 | 0 | 2 |
| 30/12/2025 | 9 | 3 | 1 | 1 | 1 | P01 | 1 | WK01 | 2025 | December 2025 | 1 | 0 | 3 |
| 31/12/2025 | 9 | 4 | 1 | 1 | 1 | P01 | 1 | WK01 | 2025 | December 2025 | 1 | 0 | 4 |
| 01/01/2026 | 9 | 5 | 1 | 1 | 1 | P01 | 1 | WK01 | 2025 | December 2025 | 1 | 0 | 5 |
| 02/01/2026 | 9 | 6 | 1 | 1 | 1 | P01 | 1 | WK01 | 2025 | December 2025 | 1 | 0 | 6 |
| 03/01/2026 | 9 | 7 | 1 | 1 | 1 | P01 | 1 | WK01 | 2025 | December 2025 | 1 | 0 | 7 |
| 04/01/2026 | 9 | 8 | 1 | 2 | 1 | P01 | 2 | WK02 | 2026 | January 2026 | 1 | 1 | 1 |
- ryan_mayu6 months agoSuper User
since you only provide a part of your data. I am not sure how to do this for the other years.
just based on the sample data you provided.
you can try to create columns
Column =var _date=minx(FILTER('Table','Table'[Date]>=EARLIER('Table'[Date])&&'Table'[Day of the year]=7),'Table'[Date])return if('Table'[Day of the year]<=7,year(_date)-1,year('Table'[Date]))Column 2 = if('Table'[Day of the year]<=7 ,"December " & 'Table'[Column],FORMAT('Table'[Date],"mmmm")&" " & year('Table'[Date]))pls see the attachment below- v-aatheeque6 months agoCommunity Support
Hi MKPartner
Following up to confirm if the earlier responses addressed your query byryan_mayu .If anything is still unclear, we’ll be happy to provide additional support. - MKPartner6 months agoHelper II
Thank you for your help. We are pretty OK. This means that 2026 year is OK as I expected, but previous year which where OK, no are NOK. Some weeks are overlapping for two months.
Screen for Feb 2026:Screen for Feb 2025 -> week 9 in 2025 was in March 2025
Screen for March 2025 -> week 14 in 2025 was in April 2025
Actual calendar and expected in excel.