Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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 (5)
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)

)