Forum Discussion
Show only data from the latest 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
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
i had a situation, how one can get last row data of every year to compare / calculate difference?
Sample Data:
Country Name Date Price
------------ ----------- ------
Argentina 3/1/2015 3.40
Argentina 6/28/2015 3.46
Argentina 3/1/2016 3.50
Argentina 6/28/2016 3.51
Argentina 4/1/2017 3.60
Argentina 8/29/2017 3.66
Argentina 5/1/2018 3.70
Argentina 8/30/2018 3.73
Brazil 3/1/2015 2.23
Brazil 6/28/2015 2.30
Brazil 3/1/2016 2.38
Brazil 6/28/2016 2.44
Brazil 2/8/2017 2.50
Brazil 7/31/2017 2.59
Brazil 3/13/2018 2.70
Brazil 7/22/2018 2.77Output on Visual:
Country Name Date Price Difference
------------ --------- ----- ----------
Argentina 6/28/2015 3.46
Argentina 6/28/2016 3.51 0.05
Argentina 7/31/2017 3.66 0.15
Argentina 7/22/2018 3.73 0.07
Brazil 6/28/2015 2.30
Brazil 6/28/2016 2.44 0.14
Brazil 7/31/2017 2.61 0.17
Brazil 7/22/2018 2.77 0.16please help, how i can achieve this as most of the solutions are accessing Last Most when searched here and on google.
regards