Forum Discussion
ChristianTD
8 years agoFrequent Visitor
Show only data from the latest date
Dear all, I have a very basic question. I constantly struggle with showing only the data with the newest date. What is the easiest way to get a visual only to show data from the most recent date. ...
- 8 years ago
Hi ChristianTD,
Seems date type values don't have a "TOP" filter type. I would suggest you try the measure below and add it to the "Visual Level filter". Don't need to add it to any visual. Then filter the filter as "1". Please give it a try.
Measure = VAR LatestDate = CALCULATE ( MAX ( 'Table1'[Date] ), ALL ( 'table1' ) ) RETURN IF ( MIN ( 'Table1'[Date] ) = LatestDate, 1, 0 )Best Regards,
Dale
Phil_Seamark
Microsoft Employee
8 years agoOne way is to add this calculated column to your table, which returns a 1 or 0 for latest/not latest which you can use as a filter
Is Latest Row Filter =
VAR LatestDate = MAXX(FILTER('Table1','Table1'[Type] = EARLIER('Table1'[Type])),'Table1'[Date])
RETURN IF('Table1'[Date]=LatestDate,1,0)Anonymous
7 years agoNot applicable
This worked for me thanks:)