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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can i count numbers in a dependency of a other column?


Hello together,

I have a problem. This is my table

Numbersdivision
12345-
1234623
4323443
34565-
8765445

How can I count the Numbers with the numbers (23,43,45) in the division.

The result must be 3 (23, 43,45)

Do you have a solution for me.

Thank you.

1 Solution

Accepted Solutions
Not applicable
Author

Hi

use this expression it works

Count(if(division>0,numbers))

View solution in original post

7 Replies
preminqlik
Specialist II
Specialist II

hi there,

try this

count(distinct if(isnull(division)=0,Numbers)

MayilVahanan

HI

Try like this

Numbers in dimension

=Count(Distinct division) // use suppress null values.

Division as dimension

=Count({<Division = {'*'}>}Numbers)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

It doesn't work. The formula shows only - in the column.

Do you have a other solution.


Thank you.

Not applicable
Author

Hi,

If the Division holds only numaric then you just try with below

 

Count({<Division -= {'$(=Null())'}>} Division) 

                    (or)

Count({<Division =  {'>0'}>} Division)

Not applicable
Author

Hi

use this expression it works

Count(if(division>0,numbers))

Not applicable
Author

Hi,

please try this:

count(if(division='23' or division='43' or division='45',Numbers));

Kind Regard

preminqlik
Specialist II
Specialist II

hey try this

count(distinct if(isnull(division)<>-1,Numbers)