Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
Specialist III
Specialist III

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.