Forum Discussion
change date slicer range based on selection
Hi all,
I would like to update a date slicer depending on a category.
In the attached example, I have a table with ids, categories and start dates.
I also have a date slicer which by default hase a range equal to my calendar table.
I managed to create a measure (min_start_date_per_cat) which gives me the minimal date for each category.
I also managed to create a calendar tables which updates depending on the category selected.
However, i would like my date slicer to also update.
In the attached example, when I select the category B, the slicer goes from 01/01/2021 but I would like it to start from 01/06/2021
Any idea on how to achieve this?
the pbix is in the link below :
https://www.transfernow.net/dl/20220112cvKiYJ8l
Anonymous if you are using date slicer as between (shown in the image above), there is no solution for it, I have already hit the wall on this until someone else has a solution but yes if it is a list or drop-down there there is a solution.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
1 Reply
- parry2k
Super User
Anonymous if you are using date slicer as between (shown in the image above), there is no solution for it, I have already hit the wall on this until someone else has a solution but yes if it is a list or drop-down there there is a solution.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.