Hello, Can someone help me create a formula for be...
# general
n
Hello, Can someone help me create a formula for below requirement?
Pull the account records between 1000 and 2000
I tried to add between function but its not working.
case {account.number}>'1000' between {account.number}<'2000'
Number field on the the account is Free-Form Text type field so I cannot use the Formula(numeric) function. Is there another way to pull the records the BETWEEN 1000 and 2000?
n
Convert string to number in your formula?
n
how to do that?
n
No expert with SQL but i'd imagine TO_NUMBER({account.number}) if the syntax is correct
n
ohh. Let me try his
m
I was just going to say try TO_NUMBER. It’s worked for me on other things.
r
Couldn't you do case when {account.number} like '1%' or {account.number} like '2%'? then you wouldn't have to worry about conversions.