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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error in if statement in load command

Hi

I am getting at if statement in below code:

SalesTable:
Load , sum() as Revenue, if(=12,sum(),0) as Freight
Resident Operations
Group by
;
Join(SalesTable)
Load [SO] as
, sum([Sales]) as SalesValue
Resident Sales
Group by [SO];

I have declared 2 tables: Operations and Sales and now joining these two table by field .

Can someone suggest how to write if statement?

1 Solution

Accepted Solutions
Sokkorn
Master
Master

Hi,

Let try this

Load

    ,

    sum() as Revenue,

    sum(if(=12,,0)) as Freight

Resident Operations

Group by ;

Regards,

Sokkorn

View solution in original post

2 Replies
Sokkorn
Master
Master

Hi,

Let try this

Load

    ,

    sum() as Revenue,

    sum(if(=12,,0)) as Freight

Resident Operations

Group by ;

Regards,

Sokkorn

Not applicable
Author

Thanks. Works