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.
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
@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
)
@amitchandak Do you mind possibly breaking down and explaining your steps please? Would greatly appreciate that!
Thanks
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |