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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Dayna
Creator II
Creator II

Where/If statement in loading script

Hey All,

I was sure this is an easy thing to do, but it's driving me crazy!! So, any help will be appreciated.

Basically, we have two sites, 110 and 120, and what I am trying to achieve is that if the sold qty is less than 0 for site 120, I don't want to show it! (I do for the ones in 110). I was thinking an if statement or a where clause in the loading script.. but nothing is really giving me the results!

Please help!

Kind Regards,
Dayna

1 Solution

Accepted Solutions
Not applicable

Try using the following expression to ignore the sold quantity for 120 when it is less than 0:

=if([Sold Quantity]<0 and Site =120,'',[Sold Quantity])

View solution in original post

2 Replies
Not applicable

Try using the following expression to ignore the sold quantity for 120 when it is less than 0:

=if([Sold Quantity]<0 and Site =120,'',[Sold Quantity])

Dayna
Creator II
Creator II
Author

Perfect - many thanks!