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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis

Can someone please assist me on below issue.

Coding:  in below code first condition only working (ex. Issue = Internal privacy incident only working, another condition Month conditions is not working)

count({< Issue = {'Internal Privacy incident'}, Month={">=$(=MonthStart(AddMonths(Max(Month),-3)))<=$(=MonthEnd(Max(Month))) >} Issue)

Labels (1)
4 Replies
effinty2112
Master
Master

Hi Ravi,

                    Loks like you've omitted a ".

Try this :

count({< Issue = {'Internal Privacy incident'}, Month={">=$(=MonthStart(AddMonths(Max(Month),-3)))=$(=MonthEnd(Max(Month)))" >} Issue)

Cheers

Andrew

Anil_Babu_Samineni
MVP
MVP

count({< Issue = {'[Internal Privacy incident]'}, Month={">=$(=MonthStart(AddMonths(Max(Month),-3)))<=$(=MonthEnd(Max(Month))) >} Issue)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
antoniotiman
Master III
Master III

Hi Ravi,

I assume Month is Dual Field

Try

count({< Issue = {'Internal Privacy incident'}, Month={'>=$(=Max(Month)-3)'}>} Issue)

Regards,

Antonio

swuehl
Champion III
Champion III

Also have a look at

Dates in Set Analysis

If you still have problems with your set modifier, please post the exact format specifier of your Month field.