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: 
Not applicable

String result Ifs

Hi, I am new to QlikView..

I want to create some sort of notification based on the number of stock available.

So, once stock drops under 330, I would signal the word 'ASAP', above that would be 'OK'.

Or probably can add 'Review' when the Stock goes between 330 and 660.

I tried this if(Sum(Stock)) << 330, 'ASAP', 'OK')  // I already tried with only Stock, Sum(Stock) and even using Nums... But the result, everything becomes ASAP.

Can anyone please share their guidance?

Thank you

All ASAP.PNG

6 Replies
mightyqlikers
Creator III
Creator III

hi,

share sample data.

$@M.

varshavig12
Specialist
Specialist

Try this:

if(Sum(Stock) <330, 'ASAP',

if(Sum(Stock) =>300 and Sum(Stock)<= 600 'Review',

if(Sum(Stock) > 600 ,'OK')))

vcanale
Partner - Creator II
Partner - Creator II

Hi,
try:

if(Sum(Stock)<= 330, 'ASAP', 'OK')

or:

if(Sum(Stock) < 330, 'ASAP',

     if(Sum(Stock) >=330 and Sum(Stock)<= 660,  'Review',

          if(Sum(Stock) > 660 , 'OK')))

PrashantSangle

Hi,

Third if not necessary

try like

if(Sum(Stock) <330, 'ASAP',

if(Sum(Stock) =>300 and Sum(Stock)<= 600, 'Review','OK'))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jonathandienst
Partner - Champion III
Partner - Champion III

You can simplify further:

=if(Sum(Stock) < 330, 'ASAP', if(Sum(Stock) <= 600, 'Review', 'OK'))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sunny_talwar

I think you guys mean 660

=if(Sum(Stock) < 330, 'ASAP', if(Sum(Stock) <= 660, 'Review', 'OK'))