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

Count When (condition)

Hi,

I have a problem in implementing the count function.

I am trying to insert an expression in a pivot table. The expression should return the count of glucose values for the glucose values which are less than 100.

I tried using: Count({$<Glucose={'<= 100)'}>}[Glucose])

Could someone help me out? Thanks in advance!

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use double quotes for less than or greater than comparison,otherwise it take its whole <=100 to compare as text.

Count({$<Glucose={"<=100"}>}[Glucose])

or

Count({$<Glucose={<=100}>}[Glucose])

Celambarasan

View solution in original post

2 Replies
Not applicable
Author

Try that : count ( { <Glucose <=100> } Glucose)

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use double quotes for less than or greater than comparison,otherwise it take its whole <=100 to compare as text.

Count({$<Glucose={"<=100"}>}[Glucose])

or

Count({$<Glucose={<=100}>}[Glucose])

Celambarasan