Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am new to Qlikview.I am struggling hard to get the below conditions into an expression.
Any ideas??
(JoinDate < Getdate() And Active = 1) OR
(JoinDate <= Getdate() And TerminationDate >=Getdate() And Active = 0)
This?
IF(
(JoinDate < Getdate() And Active = 1) OR
(JoinDate <= Getdate() And TerminationDate >=Getdate() And Active = 0),
<Your expression for TRUE>,
<Your expression for FALSE>
)
No I want the Expression in this format:
I am taking Count(Distinct USerID) based on two conditions.If i have to Use OR how should i extend my expression?
Count({<JoinDate={'<$(=Only(EndDate))'},Active={0}>} Distinct UserID)
For the OR condition in the set modifier you can use the + operator:
Count({<JoinDate={'<$(=Only(EndDate))'},Active={0}>+<...Second set of conditions here...> } Distinct UserID)
OR ('+'):
Count({<JoinDate={'1/1/12'}> + <Active={0}>} Distinct) // just an example for OR (here + operator)
Similarly for AND you can use '*' operator
Thanks All.
Let me try .