Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
ebrahimaljefri
New Contributor III

Switch case example

hi,

i am using qlik sense desktop and i want to see example of using Switch..case..default..end switch as it is very helpful in creating the reports.

1 Reply
dberkesacn
Contributor III

Re: Switch case example

Hi, have you seen the help, it has a really good example.

     Switch..case..default..end switch ‒ Qlik Sense

Example:

Switch I

Case 1

LOAD '$(I): CASE 1' as case autogenerate 1;

Case 2

LOAD '$(I): CASE 2' as case autogenerate 1;

Default

LOAD '$(I): DEFAULT' as case autogenerate 1;

End Switch

Daniel