<?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 Nested loop for grading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-loop-for-grading/m-p/1090119#M640961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the attached data - basically its sales data for 300 salesman in 3 regions for 3 different years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the combined sales figures for all 3 years, I would like to grade the salesmen's performance, first, based on their usa sales, into 5 grades (using fractile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, based on those salesmen that are graded 1 for their usa sales, grade them again based on their asia sales figures (also into 5 categories using fractile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, based on those salesmen that are graded 1 for their usa sales and graded 1 for their asia sales, grade them again based on their europe sales (also into 5 categories using fractile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat for those that are graded 2 for their usa sales and so on... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the evaluation, sum all of the grades to produce an overall score. The model structure and envisioned result are as attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feeling that it requires a nested loop but have no idea how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help? I'm using a personal edition so I would appreciate if you could show the load script here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 04:12:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-04T04:12:14Z</dc:date>
    <item>
      <title>Nested loop for grading</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-loop-for-grading/m-p/1090119#M640961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the attached data - basically its sales data for 300 salesman in 3 regions for 3 different years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the combined sales figures for all 3 years, I would like to grade the salesmen's performance, first, based on their usa sales, into 5 grades (using fractile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, based on those salesmen that are graded 1 for their usa sales, grade them again based on their asia sales figures (also into 5 categories using fractile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, based on those salesmen that are graded 1 for their usa sales and graded 1 for their asia sales, grade them again based on their europe sales (also into 5 categories using fractile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat for those that are graded 2 for their usa sales and so on... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the evaluation, sum all of the grades to produce an overall score. The model structure and envisioned result are as attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feeling that it requires a nested loop but have no idea how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help? I'm using a personal edition so I would appreciate if you could show the load script here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 04:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-loop-for-grading/m-p/1090119#M640961</guid>
      <dc:creator />
      <dc:date>2016-03-04T04:12:14Z</dc:date>
    </item>
  </channel>
</rss>

