<?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: sum in load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738365#M475695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to take up all your time but this is what I have in now and it is&lt;/P&gt;&lt;P&gt;saying invalid expression.  When I reload the data:&lt;/P&gt;&lt;P&gt;EWTD:&lt;/P&gt;&lt;P&gt;LOAD      ActualValue,&lt;/P&gt;&lt;P&gt;          TLMKey,&lt;/P&gt;&lt;P&gt;          SLMKey,&lt;/P&gt;&lt;P&gt;    MetricDesc,&lt;/P&gt;&lt;P&gt;         MetricKey,&lt;/P&gt;&lt;P&gt;         //Acute hospital metrics&lt;/P&gt;&lt;P&gt;         if((TLMKey=18 and SLMKey=142 and MetricKey=3) or (TLMKey=18 and&lt;/P&gt;&lt;P&gt;SLMKey=142 and MetricKey=5) or (TLMKey=18 and SLMKey=142 and&lt;/P&gt;&lt;P&gt;MetricKey=4),MetricKey)  as Discharges,&lt;/P&gt;&lt;P&gt;          if(TLMKey=18 and SLMKey=166 and MetricKey=4,MetricKey) as&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;          if((TLMKey = 18 and SLMKey = 200 and MetricKey=4) or (TLMKey =&lt;/P&gt;&lt;P&gt;18 and SLMKey = 200 and MetricKey=46),MetricKey) as [Rates of&lt;/P&gt;&lt;P&gt;Readmission],&lt;/P&gt;&lt;P&gt;          //Primary Care Metrics&lt;/P&gt;&lt;P&gt;          if(TLMKey = 10 and SLMKey = 103 and (MetricKey&amp;gt;=1 or MetricKey&lt;/P&gt;&lt;P&gt;&amp;lt;=4),MetricKey) as ,&lt;/P&gt;&lt;P&gt;          if(TLMKey=10 and SLMKey=192 and MetricKey=20,MetricKey) as&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;          if(TLMKey = 10 and SLMKey = 191 and (MetricKey&amp;gt;=68 or&lt;/P&gt;&lt;P&gt;MetricKey &amp;lt;=79),MetricKey) as ,&lt;/P&gt;&lt;P&gt;          if((TLMKey=10 and SLMKey=101 and MetricKey=1) or (TLMKey=10&lt;/P&gt;&lt;P&gt;and SLMKey=101 and MetricKey=2) or (TLMKey=10 and SLMKey=101 and&lt;/P&gt;&lt;P&gt;MetricKey=11) or(TLMKey=18 and SLMKey=142 and MetricKey=12),MetricKey)&lt;/P&gt;&lt;P&gt;as ,&lt;/P&gt;&lt;P&gt;          if((TLMKey=10 and SLMKey=101 and MetricKey=1) or (TLMKey=10&lt;/P&gt;&lt;P&gt;and SLMKey=101 and MetricKey=2),MetricKey) as ,&lt;/P&gt;&lt;P&gt;          if((TLMKey=10 and SLMKey = 101 and (MetricKey&amp;gt;=1 or MetricKey&lt;/P&gt;&lt;P&gt;&amp;lt;=4) or (TLMKey=10 and SLMKey = 101 and (MetricKey&amp;gt;=5 or MetricKey&lt;/P&gt;&lt;P&gt;&amp;lt;=16))),MetricKey) as Orthodontics,&lt;/P&gt;&lt;P&gt;          RDODesc,&lt;/P&gt;&lt;P&gt;         RDOKey,&lt;/P&gt;&lt;P&gt;         ReferredMM,&lt;/P&gt;&lt;P&gt;         ReferredYYYY,&lt;/P&gt;&lt;P&gt;         SGKey,&lt;/P&gt;&lt;P&gt;          SGName,&lt;/P&gt;&lt;P&gt;          ServiceProvider,&lt;/P&gt;&lt;P&gt;          ServiceProviderType,&lt;/P&gt;&lt;P&gt;         ServiceProviderNum,&lt;/P&gt;&lt;P&gt;         if(ServiceProviderType='H',ServiceProvider) as Hospital,&lt;/P&gt;&lt;P&gt;         if(ServiceProviderType='T',ServiceProvider) as HospitalGroup,&lt;/P&gt;&lt;P&gt;         if(ServiceProviderType='O',ServiceProvider) as Team&lt;/P&gt;&lt;P&gt;         ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;slmkey = 142 and MetricKey=4)or(tlmkey = 18 and slmkey = 142 and&lt;/P&gt;&lt;P&gt;MetricKey=5)or (tlmkey = 18 and slmkey = 166 and MetricKey=4) or (tlmkey&lt;/P&gt;&lt;P&gt;= 18 and slmkey = 200 and MetricKey=46 ) or (tlmkey = 10 and slmkey =&lt;/P&gt;&lt;P&gt;192 and MetricKey=20 )or (tlmkey = 18 and slmkey = 200 and&lt;/P&gt;&lt;P&gt;MetricKey=4)or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 103 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=4))or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 191 and (MetricKey&amp;gt;=68 or MetricKey &amp;lt;=79))or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 101 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=2)) or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 101 and (MetricKey&amp;gt;=11 or MetricKey &amp;lt;=12)) or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 101 and MetricKey=10) or (tlmkey = 10 and&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;(tlmkey=10 and slmkey = 101 and (MetricKey&amp;gt;=5 or MetricKey&amp;lt;=16))&lt;/P&gt;&lt;P&gt;and (ServiceProviderType='H' or ServiceProviderType='T' or&lt;/P&gt;&lt;P&gt;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;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActualValue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TLMKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLMKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MetricDesc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MetricKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((TLMKey=18 and SLMKey=142 and Match(MetricKey,3,4,5))&lt;/P&gt;&lt;P&gt;,ActualValue)) as Outpatients&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident EWTD Group By TLMKey,SLMKey,MetricKey;&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;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ReferredMM, Month&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;2, Feb&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;4, Apr&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;6, June&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;8, Aug&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;10, Oct&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;12, Dec&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;Rhona Corcoran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICT Services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Health Service Executive, Dr. Steeven's Hospital, Dublin 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 01 6352710   (am only) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Email: rhona.corcoran@hse.ie &amp;lt;mailto:rhona.corcoran@hse.ie&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 09:39:48 GMT</pubDate>
    <dc:creator>rcorcoran</dc:creator>
    <dc:date>2014-07-09T09:39:48Z</dc:date>
    <item>
      <title>sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738359#M475689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I still havent got very far with this. so here is the full script.&amp;nbsp; You can see where I am trying to sum Metric Key 3,4 and 5 where the TLMKey is 18 and the SLMKey is 142.&amp;nbsp; I know you have to group by somehow but not sure how.&amp;nbsp; If anyone had a minute could they help please.&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EWTD:&lt;BR /&gt;&lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;ActualValue&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;MetricDesc&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;//Acute hospital metrics&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=142 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=3) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=142 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=5) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=142 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=4),&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Discharges&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=142 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Match&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;,3,4,5)) ,&lt;SPAN style="color: #800000;"&gt;ActualValue&lt;/SPAN&gt;)) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Outpatients&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=166 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=4,&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Reducing Health Care acquired Infection]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt; = 18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt; = 200 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=4) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt; = 18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt; = 200 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=46),&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Rates of Readmission]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;//Primary Care Metrics&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt; = 10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt; = 103 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&amp;gt;=1 &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt; &amp;lt;=4),&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Community Intervention Team by Source]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=192 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=20,&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Physio Wait &amp;gt;12 wks]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt; = 10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt; = 191 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&amp;gt;=68 &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt; &amp;lt;=79),&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[OccTherapy wait&amp;gt; 16 weeks]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=101 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=1) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=101 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=2) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=101 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=11) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=18 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=142 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=12),&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Ortho No Wait 12 Mths]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=101 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=1) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt;=101 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;=2),&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Ortho Wait &amp;gt;4 yrs]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt; = 101 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&amp;gt;=1 &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt; &amp;lt;=4) &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;TLMKey&lt;/SPAN&gt;=10 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SLMKey&lt;/SPAN&gt; = 101 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&amp;gt;=5 &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt; &amp;lt;=16))),&lt;SPAN style="color: #800000;"&gt;MetricKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Orthodontics&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;RDODesc&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;RDOKey&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;ReferredMM&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;ReferredYYYY&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;SGKey&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;SGName&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;ServiceProvider&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;ServiceProviderType&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;ServiceProviderNum&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ServiceProviderType&lt;/SPAN&gt;='H',&lt;SPAN style="color: #800000;"&gt;ServiceProvider&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Hospital&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ServiceProviderType&lt;/SPAN&gt;='T',&lt;SPAN style="color: #800000;"&gt;ServiceProvider&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HospitalGroup&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ServiceProviderType&lt;/SPAN&gt;='O',&lt;SPAN style="color: #800000;"&gt;ServiceProvider&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Team&lt;/SPAN&gt;&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="color: #0000ff;"&gt;SQL&lt;/STRONG&gt; &lt;EM style="color: #800040;"&gt;SELECT&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;*&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: #800040;"&gt;FROM&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;Healthstat.dbo."MMI_ScorecardLevel3"&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: #800040;"&gt;where&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;18&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;142&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=3)&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;18&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;142&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=4)or(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;18&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;142&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=5)or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;18&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;166&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=4)&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;18&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;200&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=46&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;)&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;192&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=20&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;)or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;18&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;200&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=4)or&lt;/EM&gt; &lt;BR /&gt;&lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;103&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(MetricKey&amp;gt;=1&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;&amp;lt;=4))or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;191&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(MetricKey&amp;gt;=68&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;&amp;lt;=79))or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;101&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(MetricKey&amp;gt;=1&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;&amp;lt;=2))&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;101&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(MetricKey&amp;gt;=11&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;&amp;lt;=12))&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;101&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=10)&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;101&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey=16)&lt;/EM&gt; &lt;BR /&gt;&lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey=10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;101&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(MetricKey&amp;gt;=1&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;&amp;lt;=4))&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(tlmkey=10&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;slmkey&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;=&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;101&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(MetricKey&amp;gt;=5&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;MetricKey&amp;lt;=16))&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: #800040;"&gt;and&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;(ServiceProviderType='H'&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;ServiceProviderType='T'&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;or&lt;/EM&gt; &lt;EM style="color: #800040;"&gt;ServiceProviderType='O')&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MonthMapping:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt;ReferredMM, Month&lt;BR /&gt;&lt;BR /&gt;1, Jan&lt;BR /&gt;&lt;BR /&gt;2, Feb&lt;BR /&gt;&lt;BR /&gt;3, Mar&lt;BR /&gt;&lt;BR /&gt;4, Apr&lt;BR /&gt;&lt;BR /&gt;5, May&lt;BR /&gt;&lt;BR /&gt;6, June&lt;BR /&gt;&lt;BR /&gt;7, July&lt;BR /&gt;&lt;BR /&gt;8, Aug&lt;BR /&gt;&lt;BR /&gt;9, Sept&lt;BR /&gt;&lt;BR /&gt;10, Oct&lt;BR /&gt;&lt;BR /&gt;11, Nov&lt;BR /&gt;&lt;BR /&gt;12, Dec&lt;BR /&gt;&lt;BR /&gt;]&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738359#M475689</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2014-07-09T08:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738360#M475690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try this:&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;"&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;"&gt;EWTD:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ActualValue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;TLMKey&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;SLMKey&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MetricDesc&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;TLMKey&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=18 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;SLMKey&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=142 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,3,4,5)) ,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ActualValue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Outpatients&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from SourcePath Group By &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TLMKey,&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SLMKey&lt;/SPAN&gt;,&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MetricKey;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738360#M475690</guid>
      <dc:creator />
      <dc:date>2014-07-09T08:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738361#M475691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Harshal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do I put this do I put it after my full load or do you mean to put&lt;/P&gt;&lt;P&gt;in the full EWTD Table and then group by at the end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry Confused&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&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;P&gt;&lt;/P&gt;&lt;P&gt;Health Service Executive, Dr. Steeven's Hospital, Dublin 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 01 6352710   (am only) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Email: rhona.corcoran@hse.ie &amp;lt;mailto:rhona.corcoran@hse.ie&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738361#M475691</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2014-07-09T09:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738362#M475692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using aggr function in script level so u need to mention group by at the end of table in which you are trying to use sum function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put it at the end of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt; table after Sourcepath...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738362#M475692</guid>
      <dc:creator />
      <dc:date>2014-07-09T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738363#M475693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help will try that&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;P&gt;&lt;/P&gt;&lt;P&gt;Health Service Executive, Dr. Steeven's Hospital, Dublin 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 01 6352710   (am only) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Email: rhona.corcoran@hse.ie &amp;lt;mailto:rhona.corcoran@hse.ie&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738363#M475693</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2014-07-09T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738364#M475694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhona ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can Load full &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt; table first without performing sum comment that after getting data for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt; table ,&lt;/P&gt;&lt;P&gt;take resident load of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt; table with new table and apply logic over their...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewTbl:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;TLMKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;SLMKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;TLMKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=18 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;SLMKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=142 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;,3,4,5)) ,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;ActualValue&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;Outpatients&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt; Group By &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;TLMKey,&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SLMKey&lt;/SPAN&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MetricKey;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000; font-style: inherit; font-weight: inherit;"&gt;It will result some synthetic key..If possible do follow below approach..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sql load where ...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;store &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt; into &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt;.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;drop table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now Load data from &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;.qvd &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Load from Your &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;.qvd...with adding &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TLMKey &amp;amp;' '&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;SLMKey &amp;amp;' '&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MetricKey as Key&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; field&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;New&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD_1&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TLMKey &amp;amp;' '&amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SLMKey &amp;amp;' '&amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MetricKey as Key&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;TLMKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=18 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;SLMKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=142 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;MetricKey&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;,3,4,5)) ,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;ActualValue&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;Outpatients&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EWTD&lt;/SPAN&gt; Group By &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;TLMKey,&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SLMKey&lt;/SPAN&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MetricKey;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738364#M475694</guid>
      <dc:creator />
      <dc:date>2014-07-09T09:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738365#M475695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to take up all your time but this is what I have in now and it is&lt;/P&gt;&lt;P&gt;saying invalid expression.  When I reload the data:&lt;/P&gt;&lt;P&gt;EWTD:&lt;/P&gt;&lt;P&gt;LOAD      ActualValue,&lt;/P&gt;&lt;P&gt;          TLMKey,&lt;/P&gt;&lt;P&gt;          SLMKey,&lt;/P&gt;&lt;P&gt;    MetricDesc,&lt;/P&gt;&lt;P&gt;         MetricKey,&lt;/P&gt;&lt;P&gt;         //Acute hospital metrics&lt;/P&gt;&lt;P&gt;         if((TLMKey=18 and SLMKey=142 and MetricKey=3) or (TLMKey=18 and&lt;/P&gt;&lt;P&gt;SLMKey=142 and MetricKey=5) or (TLMKey=18 and SLMKey=142 and&lt;/P&gt;&lt;P&gt;MetricKey=4),MetricKey)  as Discharges,&lt;/P&gt;&lt;P&gt;          if(TLMKey=18 and SLMKey=166 and MetricKey=4,MetricKey) as&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;          if((TLMKey = 18 and SLMKey = 200 and MetricKey=4) or (TLMKey =&lt;/P&gt;&lt;P&gt;18 and SLMKey = 200 and MetricKey=46),MetricKey) as [Rates of&lt;/P&gt;&lt;P&gt;Readmission],&lt;/P&gt;&lt;P&gt;          //Primary Care Metrics&lt;/P&gt;&lt;P&gt;          if(TLMKey = 10 and SLMKey = 103 and (MetricKey&amp;gt;=1 or MetricKey&lt;/P&gt;&lt;P&gt;&amp;lt;=4),MetricKey) as ,&lt;/P&gt;&lt;P&gt;          if(TLMKey=10 and SLMKey=192 and MetricKey=20,MetricKey) as&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;          if(TLMKey = 10 and SLMKey = 191 and (MetricKey&amp;gt;=68 or&lt;/P&gt;&lt;P&gt;MetricKey &amp;lt;=79),MetricKey) as ,&lt;/P&gt;&lt;P&gt;          if((TLMKey=10 and SLMKey=101 and MetricKey=1) or (TLMKey=10&lt;/P&gt;&lt;P&gt;and SLMKey=101 and MetricKey=2) or (TLMKey=10 and SLMKey=101 and&lt;/P&gt;&lt;P&gt;MetricKey=11) or(TLMKey=18 and SLMKey=142 and MetricKey=12),MetricKey)&lt;/P&gt;&lt;P&gt;as ,&lt;/P&gt;&lt;P&gt;          if((TLMKey=10 and SLMKey=101 and MetricKey=1) or (TLMKey=10&lt;/P&gt;&lt;P&gt;and SLMKey=101 and MetricKey=2),MetricKey) as ,&lt;/P&gt;&lt;P&gt;          if((TLMKey=10 and SLMKey = 101 and (MetricKey&amp;gt;=1 or MetricKey&lt;/P&gt;&lt;P&gt;&amp;lt;=4) or (TLMKey=10 and SLMKey = 101 and (MetricKey&amp;gt;=5 or MetricKey&lt;/P&gt;&lt;P&gt;&amp;lt;=16))),MetricKey) as Orthodontics,&lt;/P&gt;&lt;P&gt;          RDODesc,&lt;/P&gt;&lt;P&gt;         RDOKey,&lt;/P&gt;&lt;P&gt;         ReferredMM,&lt;/P&gt;&lt;P&gt;         ReferredYYYY,&lt;/P&gt;&lt;P&gt;         SGKey,&lt;/P&gt;&lt;P&gt;          SGName,&lt;/P&gt;&lt;P&gt;          ServiceProvider,&lt;/P&gt;&lt;P&gt;          ServiceProviderType,&lt;/P&gt;&lt;P&gt;         ServiceProviderNum,&lt;/P&gt;&lt;P&gt;         if(ServiceProviderType='H',ServiceProvider) as Hospital,&lt;/P&gt;&lt;P&gt;         if(ServiceProviderType='T',ServiceProvider) as HospitalGroup,&lt;/P&gt;&lt;P&gt;         if(ServiceProviderType='O',ServiceProvider) as Team&lt;/P&gt;&lt;P&gt;         ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;slmkey = 142 and MetricKey=4)or(tlmkey = 18 and slmkey = 142 and&lt;/P&gt;&lt;P&gt;MetricKey=5)or (tlmkey = 18 and slmkey = 166 and MetricKey=4) or (tlmkey&lt;/P&gt;&lt;P&gt;= 18 and slmkey = 200 and MetricKey=46 ) or (tlmkey = 10 and slmkey =&lt;/P&gt;&lt;P&gt;192 and MetricKey=20 )or (tlmkey = 18 and slmkey = 200 and&lt;/P&gt;&lt;P&gt;MetricKey=4)or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 103 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=4))or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 191 and (MetricKey&amp;gt;=68 or MetricKey &amp;lt;=79))or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 101 and (MetricKey&amp;gt;=1 or MetricKey &amp;lt;=2)) or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 101 and (MetricKey&amp;gt;=11 or MetricKey &amp;lt;=12)) or&lt;/P&gt;&lt;P&gt;(tlmkey = 10 and slmkey = 101 and MetricKey=10) or (tlmkey = 10 and&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;(tlmkey=10 and slmkey = 101 and (MetricKey&amp;gt;=5 or MetricKey&amp;lt;=16))&lt;/P&gt;&lt;P&gt;and (ServiceProviderType='H' or ServiceProviderType='T' or&lt;/P&gt;&lt;P&gt;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;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActualValue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TLMKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLMKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MetricDesc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MetricKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((TLMKey=18 and SLMKey=142 and Match(MetricKey,3,4,5))&lt;/P&gt;&lt;P&gt;,ActualValue)) as Outpatients&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident EWTD Group By TLMKey,SLMKey,MetricKey;&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;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ReferredMM, Month&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;2, Feb&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;4, Apr&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;6, June&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;8, Aug&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;10, Oct&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;12, Dec&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;Rhona Corcoran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ICT Services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Health Service Executive, Dr. Steeven's Hospital, Dublin 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 01 6352710   (am only) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Email: rhona.corcoran@hse.ie &amp;lt;mailto:rhona.corcoran@hse.ie&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738365#M475695</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2014-07-09T09:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738366#M475696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhona ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to implement like mentioned in attached qvw...&lt;/P&gt;&lt;P&gt;Hopeit works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 10:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738366#M475696</guid>
      <dc:creator />
      <dc:date>2014-07-09T10:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum in load</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738367#M475697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks will try that and wont annoy you again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 10:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-load/m-p/738367#M475697</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2014-07-09T10:09:12Z</dc:date>
    </item>
  </channel>
</rss>

