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

How to change formula with a specific selection?

When I have one selection selected eg. a product I want to change the expression used so that it uses another variabel in that expression.

Eg:

LGD*K when product x is selected

LGD*K2 when product y is selected.

Or if there is another smarter way to go about this issue ?

2 Replies
Not applicable
Author

Hi,

try with "Getfieldselections(Field)" to know which product you select.

For instance:

IF(Getfieldselections(Field) = 'X', LGD*K)

Hope it helps

Giampiero

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=If(Only(FieldName) = 'x', LGD*K,  If(Only(FieldName) = 'y', LGD*K2, DefaultExpression))

Hope this helps you.

Regards,

Jagan.