Forum Discussion
Display most recent date in table.
- 5 years ago
Hi, StuartSmith
Based on your description, I created data to reproduce your sceanrio. The pbix file is attached in the end.
Table:
You may create a measure as below.
Visual Control = var tab = SUMMARIZE( ALL('Table'), 'Table'[Country], 'Table'[Carrier], "LastDate", MAX('Table'[Explicit Invoice Ymv]) ) var _date = MAXX( FILTER( tab, [Country]=SELECTEDVALUE('Table'[Country])&& [Carrier]=SELECTEDVALUE('Table'[Carrier]) ), [LastDate] ) return IF( SELECTEDVALUE('Table'[Explicit Invoice Ymv])=_date, 1,0 )Finally you need to put the measure in the visual level filter to get the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, StuartSmith
Based on your description, I created data to reproduce your sceanrio. The pbix file is attached in the end.
Table:
You may create a measure as below.
Visual Control =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[Country],
'Table'[Carrier],
"LastDate",
MAX('Table'[Explicit Invoice Ymv])
)
var _date =
MAXX(
FILTER(
tab,
[Country]=SELECTEDVALUE('Table'[Country])&&
[Carrier]=SELECTEDVALUE('Table'[Carrier])
),
[LastDate]
)
return
IF(
SELECTEDVALUE('Table'[Explicit Invoice Ymv])=_date,
1,0
)
Finally you need to put the measure in the visual level filter to get the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.