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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

error in set modifier

Can someone explain where im going wrong?

=sum({$< [STSS Month] <= Month(Today())>} [Total Hours])

its supposed to add up total hours for those months that are = to the month of today

Labels (1)
3 Replies
jerem1234
Specialist II
Specialist II

Try this:

=sum({$<[STSS Month] = {$(=Month(Today()))}>} [Total Hours])

Hope this helps!

datanibbler
Champion
Champion

Hi samuel,

you have to put the second part of your set_expression in brackets if it is an expression,

like this:

>>> = sum({$<[STSS Month} <= {$(=Month(Today()))>} [Total Hours]) <<<

=> Further, that '<=' cannot be used just like that in a set_expression. The "main operator" always has to be an '='. You have to build in that '<=' as part of the expression.

HTH

Best regards,

DataNibbler

Nicole-Smith
MVP
MVP

=sum({$<[STSS Month] = {'<=$(=Month(Today()))'}>} [Total Hours])