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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
naveenchellaara
Contributor III
Contributor III

Finding common values

Hi,

We are having a requirement where we need to display the count of students enrolled in a camp. We have two time periods in the report. Current time period (selected by the user) and the previous time period ( time period selected by the user - 1 year). We need to find students who have their status as enrolled in both time period.

If the user selects Jan 2014 as the current time period, then the previous time period will be Jan 2013.

Set 1 - Students enrolled in Jan 2014.

Set 2 - Students enrolled in Jan 2013.

I need to find the intersection of the two sets

Thanks in Advance

Naveenchellaaraam.D

3 Replies
vikasmahajan

This is possible please request you to put some dummy records in excel for 4,5 students , some thing like wise comparison you want .

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
sivarajs
Specialist II
Specialist II

Count({<year={">=$(=Max(year)-1)<=$(=Max(year))"}>} StudentID)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like this:

count({<Status={'Enrolled'},Month={'$(=only(Month)'},Year={'$(=only(Year))'},StudentID=p({<Status={'Enrolled'},Month={'$(=only(Month)'},Year={'$(=only(Year)-1)'}>}StudentID)>}distinct StudentID)


talk is cheap, supply exceeds demand