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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Why in Qlikview Expression can't write if then else endif?

Why in Qlikview Expression can't write if then else endif?

May be someone can help me please?

Thanks,

Danny H

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi

     In qlikview expression you have to use

     if(condition,then expression,else expression).

      if then else endif is to use in the edit script and it cannot be used in expressions.

Celambarasan

jagan
Partner - Champion III
Partner - Champion III

Hi,

In Qlikview expressions you have different syntax for If Else statement, the syntax is

=If(Expression, TrueExpression, FalseExpression)

Ex: If(Year = 2012, Sum(Sales), Sum(Profit))

The If Then Else EndIf syntax is used in Scripting to transform the data.

Hope this helps you.

Regards,

Jagan.