cancel
Showing results for 
Search instead for 
Did you mean: 

help with IF statement

02-23-2023 6:15 AM
zulo Explorer
958 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

Hello SAP experts,

I need some help with IF statement in Lunch Pad 4.3. I'm trying to create calculated column showing letter "G" if value is > 500.

=if([object]>500, "G") - giving me ERROR - Problem converting '500,' to a float.

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

amitrathi239
Active Contributor

you need to use semicolon instead of comma in the formula.

=if([object]>500; “G”)


or another way to write if else statement

=if([Object]>500) then “G”

Yogananda
Product and Topic Expert
Product and Topic Expert

zulo
This should work, but make sure your object is a numeric type. If it is a string, you will need to convert it to a number first. Try using the following syntax:

=if(tonumber([object]) > 500, "G", "")
zulo
Explorer
0 Likes

Thank you both, I figures that value was string, so =If(ToNumber([object]) > 500; "G") works with semicolon.