Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All,
I have a date slicer in my report where I need to default the time period slicer to current quarter but also be able to navigate to other dates of the calendar.
Regards,
Vanshika
Solved! Go to Solution.
You sadly cant easely do this, However there are some options.
You could work with bookmarks to have a switch button that gives the user to option to select the current quarter or a custom date. Current quarter can be a hidden filter. You add a new column in your calendar table that returns either a 0 or 1 depending on if that row is the current quarter.
So when the "Current Quarter" Option is selected you have a page filter or a hidden slicer that sets the entire page to either 0 or 1 depending on how you made your row.
When the "custom date" option is selected you make a bookmark empty the choices on your current quarter slicer and unhide your current date slicer.
Make sure to set the bookmark to only adjust selected measures and it should give you the requested result.
As a bonus you can add a third option to show relative dates. that would also show the current quarter and have the ability to do other stuff. This way you give your users all the possible options they could ever want. You can choose to only switch between a relative filter and the filter you currently use and it should give the expected result as long as your quarters line up with powerbi's quarters.
Make sure to set me as the result if this helped!
Hi @Anonymous ,
Thanks for the reply from @Shosher , please allow me to provide another insight:
1. Add a new visual object.
2. Create a table.
3. Create a MEASURE.
Flag =
var _today=TODAY()
var _qu=QUARTER(_today)
return
IF(
QUARTER(MAX('Table'[Date]))=_qu,TRUE(),FALSE())
4. Place the field in the appropriate location.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Clara,
Thank you for the response but I require the time filter in a calendar form and also the selections must be dynamic i.e. changing the start and end date according to the current quarter.
You sadly cant easely do this, However there are some options.
You could work with bookmarks to have a switch button that gives the user to option to select the current quarter or a custom date. Current quarter can be a hidden filter. You add a new column in your calendar table that returns either a 0 or 1 depending on if that row is the current quarter.
So when the "Current Quarter" Option is selected you have a page filter or a hidden slicer that sets the entire page to either 0 or 1 depending on how you made your row.
When the "custom date" option is selected you make a bookmark empty the choices on your current quarter slicer and unhide your current date slicer.
Make sure to set the bookmark to only adjust selected measures and it should give you the requested result.
As a bonus you can add a third option to show relative dates. that would also show the current quarter and have the ability to do other stuff. This way you give your users all the possible options they could ever want. You can choose to only switch between a relative filter and the filter you currently use and it should give the expected result as long as your quarters line up with powerbi's quarters.
Make sure to set me as the result if this helped!
Thanks! It is working as expected
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |