Forum Discussion
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!
- Anonymous9 years ago
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
3 Replies
- parry2kSuper 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.
- goaltender36Helper I
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?
- AnonymousNot 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