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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
shamitshah
Partner - Creator
Partner - Creator

IF statement expression

Hi,

I need help with the following if expression which is currently incorrect. The statement should show the InwardsMonthYr if PurchaseID <0, otherwise leave it blank.

if(PUR_MYOBPurchaseID=('<0'),max(InwardsMonthYr))

Thanks

Shamit

1 Solution

Accepted Solutions
avinashelite

Try like


if(PUR_MYOBPurchaseID<0,max(InwardsMonthYr))

View solution in original post

4 Replies
avinashelite

Try like


if(PUR_MYOBPurchaseID<0,max(InwardsMonthYr))

er_mohit
Master II
Master II

Try This

max(if(PUR_MYOBPurchaseID<0,InwardsMonthYr))

Chanty4u
MVP
MVP

try this

if(PUR_MYOBPurchaseID<0,max(InwardsMonthYr))

ramasaisaksoft

Hi Shamit,

Check the below exp.

here we converted PUR_MYOBPurchaseID into num format .

=If(num(PUR_MYOBPurchaseID)<0,max(InwardsMonthYr))