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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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 September 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
11 | |
10 | |
10 |