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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
ToinkToinkTigger
Contributor
Contributor

if col A < value, count ColB (not getting it to work)

Hi all,

I have this line of code: if(([% of Completion]=100), Count([PMP Scheduled Completion Date]))

This works just fine. However, if I want to return the count for all values <100 it does not work:

if(([% of Completion]<100), Count([PMP Scheduled Completion Date]))

Difference here is the = and < sign... what am I doing wrong here using the < for ''smaller than 100'' in this case? The dataset holds values <100 for sure.

 

Labels (1)
1 Solution

Accepted Solutions
agigliotti
MVP
MVP

Hi @ToinkToinkTigger ,

Maybe this:

=Count( if( [% of Completion]<100, [PMP Scheduled Completion Date] ) )

I hope it can help.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

3 Replies
martinpohl
Partner - Master
Partner - Master

Hi,

do you want to count in script or in an expression? hwat kind of chart-type?

Regards

agigliotti
MVP
MVP

Hi @ToinkToinkTigger ,

Maybe this:

=Count( if( [% of Completion]<100, [PMP Scheduled Completion Date] ) )

I hope it can help.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
ToinkToinkTigger
Contributor
Contributor
Author

Thanks that worked! Why didnt my line of code work? I used this as an expression in a bar chart.