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.
hello everybody,
I want the user to select a date, and that automatically the same date month -1,-2,-3,-4 etc is selected
like this : (format dd/MM/YYYY)
is it possible to do this?
someone can help me please
Solved! Go to Solution.
Hi @randomUser21 ,
You can follow the steps below to get it:
1. Create a measure as below
Flag =
VAR _seldate =
SELECTEDVALUE ( 'Date'[Date] )
VAR _curdate =
SELECTEDVALUE ( 'Table'[Date] )
RETURN
IF ( _curdate >= _seldate - 6 && _curdate <= _seldate, 1, 0 )
2. Apply a visual-level filter with the condition (Flag is 1) to filter the data on the visual
Best Regards
Hi @randomUser21 ,
You can follow the steps below to get it:
1. Create a measure as below
Flag =
VAR _seldate =
SELECTEDVALUE ( 'Date'[Date] )
VAR _curdate =
SELECTEDVALUE ( 'Table'[Date] )
RETURN
IF ( _curdate >= _seldate - 6 && _curdate <= _seldate, 1, 0 )
2. Apply a visual-level filter with the condition (Flag is 1) to filter the data on the visual
Best Regards
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.