Forum Discussion
khush19
Resolver I
4 years agoTop N in Donut chart
I have data In my donut chart i only want o show AMOUNT with latest Date . I tried using top N but it works sometimes but dnt return anything most of time. i tried using measure Calculate (S...
- 4 years ago
Earlier the date was passed as format 03/14/2000 mm/dd/yyyy hh:mm:ss
changed to
dd/mm/yyyy hh:mm:ss
and it is working,not sure why it was failing before
amitchandak
Super User
4 years agokhush19 , Try a measure like
M1=
var _max = maxX(allselected(Table), Table[currenttime])
return
Calculate (SUM(Amount),FILTER(table,[currenttime]>= _max))
or
M1 =
var _max = datevalues(maxX(allselected(Table), Table[currenttime]))
return
Calculate (SUM(Amount),FILTER(table,datevalues([currenttime])>= _max))