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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
goaltender36
Helper I
Helper I

Custom Date Range

Hello,

 

I am trying to create a custom "current Period" measure that way I will not have to mess with my data through a slicer. For the life of me I can not figure out where to begin. My date ranges are from the 15th of the month to the 14th of the next month. Example:

 

1/15/2017-2/14/2017 is M3

2/15/2017-3/14/2017 is M4

...

...

I have a created a date table for the measure to reference (not sure if I am heading in the right direction)

 

But I want the data to display for that current period.

 

Hope this makes sense. 

 

Thank you very much for your help!

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @goaltender36,

 

You can refer to matt's blog to use power query to calculate the Calendar table:

Create a Custom Calendar in Power Query

 

In addition, you can also use dax to format the date fields.

DAX Formulas for Fiscal Year, Fiscal Quarter and Month Short Name

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

Seems like you have continuous date table, if that is the case, add another field in that table something like cusotm month and update that field with your custom month and use that custom month in report.

 

I hope this will get you going.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you !! I was able to make a custom month column and connected the dates as a one to many relationship. Now I can filter based on the custom month. Is there anyway to automate it so I don't have set a reminder to manually change the custom month on the filter?

Anonymous
Not applicable

Hi @goaltender36,

 

You can refer to matt's blog to use power query to calculate the Calendar table:

Create a Custom Calendar in Power Query

 

In addition, you can also use dax to format the date fields.

DAX Formulas for Fiscal Year, Fiscal Quarter and Month Short Name

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.