Forum Discussion
CarMechanic
3 years agoNew Member
Need Help writing a DAX Formula that returns distinct values based on max date
Hello everyone, i need your help in writing a DAX Formula that returns distinct values for a row, based on max date that is smaller or equal to the value chosen in a slicer. So i have a DataTabl...
tamerj1
Community Champion
3 years agoHi CarMechanic
the date slicer is coming from a dimDate table?
CarMechanic
3 years agoNew Member
yes
- tamerj13 years ago
Community Champion
Try by placing the following measure in the filter pane of the table visual and select "is" (1) then apply the filter
FilterMeasure =
INT (
MAX ( DataTable[Loadtime] )
= CALCULATE (
MAX ( DataTable[Loadtime] ),
ALLEXCEPT ( DataTable, DataTable[Name] ),
'Date'[Date] <= MAX ( 'Date'[Date] )
)
)