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

Counting same data blocks

Hello,

The database has a range with products, date and a code number.

Í want to count for each product:

How many days the code "500" occur in a block of associated days.

How many associated blocks with code number "500" the are.

See attached file.

Thanks

8 Replies
Not applicable
Author

Hi Ralph

Create a graph with

Product Code as Dimension

Count(Date) as expression

if you need just one code, select it

best regards

Chris

alexandros17
Partner - Champion III
Partner - Champion III

Here it is my example

mdmukramali
Specialist III
Specialist III

Dear ,

Kindly find the attached file.

I hope it will help you.

Thanks,

Mukram.

Not applicable
Author

Hello Mohammed,

Thanks voor the reply.

This is not what I mean.

See attached file tab 2

alexandros17
Partner - Champion III
Partner - Champion III

... have you seen my example?

let me know

Not applicable
Author

Yes,

Thank you, but it's the same as Mohammed and not what I mean.

My question is not very good due my bad english.

I attached a new JPG (knipsel) into my question.

Did you see the second tab of my Excel document?

Here you can see what i want.

Not applicable
Author

When you load the data in concat the 2 fields and count the concatenated field?

Not applicable
Author

Hello Felim,

That doesn't work.

In Excel it's the formular: IF(Code = 500; Above CELL + 1; 0)

In Qlikview: IF(Code = '500', ???? + 1, 0)

Dimensions is Product.

Code range 1

500     1

500     2    it's 500 -> 1 + 1 = 2

100     0    it's not 500 -> 0

110     0

500     1

500     2

500     3

etc..

With this table I can take the MAX number en thats what I want.

MAX(Range 1) = 3

I hope this will help and that you can and will help me.