Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Find max counts in subcategory with condition by every category

subhajits11
8 - Asteroid

Hi Trixians,

I am stuck in this very simple thing but somehow not able to solve,Any help!

Question is , which are the shops have maximum subcategory sales are candles?

 

Data:

Shop namesold itemNo of item sold
shop1candle12
shop1fish oil11
shop1buddha banner10
shop1pillow3
shop1shirt5
shop2candle3
shop2fish oil4
shop2buddha banner12
shop2pillow45
shop2shirt3
shop3candle12
shop3fish oil19
shop3buddha banner24
shop3pillow10
shop3shirt9
shop4candle12
shop4fish oil19
shop4buddha banner24
shop4pillow10
shop4shirt9
shop5candle12
shop5fish oil19
shop5buddha banner24
shop5pillow10
shop5shirt9

 

Thanks for the input,in advance.

1 REPLY 1
jdunkerley79
ACE Emeritus
ACE Emeritus

I would suggest:

2020-06-20_09-48-03.png

 

First sort the data so it is by Shop and then Descending within it

You can then use a sample tool to pick the first item, grouped by Shop

Finally a filter to pick just candles

 

Sample attached

Labels
Top Solution Authors