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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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?

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.