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

Share of Product per Category for each month

Hi All,

I need you help with one requirement.

I have a sample data like this:

   

ProductCatSaleTime Expected Output
AAA10Jan33%
BAA20Jan67%
CBB30Jan58%
DBB22Jan42%
AAA5Feb12%
BAA36Feb88%
CBB12Feb18%
DBB56Feb82%

I want to create a Line chart with "Product" and "Time" as dimension.

Then i would like to show market share of each product over its segment for the particular time period. The expected output is mentioned above.

eg: Product A Sale in Jan = 10, so my requirement will be 10/(10+20)

Same goes for other products  for B =20/30

Br,

KC

Best Regards,
KC
1 Solution

Accepted Solutions
sunny_talwar

Try this

=Sum(Sale)/Aggr(NODISTINCT Sum(TOTAL <Cat, Time> Sale), Product, Cat, Time)


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

Try this

=Sum(Sale)/Aggr(NODISTINCT Sum(TOTAL <Cat, Time> Sale), Product, Cat, Time)


Capture.PNG

jyothish8807
Master II
Master II
Author

Thanks sunny

Best Regards,
KC