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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
ksk278074
Contributor III
Contributor III

if condition in qliksense

Hi i am having data filed like 201101 upto 201201

now my agenda is load all months data dynamically

if(right('month',2)>12,$('vmonth')

what is the error in the above IF condition?

4 Replies
agigliotti
MVP
MVP

what does the variable vmonth contains ?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
ksk278074
Contributor III
Contributor III
Author

vmonth contains the data like 201701 to 201712

agigliotti
MVP
MVP

is vmonth a variable or field name ?

what are you trying to achieve with your IF condition ?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
YoussefBelloum
Champion
Champion

Hi,

what did you call your field with quotes, try it like this:

if(right(month,2)>12,$(vmonth))