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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Prasanna3
Contributor
Contributor

Comparing String less than values

Hi Team,

I am receving data from the feed like below.
Amount,empno
0.0,100
-1,300
I have to check if the amount <0.0 then we should mark that record as Failed.
can some one suggest me solution.

Thanks,
Kumar
Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

OK then use expression like below in the output field. And the output data type should be strong.
Integer.parseInt(row1.amount)<0?"failed":"pass"

View solution in original post

6 Replies
billimmer
Creator III
Creator III

Use tFilterRows and check the value there

manodwhb
Champion II
Champion II

Use to tmap to write expressions like. What is the data type of amount.?
Prasanna3
Contributor
Contributor
Author

String data types.
manodwhb
Champion II
Champion II

OK then use expression like below in the output field. And the output data type should be strong.
Integer.parseInt(row1.amount)<0?"failed":"pass"
Prasanna3
Contributor
Contributor
Author

I am getting values from the feed like 0.0 and -1.0 like that .will your solution work for that also?
manodwhb
Champion II
Champion II

if your source data type is string then sure that solution works.