Forum Discussion
ThomasJB2004
2 years agoRegular Visitor
Filtering out all False values from my Table
I need to sort the date according to unique numbers (sort of ID), when the ID is detected twice i need the ID with the newest date attached to it. i fixed this with a DAX now the newest date will alw...
- Anonymous2 years ago
Hi ThomasJB2004 ,
You can follow the steps below to get it, please find the details in the attachment.
1. Create a calculated column to judge if it is the row with max date per ID
Flag = VAR _maxdate = CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( 'Table', 'Table'[id] = EARLIER ( 'Table'[ID] ) ) ) RETURN IF ( 'Table'[Date] = _maxdate, TRUE(), FALSE() )2. Create a slicer to filter the data
Best Regards
Anonymous
2 years agoNot applicable
Hi ThomasJB2004 ,
You can follow the steps below to get it, please find the details in the attachment.
1. Create a calculated column to judge if it is the row with max date per ID
Flag =
VAR _maxdate =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER ( 'Table', 'Table'[id] = EARLIER ( 'Table'[ID] ) )
)
RETURN
IF ( 'Table'[Date] = _maxdate, TRUE(), FALSE() )
2. Create a slicer to filter the data
Best Regards
ThomasJB2004
2 years agoRegular Visitor
Thanks, Works for me - could even delete my other DAX and still worked