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 using getfieldselection

I am trying to get set analsyis to give me all the values less than the monenddate selected in the attached example but the formula is not quite right.

Can any one fix this please.

=

sum({$<[MonthendDate]={'=<$(GetFieldSelections(MonthendDate))'}>} Value)





1 Solution

Accepted Solutions
Not applicable
Author

Hi Adrian,

here you go. There was a typo (MonthendDate instead of MonthEndDate) and the expression was not correct.

Good luck!

Rainer

View solution in original post

5 Replies
Miguel_Angel_Baeyens

Hello,

I recommend you to check this one of my favorites http://community.qlik.com/forums/p/23950/91539.aspx

Bear in mind that functions in set analysis require an "=" sign within dollar expression like

sum({$<[MonthendDate]={'=<$(=GetFieldSelections(MonthendDate))'}>} Value)
Anyway, take a look at the post above. Is pretty clear to this case.

Not applicable
Author

Thanks for the suggestion. I have change it to a variable but I still can not get the set analysis to return values for month end dates before the month end selected. It still shows just the month selected.

Regards

Adrian

Not applicable
Author

Hi Adrian,

here you go. There was a typo (MonthendDate instead of MonthEndDate) and the expression was not correct.

Good luck!

Rainer

Not applicable
Author

Adrian,

here are two modifications. See the example.

Rainer

Not applicable
Author

Thank you