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!
Solved! Go to 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
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
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
104 | |
77 | |
72 | |
49 | |
47 |
User | Count |
---|---|
159 | |
86 | |
80 | |
68 | |
66 |