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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bellesol
Creator
Creator

Set analysis

Hi,

can anyone explain the following set analysis:

sum({<[%Month Num]={"<$(=num(Month(Today())))"},[Year Diff]={'-2'}>}[Sales])

It's supposed to calculate the sum from the beginning of the year until privies month (meaning from Januar until December 2018 )

This set analysis worked fine until last month, meaning it calculated the sales from January until November, but now it's not working. how can I fix it?

Month%Month NumYearYear Diff
Jan12019-1
Feb22019-1
Mar32019-1
Apr42019-1
May52019-1
Jun62019-1
Jul72019-1
Aug82019-1
Sep92019-1
Oct102019-1
Nov112019-1
Dec122019-1
Jan12018-2
Feb22018-2
Mar32018-2
Apr42018-2
May52018-2
Jun62018-2
Jul72018-2
Aug82018-2
Sep92018-2
Oct102018-2
Nov112018-2
Dec122018-2

 

10 Replies
Brett_Bleess
Former Employee
Former Employee

Hey Bellosol, did you get things working or are you still stuck?  Just wanted to be sure you circled back if something someone posted did help to mark that post using the Accept as Solution so they get credit and the other Community folks know what worked.  

I was thinking of something someone posted recently related to things at year end, but I cannot recall what the setting was he mentioned to change the behavior, as this is almost what things sound like.  I just remembered what it was:

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/Numbe...

Maybe that will be of some help potentially if you are still working on things.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.