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

How to make modifiers of set expression dynamic ?

Hi All ,

How to make modifiers of set expression dynamic ?

I have two fields called Entityand SubArea .

My expression should be something like ;

sum({1<Field_of_My_choice={'A'}>}sales) .

Script

LOAD Area,

     Entity,

     Sales,

     SubArea

FROM

[Dynamic Modifier.xlsx]

(ooxml, embedded labels, table is eNTITY);

Fields:

LOAD * INLINE [

    Field

    Entity

    SubArea

];


I have solved this using pick match , though . But wanted to know if there is other way !!!



1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Please try with

sum({<$(=Only(Field))={'A'}>}Sales)

View solution in original post

6 Replies
shekhar_analyti
Specialist
Specialist
Author

Field of my choice means user has ability to select modifiers

Clever_Anjos
Employee
Employee

Please try with

sum({<$(=Only(Field))={'A'}>}Sales)

shekhar_analyti
Specialist
Specialist
Author

Though   sum({<$(=Only(Field))={'A'}>}Sales) worked but curly bracket before 'A' is having some red highlighted

shekhar_analyti
Specialist
Specialist
Author

ss.png

Clever_Anjos
Employee
Employee

it´s not a problem.

The parser editor isn´t understanding what we are trying to do.

Keep calm, it will work

shekhar_analyti
Specialist
Specialist
Author

Thank you Anjos