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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis

Hi

i have problem in set analysis

my expression is

sum({<[GL Date]={">=$(=Start Period)"}>}[Net Amount])

here  Start Period  values are  periodstartdate,quarterstartdate,yearstartdate

all date fields are in timestamp format .

if im using expression like

sum({<[GL Date]={">=$(=periodstartdate)"}>}[Net Amount])

this expression working fine.

but problem with start period

how to use these type of values in setanalysis.

15 Replies
Not applicable
Author

Hi

here how to write this expression in setanalysis

If([gl date]>=[period start date],sal)

please find attached qvw

in this setanalysis use start period instead of period start date in set analysis expression

please check the script for the start period values

thanks

Not applicable
Author

Hi

here how to write this expression in setanalysis

If([gl date]>=[period start date],sal)

please find attached qvw

in this setanalysis use start period instead of period start date

please check the script for the start period values

thanks

tresesco
MVP
MVP

May be like attached sample?

Not applicable
Author

Hi tresesco

thanks for u r valuable reply

sum(If([gl date]>=$(=vStartPeriod),sal))  this condition is ok

but i need set analysis expression

please can u give ,how to write set analysis expression for this

Not applicable
Author

=sum({<[gl date]>=$(=vStartPeriod)>} sal)

tresesco
MVP
MVP

Try this expression in my sample app:

sum({<[gl date]={"=[gl date]>=$(=vStartPeriod)"}>}sal)