Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where clause in expressions

I want to create a chart that shows the count and sum of one field but limits the output to criteria from another field. What is the correct syntax for the expression (eg: where field1 = X).  Thanks in advance

14 Replies
rustyfishbones
Master II
Master II

Hi Michael,

See the attached file.Does it help

agilos_mla
Partner - Creator III
Partner - Creator III

Are you sure that Field2 is 1 (as integer) if not I'd suggest this:

sum({<Field2={">0 <2"}>} Field1)

or

sum({<Field2={'1*'}>} Field1)

Not applicable
Author

Thanks. This worked and helped me better understand.

Not applicable
Author

Hi Michael, Please try like below:

count({<Field2={1}>} Field1)

sum({<Field2={1}>} Field1)

Not applicable
Author

Thank you. This will work as well and helps me understand what I am trying to represent.