Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
gbrunnerbi
Advocate I
Advocate I

Custom fiscal calendar with pre-defined date ranges

I wanted to share my solution for creating a completely custom fiscal calendar in Power BI:

 

Assume your client has a pre-defined logic for creating their fiscal periods, like in the screenshot below:

custom fiscal periodscustom fiscal periods

 

How will you link this to your DAX date table in the front end?

 

I think the easiest way is the following:

 

1) Transform your date columns to whole number.

2) Create a custom column with the formula below.

Custom fiscal dates columnCustom fiscal dates column

This will produce a list of all numbers between all dates in both columns.

3) Expand the newly created FiscalDatesColumn "to new rows", so we end up with all dates within the respective ranges.

4) Now convert your number columns back to date format.

You will now have all dates within all your custom fiscal date ranges - you can delete the Start and End columns since we do not need them anymore.

 

Your new table will look like this:

aftertransform.png

 

You can now set up a relationship between this table and your DAX date table in the Power BI front-end in order to gain full filter functionalities.

 

Feel free to comment or ask questions

🙂

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Can you request Admin @JCM_iTalent and post it as a blog.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
eisbaer99
Regular Visitor

This is absolutely perfect for my reporting but I need to know how to do the following please;

 

Current Month Offset

Current Day Offset

 

Both would need to feed from the 'End' date. 

If I run this from the resulting CustomFiscalDate then the offset runs from the last day of the month each time and not the actual period end date.

 

Thanks

amitchandak
Super User
Super User

Can you request Admin @JCM_iTalent and post it as a blog.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@gbrunnerbi If you would like to post to the Community Blog, please use the Message Admins button in the blog section.

Message Admins Blog.PNG

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors