cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
arunmathew12345
Frequent Visitor

Need Help Date Table

I have a date column where I want to divide dates into periods from 01st April and further by Week numbers in each period. Any ideas?
arunmathew12345_0-1640274819351.png

 

6 REPLIES 6
v-xiaotang
Community Support
Community Support

Hi @arunmathew12345 

Based on my understanding, the number of days in each month is 28 days, except for the first month (April) and the last month (March).

Days in the last month(March) is easy to calculate, just use the total days in the period to minus the days in other months, i.e., days for March = total days - 28*(total months) - days for April.

However, how do you define the number of days in April? I notice that days in 2019/4 is different from that in 2020/4. 2019/4 takes the last Saturday, 2020/4 takes the next Saturday. So please provide more details.

vxiaotang_0-1640599853830.png

Besides, here is a similar solution for your reference, https://community.powerbi.com/t5/Desktop/Custom-start-of-the-year-and-month-as-1st-Tueday/td-p/22543...

If this help, could you accept this answer as solution? If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

arunmathew12345_0-1641452832073.png
@v-xiaotang  - Sorry, only saw your message today.

Theer are 13 periods in total in a year.
P01 starts in April and P13 ends in March.
P02 - P12 are all 28 days (4 weeks).
I would imagine P01 and P13 balances the rest (?) - Total 53 weeks. 

XX13 is last period of Year and XX01 is the first period.
XX02 to XX12 - Each 4 week periods 
Does this help?

arunmathew12345
Frequent Visitor

In my case, the year starts on 01st April and ends on 31st March. Apart from April and March, the rest have 28 days (4 weeks). 

arunmathew12345_0-1640329079477.png

 

YukiK
Solution Supplier
Solution Supplier

mahoneypat
Microsoft
Microsoft

Please see if this article helps. You may be able to adapt the 445 calendar described to meet your needs.

445 Calendar with 53-Week Years – Hoosier BI

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

Ted's Dev Camp - October 6, 2022

Watch the playback of Session 26 with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors