<?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: Help with a Load Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496627#M686639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That makes sense.&amp;nbsp; I have run into that before and have taken care of it like you stated.&amp;nbsp; I am relatively new to Qlikview and still learning some things.&amp;nbsp; Do you know if the Fractile command works the same in a chart as it does in a load statement?&amp;nbsp; The other thing that was mentioned was a Case statement.&amp;nbsp; I have not done one of those yet and any suggestions on learning the syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other question I have is can we put the following information into a load statement?&amp;nbsp; If we can that would be awesome.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(count(WOID),AcctNum)= 0,0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;lt; .1,0,0),AcctNum)+&lt;/P&gt;&lt;P&gt;aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .1,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .3,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .4,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .6,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(sum({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}ActualHours)/count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID) &amp;gt;= .5,1,0),AcctNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just trying to let the script do the heavy lifting as much as possible.&amp;nbsp; Is that a best practice?&amp;nbsp; Can run these scripts to run at night and be ready the next day.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 16:38:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-18T16:38:06Z</dc:date>
    <item>
      <title>Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496620#M686632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 8pt;"&gt;Our current process is we have created a chart that has 22 KPI's.&amp;nbsp; What we do in the chart dimension is we change our 7 markets to 4.&amp;nbsp; Here is how we do it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: maroon; font-family: arial black,avant garde;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: arial black,avant garde;"&gt;&lt;SPAN style="color: black;"&gt; &lt;BR /&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;= 'A', '1',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'B', '1',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'C,1', &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'D', '2', &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'E', '3',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'F','3',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: arial black,avant garde;"&gt; = 'G', '4'))))))),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial black,avant garde;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;Then in the expression we have various calculations similar to the ones listed below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial black,avant garde;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial black,avant garde;"&gt;&lt;SPAN style="color: blue; font-family: arial,helvetica,sans-serif;"&gt;1. Fractile&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(sum({&amp;lt;AssetName= {&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;"Product Name"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif;"&gt;}&amp;gt;}EF1Value__c),AcctNum, Industry),.80)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;2. &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;median(Total &amp;lt;Industry&amp;gt;aggr(sum({&amp;lt;AssetName= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"Product Name"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;EF1Value__c&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),AcctNum))&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;From there we export the data out to an excel file with a row that has:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;AcctNum, Industry, KPI1, KPI2, etc.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;Then we send it over so our DB cant take it and do a process that loads the information into a sql db and then push that information up to a dashboard.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;I know this is Set Analysis cant be done in a load statement but is there any way to accomplish the expression above in a load statement so I can then store the results in a csv file so our sql database can read it. We want the script to perform the heavy lifting..&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any ideas would be good and if there is not a way that is ok as well.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;David&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496620#M686632</guid>
      <dc:creator />
      <dc:date>2013-12-17T15:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496621#M686633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there might be several approaches to the first part of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do a Mapping Load from an inline table to match the A,B,C to the 1,2,3 in a new field&lt;/P&gt;&lt;P&gt;2. Do a left join using an inline table&lt;/P&gt;&lt;P&gt;3. A Case statement, but I am not too familiar with these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the table with the correct industry labels you can then probably use a Where clause in a resident load to deal with the set analysis bit. I am not sure if the fractile and median functions work the same way in the load script but the QV help files should make that clearer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496621#M686633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-17T15:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496622#M686634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you have the industry labels in your fact table. You'll need to do it over several load statements. Start with the inner-most Sum() then build on it in the next LOAD/RESIDENT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;AcctNum&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Industry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 11px;"&gt;EF1Value__c&lt;/SPAN&gt;) as InnerSum&lt;/P&gt;&lt;P&gt;RESIDENT [your fact table]&lt;/P&gt;&lt;P&gt;WHERE AssetName = 'Product Name'&lt;/P&gt;&lt;P&gt;GROUP BY AcctNum, Industry&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Industry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fractile(InnerSum, .80)&lt;/P&gt;&lt;P&gt;RESIDENT Table1&lt;/P&gt;&lt;P&gt;GROUP BY Industry&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2 should have the values that your listed function would have. You can do a similar method with the Median statement as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496622#M686634</guid>
      <dc:creator />
      <dc:date>2013-12-17T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496623#M686635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Adam said, you can either map the Industry labels over or just add an if statement into your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'arial black', 'avant garde'; color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;= 'A', '1',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; = 'B', '1',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; = 'C,1', &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; = 'D', '2', &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; = 'E', '3',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; = 'F','3',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11px; font-family: 'arial black', 'avant garde'; color: black;"&gt; = 'G', '4'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'arial black', 'avant garde'; color: black;"&gt;))))))) as IndustryNormalized,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496623#M686635</guid>
      <dc:creator />
      <dc:date>2013-12-17T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496624#M686636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get a Facts Table that has:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AcctNum, Industry, NewIndustry, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to perform the first load statement above I get synethic keys on acctnum and NewIndustry.&amp;nbsp; Any reason for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 19:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496624#M686636</guid>
      <dc:creator />
      <dc:date>2013-12-17T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496625#M686637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, QV does this automatically when at least two tables share two or more fields. Since QV relies on a single field for a key it creates a synthetic key that references a new key table that links the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you are finished with Table1 in the load script add: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DROP TABLE Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will remove the unnecessary table and avoid the synthetic key. Table2 shouldn't create a synthetic key since it only has 1 shared field between the original table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side note: A synthetic key isn't necessarily a bad thing, but it is generally preferred to concatenate all the key fields together to create a single key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD AcctNm &amp;amp; NewIndustry as %Key_AcctIndustry&lt;/P&gt;&lt;P&gt;.... rest of load statement ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your fact table you would need to create this same key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 15:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496625#M686637</guid>
      <dc:creator />
      <dc:date>2013-12-18T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496626#M686638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do these calculations in script level by Group By clause and other aggregation functions, but the selections will be limited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post sample source data , calculation requirements and desired out put to help more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 15:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496626#M686638</guid>
      <dc:creator />
      <dc:date>2013-12-18T15:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496627#M686639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That makes sense.&amp;nbsp; I have run into that before and have taken care of it like you stated.&amp;nbsp; I am relatively new to Qlikview and still learning some things.&amp;nbsp; Do you know if the Fractile command works the same in a chart as it does in a load statement?&amp;nbsp; The other thing that was mentioned was a Case statement.&amp;nbsp; I have not done one of those yet and any suggestions on learning the syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other question I have is can we put the following information into a load statement?&amp;nbsp; If we can that would be awesome.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(count(WOID),AcctNum)= 0,0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;lt; .1,0,0),AcctNum)+&lt;/P&gt;&lt;P&gt;aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .1,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .3,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .4,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .6,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(sum({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}ActualHours)/count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID) &amp;gt;= .5,1,0),AcctNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just trying to let the script do the heavy lifting as much as possible.&amp;nbsp; Is that a best practice?&amp;nbsp; Can run these scripts to run at night and be ready the next day.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 16:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496627#M686639</guid>
      <dc:creator />
      <dc:date>2013-12-18T16:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496628#M686640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I posted above and what the current setup is.&amp;nbsp; We are doing all the calculations at the Chart Level but we would love to move as much to the load statement as possible.&amp;nbsp; Here you go. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current process is we run various scripts that takes our product data and Salesforce data to come up with a set of KPI's for each account.&amp;nbsp; The data we pull is just raw data.&amp;nbsp; An example would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AcctNum, Number of Work Orders, etc.&amp;nbsp; Once we have the raw data we have a chart that has all the calculations in it.&amp;nbsp; The example of the chart would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Account Number, Field 1, Field 2, Field 3, etc.&amp;nbsp; One of the calculations is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(count(WOID),AcctNum)= 0,0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;lt; .1,0,0),AcctNum)+&lt;/P&gt;&lt;P&gt;aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .1,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .3,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .4,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID)/Students__c &amp;gt;= .6,1,0),AcctNum)&lt;/P&gt;&lt;P&gt;+aggr(IF(sum({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}ActualHours)/count({&amp;lt;StatusDesc = {"Complete", "Closed*"}&amp;gt;}WOID) &amp;gt;= .5,1,0),AcctNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we have that at the account level we export the data to an excel file.&amp;nbsp; We use the Salesforce Data Loader to upload the information by account and store those numbers in various fields. We have another script that reads those numbers at the account level out of Salesforce so we can combine same industries together to get a list of 22 KPI's by Fractile and Median.&amp;nbsp; Then we post those KPI's to a dashboard so our clients can compare themselves to their peers.&amp;nbsp; So we have a set of KPI's that are at an Account level so they can see where they are and then 2 other sets of KPI's so they can compare themselves to their peers.&amp;nbsp; I hope this makes sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what is at the Industry level Chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: maroon; font-family: arial black,avant garde;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: arial black,avant garde;"&gt;&lt;SPAN style="color: black;"&gt; &lt;BR /&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;= 'A', '1',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'B', '1',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'C,1', &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'D', '2', &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'E', '3',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = 'F','3',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: arial black,avant garde;"&gt; = 'G', '4'))))))),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial black,avant garde;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;Then in the expression we have various calculations similar to the ones listed below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial black,avant garde;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial black,avant garde;"&gt;&lt;SPAN style="color: blue; font-family: arial,helvetica,sans-serif;"&gt;1. Fractile&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Industry&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(sum({&amp;lt;AssetName= {&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;"Product Name"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif;"&gt;}&amp;gt;}EF1Value__c),AcctNum, Industry),.80)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;2. &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;median(Total &amp;lt;Industry&amp;gt;aggr(sum({&amp;lt;AssetName= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"Product Name"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;EF1Value__c&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),AcctNum))&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;From there we export the data out to an excel file with a row that has:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;AcctNum, Industry, KPI1, KPI2, etc.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;I would love to move calculations at the account level to a script load and the same at the industry level.&amp;nbsp; Let me know your thoughts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;David&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 17:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496628#M686640</guid>
      <dc:creator />
      <dc:date>2013-12-18T17:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496629#M686641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Putting heavy calculations into the load script is always a good idea. You just need to make sure that user selections will not cause your script values to become invalid. (I cant think of an example, but its a definite possibility).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know if Fractile is the same, but I don't see why it wouldn't be. You can try it both ways and confirm the numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use the aggr() function in a load script. Aggr() is basically like Table1 and Table2 I posted earlier. First, you would create a table to calculate the values of the inside function, then load into a second table for the outside function. Plus, you will need to add the chart dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, I don't think that's the best use of aggr(). What are you trying to accomplish with that expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 17:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496629#M686641</guid>
      <dc:creator />
      <dc:date>2013-12-18T17:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Load Question</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496630#M686642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I am trying to accomplish is give an account a score from 1 to 5. I count all the work orders over a rolling 12 month period with a status of complete and closed.&amp;nbsp; Take that number and divide by the number of students for that account.&amp;nbsp; If they meet the criteria of .1 work orders per student they get 1 point, .3 they get two points, etc until they get to 4 points.&amp;nbsp; In order to get the last point they have to track hours on their work orders.&amp;nbsp; If they do and the calculation is .5 or higher they get the final point.&amp;nbsp; Does this make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 18:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Load-Question/m-p/496630#M686642</guid>
      <dc:creator />
      <dc:date>2013-12-18T18:32:52Z</dc:date>
    </item>
  </channel>
</rss>

