Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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
Luminary Alumni
Luminary Alumni

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.