<?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 calculation in script problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662720#M1071856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the expression-tab use the following expressions and change the label to match the names you want for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Readmissions:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Rates of Readmission]={5}&amp;gt;} ActualValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discharges&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Rates of Readmission] = {6}&amp;gt;} ActualValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Percentage Readmission:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Rates of Readmission]={5}&amp;gt;} ActualValue) / sum({$&amp;lt;[Rates of Readmission] = {6}&amp;gt;} ActualValue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 11:59:07 GMT</pubDate>
    <dc:creator>simenkg</dc:creator>
    <dc:date>2014-08-12T11:59:07Z</dc:date>
    <item>
      <title>percentage calculation in script problem</title>
      <link>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662717#M1071853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to calculate a percentage in the script for Percentage Readmission and have put in the following:&lt;/P&gt;&lt;P&gt;LEFT JOIN (EWTD)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; TLMKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SLMKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MetricKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActualValue,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if((TLMKey=18 and SLMKey=200) and ((MetricKey=5) or (MetricKey=6)), (sum(MetricKey=5)*100/MetricKey=6)) as PercentageReadmission,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((TLMKey=18 and SLMKey=205) and ((MetricKey=3) or (MetricKey=4)) ,(sum((MetricKey=3) and MetricKey=4))) as sumOutpatients&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SumOutpatients calculation works fine but I cannot get the PercentageReadmission&amp;nbsp; to work.&amp;nbsp; Any help would be appreciated.&amp;nbsp; Below is the full script in case it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhona&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT EWTD&lt;/P&gt;&lt;P&gt;GROUP BY TLMKey,SLMKey,MetricKey,ActualValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='€#,##0.00;-€#,##0.00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Healthstat;Data Source=cifdevelopment;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=EL6470B0001;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-------- Start Multiple Select Statements ------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EWTD:&lt;/P&gt;&lt;P&gt;LOAD ActualValue,&lt;/P&gt;&lt;P&gt;&amp;nbsp; TLMKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SLMKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MetricDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MetricKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Acute hospital metrics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((TLMKey=18 and SLMKey=142 and MetricKey=3) or (TLMKey=18 and SLMKey=142 and MetricKey=5) or (TLMKey=18 and SLMKey=142 and MetricKey=4),MetricKey)&amp;nbsp; as Discharges,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((TLMKey=18 and SLMKey=205 and MetricKey=3) or (TLMKey=18 and SLMKey=205 and MetricKey=4),MetricKey)&amp;nbsp; as Outpatients,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TLMKey=18 and SLMKey=166 and MetricKey=4,MetricKey) as [Reducing Health Care acquired Infection],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((TLMKey = 18 and SLMKey = 200 and MetricKey=5) or (TLMKey = 18 and SLMKey = 200 and MetricKey=6),MetricKey) as [Rates of Readmission],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Primary Care Metrics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TLMKey = 10 and SLMKey = 103 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=4),MetricKey) as [Community Intervention Team by Source],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TLMKey=10 and SLMKey=192 and MetricKey=20,MetricKey) as [Physio Wait &amp;gt;12 wks],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TLMKey = 10 and SLMKey = 191 and (MetricKey&amp;gt;=68 or MetricKey &amp;lt;=79),MetricKey) as [OccTherapy wait&amp;gt; 16 weeks],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((TLMKey=10 and SLMKey=101 and MetricKey=1) or (TLMKey=10 and SLMKey=101 and MetricKey=2) or (TLMKey=10 and SLMKey=101 and MetricKey=11) or(TLMKey=18 and SLMKey=142 and MetricKey=12),MetricKey) as [Ortho No Wait 12 Mths],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((TLMKey=10 and SLMKey=101 and MetricKey=1) or (TLMKey=10 and SLMKey=101 and MetricKey=2),MetricKey) as [Ortho Wait &amp;gt;4 yrs],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((TLMKey=10 and SLMKey = 101 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=4) or (TLMKey=10 and SLMKey = 101 and (MetricKey&amp;gt;=5 or MetricKey &amp;lt;=16))),MetricKey) as Orthodontics,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RDODesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RDOKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReferredMM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReferredYYYY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SGKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SGName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceProvider,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceProviderType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceProviderNum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ServiceProviderType='H',ServiceProvider) as Hospital,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ServiceProviderType='T',ServiceProvider) as HospitalGroup,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ServiceProviderType='O',ServiceProvider) as Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Healthstat.dbo."MMI_ScorecardLevel3"&lt;/P&gt;&lt;P&gt;where (tlmkey = 18 and slmkey = 142 and MetricKey=3) or (tlmkey = 18 and slmkey = 142 and MetricKey=4)or(tlmkey = 18 and slmkey = 142 and MetricKey=5)or (tlmkey = 18 and slmkey = 166 and MetricKey=4) or (tlmkey = 18 and slmkey = 200 and MetricKey=5 ) or (tlmkey = 10 and slmkey = 192 and MetricKey=20 )or (tlmkey = 18 and slmkey = 200 and MetricKey=6)or &lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 103 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=4))or (tlmkey = 10 and slmkey = 191 and (MetricKey&amp;gt;=68 or MetricKey &amp;lt;=79))or (tlmkey = 10 and slmkey = 101 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=2)) or (tlmkey = 10 and slmkey = 101 and (MetricKey&amp;gt;=11 or MetricKey &amp;lt;=12)) or (tlmkey = 10 and slmkey = 101 and MetricKey=10) or (tlmkey = 10 and slmkey = 101 and MetricKey=16) &lt;/P&gt;&lt;P&gt;or (tlmkey=10 and slmkey = 101 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=4)) or (tlmkey=10 and slmkey = 101 and (MetricKey&amp;gt;=5 or MetricKey&amp;lt;=16))&lt;/P&gt;&lt;P&gt;or (tlmkey=18 and slmkey = 205 and (MetricKey&amp;gt;=3 or MetricKey &amp;lt;=4))&lt;/P&gt;&lt;P&gt;and (ServiceProviderType='H' or ServiceProviderType='T' or ServiceProviderType='O')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (EWTD)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; TLMKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SLMKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MetricKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActualValue,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757;"&gt;&amp;nbsp; if((TLMKey=18 and SLMKey=200) and ((MetricKey=5) or (MetricKey=6)), (sum(MetricKey=5)*100/MetricKey=6)) as PercentageReadmission,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((TLMKey=18 and SLMKey=205) and ((MetricKey=3) or (MetricKey=4)) ,(sum((MetricKey=3) and MetricKey=4))) as sumOutpatients&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT EWTD&lt;/P&gt;&lt;P&gt;GROUP BY TLMKey,SLMKey,MetricKey,ActualValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthMapping:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ReferredMM, Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1, Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2, Feb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3, Mar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4, Apr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5, May&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6, June&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7, July&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8, Aug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9, Sept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10, Oct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11, Nov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12, Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 08:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662717#M1071853</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2014-08-12T08:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: percentage calculation in script problem</title>
      <link>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662718#M1071854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MetricKey5/MetricKey6 as &lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;PercentageReadmission;&lt;/STRONG&gt;&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TLMKey,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; SLMKey,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; MetricKey,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ActualValue,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #575757;"&gt;&amp;nbsp; if((TLMKey=18 and SLMKey=200) and MetricKey=5,&amp;nbsp; (sum(MetricKey)*100)) as MetricKey5,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #575757;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&amp;nbsp; if((TLMKey=18 and SLMKey=200) and MetricKey=6,&amp;nbsp; (sum(MetricKey))) as MetricKey6,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if((TLMKey=18 and SLMKey=205) and (MetricKey=3 or MetricKey=4) ,sum(MetricKey)) as sumOutpatients&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 08:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662718#M1071854</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-12T08:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: percentage calculation in script problem</title>
      <link>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662719#M1071855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Simen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot get it to work.  I am now trying to do it as a dimension in&lt;/P&gt;&lt;P&gt;the pivot table as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(=5, 'readmissions 5', If([Rates of&lt;/P&gt;&lt;P&gt;Readmission]=6, 'Discharges 6',if(aggr(sum([Rates of&lt;/P&gt;&lt;P&gt;Readmission]=5*100/[Rates of Readmission]=6),ActualValue) ,'Percentage&lt;/P&gt;&lt;P&gt;Readmission',Null())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you had a minute could you have a look.  Basically I want the pivot&lt;/P&gt;&lt;P&gt;table to show the dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Readmissions 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discharges 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percentage Readmission - which is the percentage calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really stuck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhona Corcoran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICT Services&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 10:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662719#M1071855</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2014-08-12T10:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: percentage calculation in script problem</title>
      <link>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662720#M1071856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the expression-tab use the following expressions and change the label to match the names you want for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Readmissions:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Rates of Readmission]={5}&amp;gt;} ActualValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discharges&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Rates of Readmission] = {6}&amp;gt;} ActualValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Percentage Readmission:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Rates of Readmission]={5}&amp;gt;} ActualValue) / sum({$&amp;lt;[Rates of Readmission] = {6}&amp;gt;} ActualValue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 11:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/percentage-calculation-in-script-problem/m-p/662720#M1071856</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-12T11:59:07Z</dc:date>
    </item>
  </channel>
</rss>

