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: 
souadouert
Specialist
Specialist

set analysis in loading script

     Hello,

i neeed to know if i can uses set expression in load statement for example  Have _exp Variable

SALES :

load

PRODUCT,SALES from SALE;

product:

PRODUCT, name ,from products

let  _exp ='sum({< PRODUCT={'P1'}>}1)';

let _name='EXP1'

LOAD

* ,

'$(_exp )' as  $(_name)

RESIDENT product

2 Replies
Or
MVP
MVP

There is no set analysis in script. You'll have to use good, old-fashioned conditional statements like if().

YoussefBelloum
Champion
Champion

Hi,

no set expressions on script, but for the _exp variable ='sum({< PRODUCT={'P1'}>}1)'; you can try this:

table:

load

.

if(PRODUCT='P1', 1) as SUM

.

.

group by

all fields except SUM