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 occurence of each unique value

HI,

I'm having trouble with calculating the following data.

There is a table with sales information. Each row represents one sale of one product. there is one row that contains the product name that is sold. (Row: product)

I want to know how many of each product is sold over the selected period.

I used to do this with MSSQL like this:

select

     product,

     count(*) as amount

from salestable

group by product.

With the results I want to make a bar graph that stacks the amount of each product like this:

tmp.png

How can I do this in Qlikview with the greatest possible flexibility? I don't want to count each product separately, there can be over a 200 different products so I want to do this dynamical.

2 Replies
Not applicable
Author

Check the Attachment.

Not applicable
Author

Thanks, this helps me a lot!