Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

How to add Set Analysis to this field in my expression?

Hello there!

I have the following expression:

sum({<CREATE_DT={"$(= '>=' & '$(vFromDate)' & '<=' & '$(vToDate)' )"},TO_CURRENCY={$(vCurReport)}>}  ACCOUNT_SETTLEMENT*FIX_RATE)

I would like the FIX_RATE to be filtered on a variable of vDate. Any idea how I can specify this after the * in my expression above? For example it should be something like:

sum({<CREATE_DT={"$(= '>=' & '$(vFromDate)' & '<=' & '$(vToDate)' )"},TO_CURRENCY={$(vCurReport)}>}  ACCOUNT_SETTLEMENT* {$<$(vDate)>}FIX_RATE)

How can I do something like this please?

1 Reply
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi John,

Set analysis expression belongs to the whole aggregation, not to an individual field. Therefore, all filters need to be specified within the same set analysis expression. You already have one filter for the field CREATE_DT. If you have another date field that you need to limit by vDate, you can add another filter within the same Set Analysis modifier. All these filters apply to both operands in your calculation.

cheers,

Oleg Troyansky

Learn Set Analysis with me at the Masters Summit for QlikView!