Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ugurarslan
Creator
Creator

Count if count of a dimension is less than 1

Dear,

I have a table where I display the count of invoices per customer.  The expression I use is  count(distinct[Invoice Nbr]).

Now the table shows the following:

Customer

Count of invoices

ID A

1

ID BE

4

ID R

3

ID RO

5

ID F

2

ID Z

1

 

In the table I would like the table to show/display me all customers where the count of invoices is less than 2. 

Example of how the table should look like:

Property

Count of invoices

ID A

1

ID Z

1

 

Please help me, thanks

 

Ugur

 

Labels (2)
7 Replies
pradosh_thakur
Master II
Master II

in script use a where condition , It will do the job
Learning never stops.
ugurarslan
Creator
Creator
Author

Hi Pradosh, I do not have a script, we work with enterprise so I need to do it in the table itself.

 

Ugur

pradosh_thakur
Master II
Master II

in UI

IF(Count(distinct[Invoice Nbr])<2,count(distinct[Invoice Nbr]),0)
and supress zero.
Learning never stops.
pradosh_thakur
Master II
Master II

IF(Count(distinct[Invoice Nbr])<2,count(distinct[Invoice Nbr]),0)
and supress zero.
Learning never stops.
ugurarslan
Creator
Creator
Author

Thanks Pradosh, how do I suppress zero?

 

ugurarslan
Creator
Creator
Author

Hi, this unfortunately didn't work...

pradosh_thakur
Master II
Master II

please show the output screenshot
Learning never stops.