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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to compare two columns

Hi

i have two columns one measure

a  b    measure

1  1       34

2    3      45

6     5      56

now ouput like

a  b    comparision

1  1       34

2   3       0

6   5       0

what i wnt is if a=b i want show measure value

if not i want show 0 value

3 Replies
Anonymous
Not applicable
Author

expression:

=if (a=b, sum(measure), 0)

senpradip007
Specialist III
Specialist III

Try like this expression:

If(a=b, measure, o)

sujeetsingh
Master III
Master III

T simple follow any of the sugestion