<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Set expression to find common records in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10321#M765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Stefan implies, you must have a measure in the table with the set expression to "filter" the records. If you don't want an "extra" column, you can do a Stefan indicates to display the name as your aggregate. Caveat to that is that measures are not filterable, if your selection yields multiple users that you would like to select in the second table as filters, you'd have to have another column; i usually stick them on the right end of the table as a "flag" field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2018 16:32:43 GMT</pubDate>
    <dc:creator>dwforest</dc:creator>
    <dc:date>2018-03-28T16:32:43Z</dc:date>
    <item>
      <title>Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10315#M759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Could you please someone help me to correct the set expression. I have two tables, on first table showing the groups and count of users. Second table showing the user details. Users can have multiple groups. If i select multiple groups on first table then users coming in common needs to show on user details table. For example in the attached application if i select group A,B,C then second table should show only the user 1 details, basically &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;filter all sheet objects based on the selected groups in first table with intersect records&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Set expression used:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;if(getselectedcount(Group)&amp;gt;0,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;count( distinct {&amp;lt;User={"=aggr(count(distinct Group),User)=getselectedcount(Group)"}&amp;gt;} User) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;count(distinct User)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Users:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;LOAD&amp;nbsp; * inline&amp;nbsp;&amp;nbsp; [&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;User, Name&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;1, ABC&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;2, BCD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;3, EFG&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;4, RTG&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;5, YUR&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;6, IOB&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;7, LIK&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Matrix:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;LOAD&amp;nbsp; * inline&amp;nbsp;&amp;nbsp; [&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Group,User&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;A,1&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;B,1&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;C,1&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;B,2&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;A,2&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;C,3&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;D,4&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;C,5&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;D,5&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;E,5&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;E,5&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;F,6&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;G,7&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;];&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" class="j-attachment-icon" href="https://community.qlik.com/servlet/JiveServlet/download/2146-296025-1459470-319766/Test.qvf" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Test.qvf&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 12:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10315#M759</guid>
      <dc:creator>shirenmathai</dc:creator>
      <dc:date>2018-03-26T12:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10316#M760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Express is not required.&lt;/P&gt;&lt;P&gt;If tables are left as distinct (not joined ) in load, Qlik will handle the filtering for you (and avoid any fan traps).&lt;/P&gt;&lt;P&gt;the formula should simply be count(DISTINCT User)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10316#M760</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-03-27T23:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10317#M761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;count( distinct {&amp;lt;User={"=count(distinct Group)=$(=GetSelectedCount(Group))"}&amp;gt;} User) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;count( distinct {&amp;lt;User={"=Count(Distinct Group) = Count(Distinct TOTAL Group)"}&amp;gt;} User) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10317#M761</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-03-27T23:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10318#M762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, missed the needs to be a member of all groups selected part.&lt;/P&gt;&lt;P&gt;Both of Stefan's formula work with your sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10318#M762</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-03-27T23:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10319#M763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt; &lt;/STRONG&gt;and &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/dwforest"&gt;dwforest&lt;/A&gt;&lt;/STRONG&gt; ! for the response. In both the cases, the second user table will show records not part of the current selection. For example if we select Group A,B,C then we have only one user in common that is User 1 but table will show other users as well. Is there any way to avoid these records from User table without adding any extra calculation column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the screenshot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197732_Capture.JPG" style="height: 211px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 06:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10319#M763</guid>
      <dc:creator>shirenmathai</dc:creator>
      <dc:date>2018-03-28T06:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10320#M764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where have you used the set expression? What's your expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use User as dimension and&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Maxstring( {&amp;lt;User={"=Count(Distinct Group) = Count(Distinct TOTAL Group)"}&amp;gt;} Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;as expression&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10320#M764</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-03-28T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10321#M765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Stefan implies, you must have a measure in the table with the set expression to "filter" the records. If you don't want an "extra" column, you can do a Stefan indicates to display the name as your aggregate. Caveat to that is that measures are not filterable, if your selection yields multiple users that you would like to select in the second table as filters, you'd have to have another column; i usually stick them on the right end of the table as a "flag" field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 16:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10321#M765</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-03-28T16:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10322#M766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 05:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10322#M766</guid>
      <dc:creator>shirenmathai</dc:creator>
      <dc:date>2018-03-29T05:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression to find common records</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10323#M767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 05:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-to-find-common-records/m-p/10323#M767</guid>
      <dc:creator>shirenmathai</dc:creator>
      <dc:date>2018-03-29T05:24:02Z</dc:date>
    </item>
  </channel>
</rss>

