Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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)

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

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
MVP
MVP

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.