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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Script Expression help

Hello

Simply put I would like to set the expression below as TKGF in the script:

SUM({$ <VAL = {"SKGF","PKGF"}>}Data)

SKGF (standard KG Forecast) and PKGF (Promotional KG Forecast) are fields in the VAL dimension.

The expression above works to give me the required amount in a chart expression but QV doe not like the Syntax in the script.

Please can you explain what is needed.

Many thanks

Gareth

1 Solution

Accepted Solutions
pat_agen
Specialist
Specialist

hi,

you cannot use set analysis - th epart of your expression found within the curly brackets - in the script.

use some text as below:

sum(if(match(VAL,'SKGF','PKGF')>0,Data) as fldSummedData

View solution in original post

2 Replies
pat_agen
Specialist
Specialist

hi,

you cannot use set analysis - th epart of your expression found within the curly brackets - in the script.

use some text as below:

sum(if(match(VAL,'SKGF','PKGF')>0,Data) as fldSummedData

Not applicable
Author

Thanks Pat