<?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: Percentage By Dimension &amp; Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784430#M665351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try like this&lt;/P&gt;&lt;P&gt;If Condition&lt;/P&gt;&lt;P&gt;=Count(distinct If(&lt;SPAN style="color: #000000;"&gt;AppointmentReason = 'Health',Patient_Id)) / Count(Total If(MonthName = appointment_month,Patient_Id))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis:&lt;/P&gt;&lt;P&gt;Count(&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;AppointmentReason&lt;STRONG&gt; = {'&lt;/STRONG&gt;Health&lt;STRONG&gt;'}&amp;gt;}&lt;/STRONG&gt;patient_id) / Count(&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;AppointmentReason&lt;STRONG&gt; = {'&lt;/STRONG&gt;Health&lt;STRONG&gt;'}&amp;gt;}&lt;/STRONG&gt;TOTAL &amp;lt;appointment_month&amp;gt; patient_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Dec 2014 08:56:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-24T08:56:13Z</dc:date>
    <item>
      <title>Percentage By Dimension &amp; Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784428#M665349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am trying to show a percentage by dimension.&amp;nbsp; for all patient appointments.&amp;nbsp; This works using the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Count(patient_id)&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;) &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;/ (Count(TOTAL &amp;lt;appointment_month&amp;gt; patient_id))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The issue I have is that I only want to include any records which have a AppointmentReason = 'Health'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;How do I update the expression to include the set analysis also?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Phil&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784428#M665349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-24T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage By Dimension &amp; Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784429#M665350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count(&lt;STRONG&gt;{&amp;lt;AppointmentReason = {'Health'}&amp;gt;}&lt;/STRONG&gt;patient_id) / Count(&lt;STRONG&gt;{&amp;lt;AppointmentReason = {'Health'}&amp;gt;}&lt;/STRONG&gt;TOTAL &amp;lt;appointment_month&amp;gt; patient_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784429#M665350</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-24T08:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage By Dimension &amp; Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784430#M665351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try like this&lt;/P&gt;&lt;P&gt;If Condition&lt;/P&gt;&lt;P&gt;=Count(distinct If(&lt;SPAN style="color: #000000;"&gt;AppointmentReason = 'Health',Patient_Id)) / Count(Total If(MonthName = appointment_month,Patient_Id))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis:&lt;/P&gt;&lt;P&gt;Count(&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;AppointmentReason&lt;STRONG&gt; = {'&lt;/STRONG&gt;Health&lt;STRONG&gt;'}&amp;gt;}&lt;/STRONG&gt;patient_id) / Count(&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;AppointmentReason&lt;STRONG&gt; = {'&lt;/STRONG&gt;Health&lt;STRONG&gt;'}&amp;gt;}&lt;/STRONG&gt;TOTAL &amp;lt;appointment_month&amp;gt; patient_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784430#M665351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-24T08:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage By Dimension &amp; Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784431#M665352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked a treat.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 09:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-By-Dimension-Set-Analysis/m-p/784431#M665352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-24T09:00:17Z</dc:date>
    </item>
  </channel>
</rss>

