Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi!!
I would like to create 2 date slicers that are using the same Date column.
This is how i want it to work:
First slicer: is showing the last 7 days, always visible.
Second slicer: is like a calendar, opened by button (using Bookmarks), contains the last 30 days.
My problem is the interaction between these 2 slicers, here is the scenario:
Any ideas how to fix this ? or can i do it another way ?
Thank you in advance.
Solved! Go to Solution.
Hi @Anonymous ,
You can create a separate table.
Then create the measure.
Filter results =
SWITCH (
SELECTEDVALUE ( 'Table (2)'[Slicer] ),
"last 7 days",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', [Date] >= TODAY () - 6 && [Date] <= TODAY () )
),
"last 30 days",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', [Date] >= TODAY () - 29 && [Date] <= TODAY () )
)
)
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Stephen Tao
Hi @Anonymous ,
You can create a separate table.
Then create the measure.
Filter results =
SWITCH (
SELECTEDVALUE ( 'Table (2)'[Slicer] ),
"last 7 days",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', [Date] >= TODAY () - 6 && [Date] <= TODAY () )
),
"last 30 days",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', [Date] >= TODAY () - 29 && [Date] <= TODAY () )
)
)
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @Anonymous - can you please share your data model if it does not have any sensitive data? Thanks!
Proud to be a Super User!
@Anonymous
Check out this thread and see if it helps:
Proud to be a Super User!
Paul on Linkedin.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 46 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 202 | |
| 130 | |
| 102 | |
| 71 | |
| 55 |