Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
thannila
Creator
Creator

set analysis

Please help me with the following requirement.

YEAREMPID
2016GIS11
2016GIS12
2016GIS13
2017GIS12
2017
GIS13
2018GIS10
2018GIS12
2018GIS13

My output should be:

GIS12

GIS13

(i.e) GIS12 and GIS13 is common in all the year.

Note:Not only for above 3 years.It should work if any year is added additionally.

using set analysis concepts.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try in a text box, like:

=Concat(DISTINCT {<EMP={"=Count(distinct YEAR)=Count(Total distinct YEAR)"}>}EMP, ',')

View solution in original post

7 Replies
qlikviewwizard
Master II
Master II

How you want to show output?

Can you explain in detail?

tresesco
MVP
MVP

Try in a text box, like:

=Concat(DISTINCT {<EMP={"=Count(distinct YEAR)=Count(Total distinct YEAR)"}>}EMP, ',')

thannila
Creator
Creator
Author

We need to show the common EMPID for all the years in a text box.

qlikviewwizard
Master II
Master II

Hi Than Mughi,

Did you try tresesco solution?

Capture.PNG

thannila
Creator
Creator
Author

Thank you Tresesco  and  Arjun rao...It's working Perfectly.

thannila
Creator
Creator
Author

Thank you so much for your solution.It's working.

tresesco
MVP
MVP

Please close the thread by marking 'Correct' : Qlik Community Tip: Marking Replies as Correct or Helpful