Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217137

create a measure of latest date in a column

$
0
0

I want to put a tile on my report carrying the latest date in the data used.

 

I've tried several ways:

 

1: Measure = LASTDATE(my_table[Date])

Result: no error, blank visual

 

2: Measure = LASTDATE(DISTINCT(my_table[DateTime]))

Result: MdxScript(Model) (1, 46) Calculation error in measure 'gen_edi_stats_addl'[Measure]: A date column containing duplicate dates was specified in the call to function 'LASTDATE'. This is not supported.

 

 

3: Measure = LASTDATE(DISTINCT(my_table[DateTime]))

Result: Still the same as 2.

 

Any idea? Thanks!

 


Viewing all articles
Browse latest Browse all 217137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>