Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
In Report Builder, I have a task activity table with due date. I want to have a user select a report parameter "Forecast Days" (=7 days, 30 days, 90 days) that filters the task due date. So for example, selecting "30 Days" the table will show task due dates between today and +30 days. What is the DAX for this? Thanks!
Solved! Go to Solution.
Hi @ralph_schroeder ,
Create a table like below and use it as slicer.
Then create a measure like below and add it to visual filter set value = 1.
Measure =
IF (
SELECTEDVALUE ( 'Table'[Date] ) <= TODAY ()
&& SELECTEDVALUE ( 'Table'[Date] )
> TODAY () - SELECTEDVALUE ( slicer[slicer] ),
1
)
Best Regards,
Jay
Hi @ralph_schroeder ,
Create a table like below and use it as slicer.
Then create a measure like below and add it to visual filter set value = 1.
Measure =
IF (
SELECTEDVALUE ( 'Table'[Date] ) <= TODAY ()
&& SELECTEDVALUE ( 'Table'[Date] )
> TODAY () - SELECTEDVALUE ( slicer[slicer] ),
1
)
Best Regards,
Jay
Hi, @ralph_schroeder
You can create a Numeric parameter, and use the DATEADD function
CALCULATE(
[measure],
DATEADD('Dates'[Date],
[Value "Parameter"],
DAY)
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 7 |