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