Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
I currently have my reports split in two, where I show by week and by month views.
I tried to merge them into one using bookmarks and drilling through visuals. This resulted in having a "weekly" and "monthly" button selection that would change the view of the graphs accordingly. Below the example:
This worked for all the visuals apart from the Slicer on the top left of the screenshots that would not drill down/up nor allow a measure change.
Is there a way to have a slicer change between the week and month measures depending on bookmarks (or buttons or any other view)?
Thanks in advance
Solved! Go to Solution.
Hi, @sgallo
Your solution using bookmarks is excellent; however, based on my understanding of your requirements, I would recommend using parameter fields instead.
1.Firstly, here is my original data:
2.Secondly, create a new column based on the original date column that spans weeks. Below is an example of my calculated column, which you can adjust according to your needs:
weekly1 = WEEKNUM('Table'[Date])
weekly = CALCULATE(MAX('Table'[Date]),FILTER('Table','Table'[weekly1]=EARLIER('Table'[weekly1])))
3.Next, take the month hierarchy from the original date column and combine it with the newly created calculated column as parameter fields, renaming them accordingly.
Parameter = {
("Weekly", NAMEOF('Table'[weekly]), 0),
("Monthly", NAMEOF('Table'[Date].[Month]), 1)
}
4.Then, modify the settings of the visual object:
5.Following that, create two slicers, adjusting the settings for one of them:
6.Here are the final results, which I hope will meet your needs:
7.Here is the relevant documentation:
Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sgallo
Your solution using bookmarks is excellent; however, based on my understanding of your requirements, I would recommend using parameter fields instead.
1.Firstly, here is my original data:
2.Secondly, create a new column based on the original date column that spans weeks. Below is an example of my calculated column, which you can adjust according to your needs:
weekly1 = WEEKNUM('Table'[Date])
weekly = CALCULATE(MAX('Table'[Date]),FILTER('Table','Table'[weekly1]=EARLIER('Table'[weekly1])))
3.Next, take the month hierarchy from the original date column and combine it with the newly created calculated column as parameter fields, renaming them accordingly.
Parameter = {
("Weekly", NAMEOF('Table'[weekly]), 0),
("Monthly", NAMEOF('Table'[Date].[Month]), 1)
}
4.Then, modify the settings of the visual object:
5.Following that, create two slicers, adjusting the settings for one of them:
6.Here are the final results, which I hope will meet your needs:
7.Here is the relevant documentation:
Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
77 | |
73 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
57 | |
56 | |
46 | |
40 |