
Creator
2024-01-23
09:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
KPI Chart Expression - Duplicate first sorted value
I'm looking to return the highest number items, the problem I'm having is when I have items with the same number total.
E.g.
Book A 50
Book B 50
Book C 20
The following expression returns nothing - is there a way for it to return more than one result where there are duplicates?
FirstSortedValue([Product Name], -Aggr(Sum([Order Quantity]), [Product Name]))
555 Views
2 Replies

Partner - Specialist
2024-01-23
10:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FirstSortedValue(DISTINCT [Product Name], -Aggr(Sum([Order Quantity]), [Product Name]))
should work I think.
Manuel Rühl
www.mamaconsulting.de
www.mamaconsulting.de
545 Views

MVP
2024-01-23
12:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Concat( DISTINCT
Aggr( Only([Product Name]),
Sum([Order Quantity]) ),
', ')
