<?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 analysis to add selection to pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108339#M7404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! So simple, so elegant. Thank you, Olivier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it also possible to hide the row for the Condition that the user selects? In the below example, the user has selected 'Obesity' so it is unnecessary to show it in the table (because of course 100% of patients with Obesity have Obesity!). I tried an IF statement in different ways, but all values go to zero or null. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211514_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2018 13:49:06 GMT</pubDate>
    <dc:creator>Lauri</dc:creator>
    <dc:date>2018-08-22T13:49:06Z</dc:date>
    <item>
      <title>Set analysis to add selection to pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108337#M7402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to present, in a table, the percentage of patients who have the selected Condition AND each of the other possible Conditions. So, as displayed below, the user has selected 'Asthma' and therefore the table should display the percentage of all patients who have Asthma AND Other mental disorders, Asthma AND Depression, etc. (The percentages in my sample are incorrect.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there set analysis to do this?&amp;nbsp; Qlik doesn't accept this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;[MedDX.Condition]=+p([MedDX.Condition]) &amp;gt;} distinct Recipient_Unique_ID)&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[MedDX.Condition]=+p([MedDX.Condition]) &amp;gt;} TOTAL distinct Recipient_Unique_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211455_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 02:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108337#M7402</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2018-08-22T02:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to add selection to pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108338#M7403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I've well understood the model,&lt;/P&gt;&lt;P&gt;you could try something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({1 &amp;lt;Recipient_Unique_ID =P( {$}) &amp;gt;} distinct MedDX.Condition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you take all patient selected by current selection ($)&lt;/P&gt;&lt;P&gt;and you count all deseases ( {1}) for those patients&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108338#M7403</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-08-22T06:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to add selection to pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108339#M7404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! So simple, so elegant. Thank you, Olivier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it also possible to hide the row for the Condition that the user selects? In the below example, the user has selected 'Obesity' so it is unnecessary to show it in the table (because of course 100% of patients with Obesity have Obesity!). I tried an IF statement in different ways, but all values go to zero or null. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211514_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108339#M7404</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2018-08-22T13:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to add selection to pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108340#M7405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't test,&lt;/P&gt;&lt;P&gt;but it could be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({1 &amp;lt;Recipient_Unique_ID =P( {$}),MedDX.Condition = E({$}) &amp;gt;} distinct MedDX.Condition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to add exclusion on desease selected,&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;good dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108340#M7405</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-08-22T14:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to add selection to pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108341#M7406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bravo, you are correct again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I have trouble understanding why it works; I would expect the e() function to take the selection out of the calculation for all rows in the table.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108341#M7406</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2018-08-22T14:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to add selection to pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108342#M7407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;because it's an AND with id = P($) so it takes the intersect and not all rows !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-to-add-selection-to-pivot-table/m-p/108342#M7407</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-08-22T14:40:06Z</dc:date>
    </item>
  </channel>
</rss>

