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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
SamuelHaag
Contributor III
Contributor III

Set-Analysis: function in if-condition

Hi guys,

I'm trying to create an if-statement in set analysis like the following:

if(
//Condition
(({$(=num(Month(today())))}) = ({'1'}))

,

//Then (true)

//doSomething

,
//Else (false)

//doSomething

)

 

 

Unfortunately this condition doesn't work here. I just want to compare the return value of this function combination with a number.

What is the problem here?

Thanks!

Labels (2)
1 Solution

Accepted Solutions
SamuelHaag
Contributor III
Contributor III
Author

Got it:

if(

(num(Month(today(2))) = 1)
,

//Then (true)

,
//Else (false)

)

View solution in original post

1 Reply
SamuelHaag
Contributor III
Contributor III
Author

Got it:

if(

(num(Month(today(2))) = 1)
,

//Then (true)

,
//Else (false)

)