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

Count the number of times one thing is minimum

Hi

I have data which looks as below

Item Number

ABC
1100300600
2200300500
3300300400
4400300300
5500300200

I want to have something which says what percentage of the time each shop (A,B and C) is cheapest, so a table which looks like this

Shop%cheapest
A60%
B40%
C40%

I know you can use RangeMin(A,B,C) to get the cheapest price for each item and could probably do so kind of IF statement to count for each shop whether its prices equals the rangemin but I actually have about 50 shops so that would take a long time

Any help would be greatly appreciated.

2 Replies
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks Gysbert

While this works I also want to be able to select just shops B and C and have the % cheapest recalculated which I don't think this will do.