Forum Discussion
Historized dataset: picking reference date in DAX between valid_from and valid_to
- 7 years ago
Hi Anonymous,
Try this, where Table1 is the table you show:
1. Place Table1[Contract_ID] in the rows of a table/matrix visual
2. Let's assume Slicer[Date] is the name of the slicer you are using. Create this measure:
ShowMeasure = IF ( SELECTEDVALUE ( Slicer[Date] ) >= SELECTEDVALUE ( Table1[Valid_from] ) && SELECTEDVALUE ( Slicer[Date] ) <= SELECTEDVALUE ( Table1[Valid_to] ), 1 )3. Place [ShowMeasure] in the visual level filters and choose Show if value is -> 1
Hi Anonymous,
Try this, where Table1 is the table you show:
1. Place Table1[Contract_ID] in the rows of a table/matrix visual
2. Let's assume Slicer[Date] is the name of the slicer you are using. Create this measure:
ShowMeasure =
IF (
SELECTEDVALUE ( Slicer[Date] ) >= SELECTEDVALUE ( Table1[Valid_from] )
&& SELECTEDVALUE ( Slicer[Date] ) <= SELECTEDVALUE ( Table1[Valid_to] ),
1
)
3. Place [ShowMeasure] in the visual level filters and choose Show if value is -> 1
- Anonymous7 years agoNot applicable
Thank you AIB! Your solution works for us :)
- dsi6 years agoFrequent Visitor
Unfortunately this seems to work only with tables or a matrix.
Is there a way to do this on the page or report level?