Forum Discussion
CDSouthall
5 years agoRegular Visitor
Filter on Single Date to display data between 2 dates.
Is it possible for me to build a Dax / funtionality that will allow me to have one date filter / slicer that will then return all rows between a start and end date range? For example from the tab...
mahoneypat
Microsoft Employee
5 years agoYou can use a measure pattern like this and use it as a filter on your table visual where it "is" 1
EventFilter =
VAR vSelDate =
SELECTEDVALUE ( SlicerTable[Date] )
RETURN
IF (
ISBLANK (
CALCULATE (
COUNT ( Event[Event Name] ),
Event[Start Date] <= vSelDate,
Event[End Date] >= vSelDate
)
),
0,
1
)
Pat