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 have a date filter showing the last 7 or 14 days depending on another filter like this:
Is it possible?
BR
Lotte
Solved! Go to Solution.
I have find a way to solve it 🙂
I have find a way to solve it 🙂
@LotteLaugesen , Create a measure
countrows(filter('Date', Date[Date] <= Today() && Date[Date] >= Today() - (selectedvalue(Table[Number])*7) ))
and check the values is not blank in the visual level filter of the slicer
Hi amitchandak
It doesn't seem to work - it doesn't matter if I select 1 or 2 week the measure is 1.
If it worked how could I then use it as a filter for the date slicer?
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 |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 30 | |
| 19 | |
| 11 | |
| 10 |