Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Carlaf_93
Creator II
Creator II

formula max

Good afternoon,

i want to calculate the best seller.

I have:

sales,

seller,

products.

What's the right formula?

 

 

1 Solution

Accepted Solutions
tresesco
MVP
MVP

For, product-wise calculation, try with a small correction to the above expression (by @dplr-rn ), like:

firstsortedvalue(seller,-aggr(sum(sales),product, seller))

View solution in original post

4 Replies
tresesco
MVP
MVP

Try like:

FirstSortedValue(seller, -Aggr(Sum(sales), seller))

dplr-rn
Partner - Master III
Partner - Master III

need more details (what kind of visual, what are the dimensions etc.) for a  proper answer but roughly you need

aggr function and firstsorted value

assuming you aresomething like firstsortedvalue(seller,-aggr(sum(sales),product)) to get best sales person per product

check this for a tutorial

https://www.youtube.com/watch?v=Y3jiEpX4pbY

tresesco
MVP
MVP

For, product-wise calculation, try with a small correction to the above expression (by @dplr-rn ), like:

firstsortedvalue(seller,-aggr(sum(sales),product, seller))

Carlaf_93
Creator II
Creator II
Author

I would like to have it in a KPI but it isn't a numeric value.

And the formula doesn't work.