<?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: formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/formula/m-p/1146073#M908054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the Flag in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([SendDocumentDate] - [DischargeDate] &amp;gt;21,1,0) as Flag_Days&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;FROM Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT {&amp;lt;Flag_Days={1}&amp;gt;} PatientID) / Count( distinct total PatientID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jun 2016 10:17:32 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-06-18T10:17:32Z</dc:date>
    <item>
      <title>formula</title>
      <link>https://community.qlik.com/t5/QlikView/formula/m-p/1146071#M908052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to show the percent of patients that their (send document date) -(discharge date) are greater than 21 to all patients&lt;/P&gt;&lt;P&gt;something&amp;nbsp; like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if((A-B) &amp;gt;21 , Vsum=Vsum+1)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;c=Vsum/total&lt;SPAN style="font-size: 13.3333px;"&gt;patients &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;i would appreciate if anyone can help me to write this formula&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula/m-p/1146071#M908052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: formula</title>
      <link>https://community.qlik.com/t5/QlikView/formula/m-p/1146072#M908053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT If( [SendDocumentDate] - [DischargeDate] &amp;gt;21, VisitID)) / Count(DISTINCT VisitID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in a chart context to ignore dimensions, use an additional TOTAL qualifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Count(DISTINCT If( [SendDocumentDate] - [DischargeDate] &amp;gt;21, VisitID)) / Count(DISTINCT TOTAL VisitID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2016 08:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula/m-p/1146072#M908053</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-18T08:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: formula</title>
      <link>https://community.qlik.com/t5/QlikView/formula/m-p/1146073#M908054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the Flag in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([SendDocumentDate] - [DischargeDate] &amp;gt;21,1,0) as Flag_Days&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;FROM Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT {&amp;lt;Flag_Days={1}&amp;gt;} PatientID) / Count( distinct total PatientID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2016 10:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula/m-p/1146073#M908054</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-18T10:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: formula</title>
      <link>https://community.qlik.com/t5/QlikView/formula/m-p/1146074#M908055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to reply&lt;/P&gt;&lt;P&gt;it should be correct but unfortunately didn't work.&lt;/P&gt;&lt;P&gt;Thanks anyway &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 06:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula/m-p/1146074#M908055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-19T06:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: formula</title>
      <link>https://community.qlik.com/t5/QlikView/formula/m-p/1146075#M908056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks Kushal&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 06:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula/m-p/1146075#M908056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-19T06:31:22Z</dc:date>
    </item>
  </channel>
</rss>

