<?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: Set Analysis for Nested loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598871#M221713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by 'loop'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 09:21:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-18T09:21:29Z</dc:date>
    <item>
      <title>Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598869#M221711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please tell me the set analysis statement for nested loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 08:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598869#M221711</guid>
      <dc:creator>alkesh_sharma</dc:creator>
      <dc:date>2014-02-18T08:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598870#M221712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(if(Brand='LEVIS',QTY))&lt;/STRONG&gt; now for this statement you can write set expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;Brand={'LEVIS'} &amp;gt;} QTY)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This just for reference you can similarly go for the nested if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 08:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598870#M221712</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-02-18T08:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598871#M221713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by 'loop'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 09:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598871#M221713</guid>
      <dc:creator />
      <dc:date>2014-02-18T09:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598872#M221714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Sujeet for the quick response, It would be great if you have help me out a lil in detail.&lt;/P&gt;&lt;P&gt;I need the exact Set analysis statement for the below nested if:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Rolling Month] = 'Apr - 2005',1,&lt;/P&gt;&lt;P&gt;If([Rolling Month] = 'May - 2005',2,&lt;/P&gt;&lt;P&gt;If([Rolling Month] = 'Jun - 2005',3,&lt;/P&gt;&lt;P&gt;If([Rolling Month] = 'Jul - 2005',4,&lt;/P&gt;&lt;P&gt;If([Rolling Month] = 'Aug - 2005',5,&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;If([Rolling Month] = 'Mar - 2010',60,))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598872#M221714</guid>
      <dc:creator>alkesh_sharma</dc:creator>
      <dc:date>2014-02-18T10:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598873#M221715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a column with 1, 2, 3 .... for each Rolling Month&lt;/P&gt;&lt;P&gt;and use it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598873#M221715</guid>
      <dc:creator />
      <dc:date>2014-02-18T10:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598874#M221716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou but this will not solve my problem. I would need to write 60 rolling month as per your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598874#M221716</guid>
      <dc:creator>alkesh_sharma</dc:creator>
      <dc:date>2014-02-18T10:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598875#M221717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I need the exact Set analysis statement for the below nested if:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If([Rolling Month] = 'Apr - 2005',1,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If([Rolling Month] = 'May - 2005',2,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If([Rolling Month] = 'Jun - 2005',3,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If([Rolling Month] = 'Jul - 2005',4,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If([Rolling Month] = 'Aug - 2005',5,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If([Rolling Month] = 'Mar - 2010',60,))))))&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/470575?et=watches.email.thread" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;/message/470575?et=watches.email.thread&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598875#M221717</guid>
      <dc:creator>alkesh_sharma</dc:creator>
      <dc:date>2014-02-18T10:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598876#M221718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this column (or any expression that returns 1 to 60 for the rolling months), you avoid all these nested if()&lt;/P&gt;&lt;P&gt;What do you want to do ?&lt;/P&gt;&lt;P&gt;1) to do a nested complicated thing whatever the result ?&lt;/P&gt;&lt;P&gt;2) return a Number for a given Rolling Month ? and insert it into another expression ? use it as a dimension ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598876#M221718</guid>
      <dc:creator />
      <dc:date>2014-02-18T10:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598877#M221719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use it as a dimension. creating a column is a hectic task but would definitely solve the purpose. I am looking for something that would reduce the length of script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598877#M221719</guid>
      <dc:creator>alkesh_sharma</dc:creator>
      <dc:date>2014-02-18T10:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598878#M221720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the script, use functions like&lt;/P&gt;&lt;P&gt;rowno(), autonumber(), autonumberhash128 or 256()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the UI (Calculated Dimension), you can use also a function like FieldIndex('Field', Field) to get sth numbered from 1 to the number of values (according to the FIRST load order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598878#M221720</guid>
      <dc:creator />
      <dc:date>2014-02-18T10:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Nested loop</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598879#M221721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mod(month(date#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Rolling Month]&lt;/SPAN&gt;, 'MMM - YYYY'))-4, 12)+1+(Year(addmonths(date#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Rolling Month]&lt;/SPAN&gt;, 'MMM - YYYY'),-3))-2005)*12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this as calculated dimension or in script. You might also be able to condense this if certain fields exist and are in date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might even be able to sort by the date and just use something like rowno() in the script. The way you go about it depends on how your data looks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Nested-loop/m-p/598879#M221721</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-18T20:47:15Z</dc:date>
    </item>
  </channel>
</rss>

