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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
danielnevitt
Creator
Creator

IF Statement

Hi,

I would appreciate some help with a simple question, that I am struggling to fix.

I have a straight table with two calculations in column(1) and column(2).  I would like to only show records where column(1)-column(2)=0

Regards,

Daniel

1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Missing a brace :

If(column(1)-column(2)=0, Count({<Side={'Buy'}>}Symbol) , 0)

View solution in original post

3 Replies
tresB
Champion III
Champion III

Modify your col1 and col2 expression to something like:

Col1 Exp:

If(column(1)-column(2)=0, <Existing Expression1> , 0)

Col2 Exp:

If(column(1)-column(2)=0, <Existing Expression2> , 0)

 

Then with default zero value suppression setting, you should get what you want

 

danielnevitt
Creator
Creator
Author

Thank you for your quick response.

I have included existing expression 1 (below), however I get an error.  Do you know what the issue might be?

If(column(1)-column(2)=0, Count({<Side={'Buy'}>}Symbol , 0)

Regards,

Daniel

 

tresB
Champion III
Champion III

Missing a brace :

If(column(1)-column(2)=0, Count({<Side={'Buy'}>}Symbol) , 0)