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: 
Not applicable

Set Analysis not working

Hello Everyone,

I have this YTD formula working very well. _YYYY and _MM is calendar.

=sum ( {$<[Year] = {$(#=Only(_YYYY))}, [Month] = {"<=$(#=Only(_MM))"}>} [Rev-Actual])

When I do current month, it doesn't work:

=sum ( {$<[Year] = {$(#=Only(_YYYY))}, [Month] = {"$(#=Only(_MM))"}>} [Rev-Actual])

Can you help?

Thank you very much in advance.

12 Replies
cupelix-qlik
Contributor III
Contributor III

Struggling to understand what your trying to get to.

If it's a case of you want a Year to Date figure to appear when someone selects a single Year & single Month. If so then I did have this working based on your formula.

=Sum( {$<Year = {$(#=Only(Year))},Month = {"<=$(#=Only(Month))"}>} Distance)


My Month field is 3 letters, Distance was just the first Integer field I came to. Year is just the 4 digits.

Not applicable
Author

Swuehl,

I just found my Month was locked for some reason. I don't know when this Month was locked.

I am keep working on this lock problem.

Thanks,

Zili

Not applicable
Author

Hello Everyone,

I just found this app has one bookmark locked the Month and has conflict on Month selection.

Sunny always has very good set analysis solution. swuehl helped me how to solve this problem step by step.

Lee Seagrave's suggestion also very valuable on my question.

Thank you all again. I appreciate your help.