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

How to change the starting and ending days of the months for each fiscal period

Hello, I have a question relating to how exactly I should go about incorporating fiscal periods in my Calendar Table. The fiscal period starts in January and ends in Decemeber (12 periods). The only problem is that the start date is usually not the first day of every month and the end date is not usually the last day of every month. 

 

ex.

January 1st - January 26th

January 27th - February 26th 

February 27th - March 26th

March 27th - April 26th

so on and so forth being the same, until the last fiscal period in December which starts November 27th and ends December 31st.

 

In the calander table I want the number of each fiscal period, 1-12, corresponding to the month of these set fiscal period start and end dates in a seperate column.

 

Thanks

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , In your calendar table

Start Date of month = Switch(true() ,

month([Date])=1 && day([Date]) <= 26, eomonth([Date], -1)+1

month([Date])=12 , eomonth([Date], -2)+27,

eomonth([Date], -1)+27

)

 

End Date of month = Switch(true() ,

month([Date])=1 and day([Date]) <= 26, eomonth([Date], -1)+26

month([Date]) >=11 day([Date]) >  26 , Date(year([Date]),12,31)

eomonth([Date], 0)+26

)

Anonymous
Not applicable

@amitchandak Do you mind possibly breaking down and explaining your steps please? Would greatly appreciate that!

Thanks

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.