Hi there.
I've built an app for my company to track service calls in order to register the number of errors in the past.
We have now decided to build further upon this and include an information page showing the top 10 frequent clients the last 3 months.
But i'm having some problems:
Right now i have a Gallery set up showing the first 10 clients and a label showing the amount of times ThisItem.Result comes up.
I've attached screenshots showing the layout and code - but to make it easier, I'll add them here too.
Gallery: FirstN(Sort(Distinct(TicketsCollect;Accountname);Result);10)
Ticket count: CountIf(TicketsCollect;ThisItem.Result = Accountname)
Client name in Gallery: Result
So here's what I'm actually trying to do:
I want to list the top 10 clients based on the amount of tickets they have had over the last 3 months (changing as time goes by) in descending order.
I've been trying to read up on different functions but I am having a hard time incorporating this to practical use.
Any tips or help is much appreciated.
- Anders