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: 
mohammadkhatimi
Partner - Specialist
Partner - Specialist

Value in Text Box

  HI,

 

OIDValue1 Value2Value3
11000100
20150150
32000200
40250250
5300100300


We need Value3 in text box..

Logic is if Value1 is zero than pick Value2 else Value1..This is done in staright table but requirement is in textbox...

How to show plz help...!!!

Regards,

Mohammad

4 Replies
swuehl
MVP
MVP

Which value of column "Value3" do you want to show? An aggregated, summed value?

=Sum( If( Value1, Value1, Value2))

or maybe a concatenated string?

=Concat( If( Value1, Value1, Value2), ', ', OID)

mohammadkhatimi
Partner - Specialist
Partner - Specialist
Author

I tried below logic but its not working.

Its showing only Value1 values not Value2


=Sum( If( Value1, Value1, Value2))

mohammadkhatimi
Partner - Specialist
Partner - Specialist
Author

In above example which I shared its working but if I'm applying on my data than its not working..

Results comes only Value1

trdandamudi
Master II
Master II

Can you please share a small sample to test it out...