Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count like pivot table

Count like pivot table

I have the following data:

Item

 
in stock

A

 

4

 

B

 

4

 

C

 

4

 

D

 

3

 

E

 

3

 

F

 

3

 

AB

 

3

 

AC

 

3

 

AD

 

2

 

AE

 

2

 

B

 

2

 

B1

 

2

 

B2

 

2

 

B3

 

2

 

I like to count how many items I have for each count

This is my expected output

Count of Item

 

 

in stock

 

Total

 

1

 

10498

 

2

 

153

 

3

 

5

 

4

 

3

 

(blank)

 

 

Grand Total

 

10659

 

It’s easy using excel, I like to do the same on the QV.

Suggestions are more than welcome.

Thanks in advance.

1 Solution

Accepted Solutions
Not applicable
Author

is the in stock an expression? You could try aggr like

count(aggr(sum(instock),Item))

View solution in original post

3 Replies
jvitantonio
Luminary Alumni
Luminary Alumni

HERE YOU GO

Not applicable
Author

is the in stock an expression? You could try aggr like

count(aggr(sum(instock),Item))

Not applicable
Author

thank you both.