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: 
zagzebski
Creator
Creator

Set Analysis - Reporting Dates

I am an expression that is working well:

sum({<^CustProducer = {"=[Commission Producer CummPerc]<=$(vRetensionPct)"}>} Commission)

However I need to add a further requirement to the expression.  I have a field called ProdGLMonth and need to add extra filter ot the set analysis that basically does the following:

Where ProdGLMonth is between [Reporting Begin Month] and [Reporting End Month]

1 Solution

Accepted Solutions
Not applicable


Try this:

sum({<^CustProducer = {"=[Commission Producer CummPerc]<=$(vRetensionPct)"}, ProdGLMonth = {">=$(=num([Reporting Begin Month])) <=$(=num([Reporting End Month]))"}>} Commission)

assuming ProdGLMonth is a number presenting month.

Hope this helps

Herman

View solution in original post

5 Replies
Not applicable

If ProdGLMonth, [Reporting Begin Month], [Reporting End Month] are months created using QlikView or numbers try the following expression:

sum({<^CustProducer = {"=[Commission Producer CummPerc]<=$(vRetensionPct)"},ProdGLMonth = {">=[Reporting Begin Month]<=[Reporting End Month]"}>} Commission)


Regards, Karl

Not applicable


Try this:

sum({<^CustProducer = {"=[Commission Producer CummPerc]<=$(vRetensionPct)"}, ProdGLMonth = {">=$(=num([Reporting Begin Month])) <=$(=num([Reporting End Month]))"}>} Commission)

assuming ProdGLMonth is a number presenting month.

Hope this helps

Herman

Not applicable


Opps....I was late....

Not applicable

Yeap, but you're right.  I forgot to add the dollar-sign expansion and the num function to my set analysis.

Regards, Karl

zagzebski
Creator
Creator
Author

Thanks Karl!

I have difficulty with dates. I thought they all three fields were dates so I wouldn't have to use any num function.