<?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: need help in scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943941#M972776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you attach the sample file with complete script as your script showing Resident Load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 08:23:53 GMT</pubDate>
    <dc:creator>qlikviewwizard</dc:creator>
    <dc:date>2015-09-14T08:23:53Z</dc:date>
    <item>
      <title>need help in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943940#M972775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="jive-answer-type font-color-meta jive-answer-type-notanswered" style="margin: 5px 0 0; font-weight: inherit; font-style: inherit; font-family: inherit; color: #8b8b8b;"&gt;This question is &lt;STRONG class="font-color-danger" style="font-style: inherit; font-family: inherit; color: #c20000;"&gt;Not Answered.&lt;/STRONG&gt;&lt;SPAN style="padding: 0 0 0 5px; font-weight: inherit; font-size: 0.95em; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/180339" style="font-weight: inherit; font-style: inherit; font-size: 12.35px; font-family: inherit; color: #8ca9cd;"&gt;(Mark as assumed answered)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="j-post-avatar" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="j-avatar jiveTT-hover-user" data-avatarid="5408" data-externalid="" data-presence="null" data-userid="162685" data-username="yogitamehta10" href="https://community.qlik.com/people/yogitamehta10" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="yogita Mehta" border="0" class="jive-avatar jive-image" data-avatarid="5408" data-height="46" data-username="yogitamehta10" height="46" src="https://community.qlik.com/people/yogitamehta10/avatar/46.png?a=5408" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="46" /&gt;&lt;SPAN class="j-status-levels j-gamification-status-level" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;IMG alt="Apprentice" class="jive-image" src="https://assets.bunchball.net/badges/levels/L3.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" title="Apprentice" /&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px; font-family: inherit;"&gt;&lt;A href="https://community.qlik.com/people/yogitamehta10"&gt;yogitamehta10&lt;/A&gt;&lt;/STRONG&gt; Sep 14, 2015 3:21 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Need help in this scripting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;i have two tables&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;table1:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;LOAD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure Code],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure Code Description],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure User Type],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure Exceptions],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure Exception %],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure Population],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure Date],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Group],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Measure Control],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [HM Weight]&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;FROM&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;[..\ERP\Health Measures.qvd]&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;outer join(table1)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;table2:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;load Distinct&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;[HM Measure Code],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;variablefields,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;data&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Resident tableres;&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 style="font-weight: inherit; font-style: inherit;"&gt;for Each var in 7,14,21,28,35,42,49,56,63,70,77,84,91&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;if var = 7 then&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;table1_TEMP:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;LOAD distinct&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp; [HM Measure Code],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp; variablefields,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;count( [HM Measure Site Code]) as HM_MEASURE_SITE_COUNT,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;sum(if(Upper(Text([HM Measure Control]))&amp;lt;&amp;gt; 'N',[HM Measure Population])) as HM_MEASURE_POPULATION,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;sum(if(Upper(Text([HM Measure Control]))&amp;lt;&amp;gt; 'N',[HM Measure Exceptions])) as HM_MEASURE_EXCEPTION,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;$(var) as LoopBack&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Resident table1&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;where match ([HM Measure Code] ,'EM08','ET06',&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;'EM07','EM09','PM21')&amp;gt;0 and num([HM Measure Date])&amp;gt;=num(today()-$(var))&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;group By [HM Measure Code]*variablefields,$(var);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;tablefinal:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;LOAD LoopBack,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;[HM Measure Code],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;data,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;//[HM Measure Code]*data as HM_Measure_code_new,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;if(HM_MEASURE_SITE_COUNT=0,0,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp; if(HM_MEASURE_POPULATION&amp;lt;&amp;gt;0,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp; 1-(HM_MEASURE_EXCEPTION/HM_MEASURE_POPULATION),0)) as TEMP_1&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Resident table1_TEMP;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;drop&amp;nbsp; Table table1_TEMP;&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 style="font-weight: inherit; font-style: inherit;"&gt;i have values for variablefields are like EM08_F,'ETo6_F' that is similar to codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;now what i want that tablefinal Temp_1 expression should calculate for every&amp;nbsp; [HM Measure Code] and&amp;nbsp; after calculation each expression for evry mesaure code it will multiply&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;variable field that has similar name to measure code .&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;like wise it will calculate for all the four codes and will add them&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 style="font-weight: inherit; font-style: inherit;"&gt;could you please help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943940#M972775</guid>
      <dc:creator>yogitamehta10</dc:creator>
      <dc:date>2015-09-14T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: need help in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943941#M972776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you attach the sample file with complete script as your script showing Resident Load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943941#M972776</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-09-14T08:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: need help in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943942#M972777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;i ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;You can ignore resident load&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;This is by mistake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943942#M972777</guid>
      <dc:creator>yogitamehta10</dc:creator>
      <dc:date>2015-09-14T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: need help in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943943#M972778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any help ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-scripting/m-p/943943#M972778</guid>
      <dc:creator>yogitamehta10</dc:creator>
      <dc:date>2015-09-14T10:38:19Z</dc:date>
    </item>
  </channel>
</rss>

