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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
satyavar
Contributor III
Contributor III

[resolved] Greater than in tMap on BigDecimal

Hi
I am trying to compare Big Decimal value and print Y or N based on the below condition. But syntactically it seems to be wrong with TALEND. Can someone please help me with correct syntax for below expression.
(row3.ATTRIB_03 == "100" && row3.ATTRIB_24 > BigDecimal.valueOf(0)) ? "Y" : "N"
row3.ATTRIB_03 is a String and row3.ATTRIB_24 is a BigDecimal and the expected output of this expression is a String.
Thanks
Kalyan
Labels (2)
1 Solution

Accepted Solutions
satyavar
Contributor III
Contributor III
Author

Got answer for my question. I should be doing it in the following way:
(row3.ATTRIB_03 == "100" && row3.ATTRIB_24.compareTo(BigDecimal.valueOf(0)) == 1) ? "Y" : "N"

View solution in original post

2 Replies
Jcs19
Creator II
Creator II

What's error are you getting  ? 
satyavar
Contributor III
Contributor III
Author

Got answer for my question. I should be doing it in the following way:
(row3.ATTRIB_03 == "100" && row3.ATTRIB_24.compareTo(BigDecimal.valueOf(0)) == 1) ? "Y" : "N"