Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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
tresesco
MVP
MVP

Missing a brace :

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

View solution in original post

3 Replies
tresesco
MVP
MVP

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

 

tresesco
MVP
MVP

Missing a brace :

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