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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajitha1
Contributor III
Contributor III

Case statement in script

Hi,

I did the inline i.e.

Slice_By:
Load * Inline [
Slice_By,Slice_by_order
Product,0
Territory,1
Channel,2
];

and i have another table i.e.

Rajitha1_1-1701240922979.png

 

from that when slice_by is product  then sales column ,

                                 slice_by is territory then region  column

                                 slice_by is channel then channel1 column i want

can any one help me regarding this in script level.

 

 

Labels (1)
2 Replies
PrashantSangle

Can you provide more information of it. 

Sample data with expected output will help us for exact reply.

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Ahidhar
Creator III
Creator III

not sure it can be done at script level

try this in "Show Column If " in Chart-

For Sales-

If(isnull(GetFieldSelections(Slice_By)),1,
if(substringCount(concat('|'&Slice_By&'|',','),'|Product|')>0,1,0))