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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If statement...


Hi All,

Please see below, what the problem with my script:

IF (CURR='AU','US'), (num((AMOUNT_MTD_ACTUAL)*(KURS_RATE))*-1), AMOUNT_MTD_ACTUAL as AMOUNT

Please help me...

THANKS & REGARDS

Labels (1)
1 Solution

Accepted Solutions
prma7799
Master III
Master III

Try like this

IF ((CURR='AU' or 'US'), (num((AMOUNT_MTD_ACTUAL)*(KURS_RATE))*-1), AMOUNT_MTD_ACTUAL) as AMOUNT

Thanks

Prashant

View solution in original post

3 Replies
prma7799
Master III
Master III

Try like this

IF ((CURR='AU' or 'US'), (num((AMOUNT_MTD_ACTUAL)*(KURS_RATE))*-1), AMOUNT_MTD_ACTUAL) as AMOUNT

Thanks

Prashant

prma7799
Master III
Master III

IF ((CURR='AU' or 'US'), num((AMOUNT_MTD_ACTUAL)*(KURS_RATE))*-1), AMOUNT_MTD_ACTUAL as AMOUNT

jagan
Partner - Champion III
Partner - Champion III

Hi,

I think the expression should be

IF ((CURR='AU' or CURR='US'), (num((AMOUNT_MTD_ACTUAL)*(KURS_RATE))*-1), AMOUNT_MTD_ACTUAL)

as AMOUNT



OR


IF ((Match(CURR, 'AU', 'US'), (num((AMOUNT_MTD_ACTUAL)*(KURS_RATE))*-1), AMOUNT_MTD_ACTUAL)

as AMOUNT


Hope it helps you.


Regards,

Jagan.