Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Logical issue

Binary].pngHi all,

I have a requirement where if value of field X is greater than 10 then it should be replaced by values of other field Y.Otherwise show value as 1.I am applying a logic

if(X>10,Y,"1")

But it is not giving the values of Y For values greater than 10 instead giving  a string "PRAGNOS

Can anyone help me??

Regards

Adarsh

Message was edited by: adarsh chaubey

1 Solution

Accepted Solutions
prieper
Master II
Master II

Would recommend to check the content of the field BHP.

Why do you choose NUM#(TXT_EXPORT.ARGUMENT_13) or NUM(BHP)? In most cases QV does not really differentiate betw strings and numbers.

Might be worth to have a tablebox with the inputvalues and the output and check for anomalies in the in input-data.

Peter

View solution in original post

3 Replies
prieper
Master II
Master II

in script or expression?

can you please post an example?

Anonymous
Not applicable
Author

Hi peter pls see the below imageBinary].png

prieper
Master II
Master II

Would recommend to check the content of the field BHP.

Why do you choose NUM#(TXT_EXPORT.ARGUMENT_13) or NUM(BHP)? In most cases QV does not really differentiate betw strings and numbers.

Might be worth to have a tablebox with the inputvalues and the output and check for anomalies in the in input-data.

Peter