March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |