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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_chan
Specialist
Specialist

Set Analysis + how to write + store with any transaction withn 3 months

hi guys,

i want to know how to write a set analysis that see number of stores that has any transacation withn 3 months.

for exmaple: i have selected i have select month - January 2017, so it should list out stores that has transaction within this 3 months jan 2017, dec 2016 and nov 2016.

how to write???

Rgds

Jim,

1 Reply
asgardd2
Creator III
Creator III

Hello!

I think you can :

     1. Create variable ( current selection of field "month"  or "date", for ex. Concat(Date)) . Or you can create another var , like this :

yourVariable = '>=' & MonthStart(AddMonths(date,-2)) & '<=' & Concat(Date)

     2. Use this variable in set analysis, like this: {<date = {$(yourVariable)} >}

Please, attach example file.

      

P.S. You must turn on option - only one selected value in object properties.