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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
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
Partner - Champion
Partner - Champion

Hi @ToinkToinkTigger ,

Maybe this:

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

I hope it can help.

Best Regards

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
Partner - Champion
Partner - Champion

Hi @ToinkToinkTigger ,

Maybe this:

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

I hope it can help.

Best Regards

ToinkToinkTigger
Contributor
Contributor
Author

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