Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlik experts,
I have a situation where I have a list of sellers which I desire to show the store where its seller made his/her last sell
I wanto show:
SalesmanName sum(SalesValue) Store
I tried
only(aggr(only({<Date= {"$(=only(aggr(max(Date),SalesmanName)))"}>} Store),SalesmanName))
Can there be more than one store with the max date? If not, then try this
FirstSortedValue(DISTINCT Store,-Date)
for more than one store, you can try this
Concat(DISTINCT Aggr(If(Date = Max(TOTAL <SalesmanName> Date), Store), Date, SalesmanName))
May be try this
FirstSortedValue(Store, -Date)
Hi Sunny,
thanks for replying but it returned null for all cases in my set, even for one SalesmanName.
Would you be able to share a sample to see what you have?
follow attached
RS
Can there be more than one store with the max date? If not, then try this
FirstSortedValue(DISTINCT Store,-Date)
for more than one store, you can try this
Concat(DISTINCT Aggr(If(Date = Max(TOTAL <SalesmanName> Date), Store), Date, SalesmanName))
It worked perfect with the distinct (the store is a date parameter)
thanks a lot Sunny
RS