Skip to main content
cancel
Showing results for
Search instead for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Resolver I

## Top 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 (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
1 ACCEPTED SOLUTION
Resolver I

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

4 REPLIES 4
Super User

Hi,

Please show the expected result in a Table format.

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Super User

@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))

Resolver I

Hi Amit,

Tried the measure but it didnt worked

Resolver I

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

## Helpful resources

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors