I have created below pivot table in Qliksense. I want to create an additional field 'Status' to determine whether the Global Trade Num is early terminated.
The formula I would use in excel is : if("maturity date(P0288)" > "20200331" and "Ytd thismth" =0, "early terminated", "exist")
May I know how I build similar logic using set analysis?
You can not apply set expressions in dimensions, as they only exist in aggregation functions which are defined in measures.
A set expression alters the selection state over which a expression is aggregated. It does not provide the option to apply a conditional value as you have describe in your IF statement.
I'd expect that you can accomplish the desired result by creating a measure with the IF logic. Does this not work?