March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 (SUM(Amount),FILTER(table,currenttime>= max(currenttime)))
but none is working
Currenttime | AreaiD | Amount |
13/04/2022 10:14:00 AM | 1 | 10 |
13/04/2022 10:14:00 AM | 2 | 20 |
13/04/2022 09:14:00 AM | 1 | 10 |
13/04/2022 09:14:00 AM | 3 | 20 |
Solved! Go to Solution.
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
Hi,
Please show the expected result in a Table format.
@khush19 , 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))
Hi Amit,
Tried the measure but it didnt worked
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |