Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

Understanding Alt statement

Hello Folks,

would like to know whats actually happening with below statement (what exactly its deriving)

If (ActualMatchInd + alt(ForecastMatchInd,0)=1, 'Yes', 'No') as ForecastItemMatchInd

Thanks,

D

1 Solution

Accepted Solutions
vamsee
Specialist
Specialist

Alt() returns the first found numeric value in the expression.

Syntax:

alt(case1[ , case2 , case3 , ...] , else)

For Example

ALT('ABC',1) returns 1.

Alt (Conditional) Function

-----

In your case, if ForecastMacthInd has any number value for the record it considers that else it takes 0.

View solution in original post

1 Reply
vamsee
Specialist
Specialist

Alt() returns the first found numeric value in the expression.

Syntax:

alt(case1[ , case2 , case3 , ...] , else)

For Example

ALT('ABC',1) returns 1.

Alt (Conditional) Function

-----

In your case, if ForecastMacthInd has any number value for the record it considers that else it takes 0.