<?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: Valueloop use incremented values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677260#M245704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. i can only get the syntax to work if there is only 1 value in the valueloop.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample SET statement like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;x={yes},id = P ({$&amp;lt;Period={'$(=ValueLoop(201405))'},y={yes}&amp;gt;} id ) &amp;gt; * &amp;lt;x={yes}, id = P ({$&amp;lt;Period={'$(=ValueLoop(201405)-1)'},y={yes}&amp;gt;} id ) &amp;gt; } &lt;/P&gt;&lt;P&gt;[value1] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work if its a true loop with 2+ numbers. Same with valuelist()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you'll get some other suggestions ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2014 20:04:23 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-08-29T20:04:23Z</dc:date>
    <item>
      <title>Valueloop use incremented values</title>
      <link>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677257#M245701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;ValueLoop&lt;/SPAN&gt;, not sure it's the way to go given my expression below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=IF( ValueLoop(201401,201408,1)=201405,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;x={Yes} = P ({$&amp;lt;Period={201405},y={Yes}&amp;gt;} Id ) &amp;gt; * &amp;lt;x={Yes} = P ({$&amp;lt;Period={201404},y={yes}&amp;gt;} Id )&amp;gt; } [value1] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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; font-size: 12px; line-height: 1.5em;"&gt;sum({&amp;lt;x={Yes} = P ({$&amp;lt;Period={201405},y={Yes}&amp;gt;} Id ) &amp;gt; * &amp;lt;x={Yes} = P ({$&amp;lt;Period={201404},y={yes}&amp;gt;} Id )&amp;gt; } [value2] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(ValueLoop(201403,201405,1)=201404,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;x={Yes} = P ({$&amp;lt;Period={201404},y={Yes}&amp;gt;} Id ) &amp;gt; * &amp;lt;x={Yes} = P ({$&amp;lt;Period={201403},y={yes}&amp;gt;} Id )&amp;gt; } [value1] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;x={Yes} = P ({$&amp;lt;Period={201404},y={Yes}&amp;gt;} Id ) &amp;gt; * &amp;lt;x={Yes} = P ({$&amp;lt;Period={201403},y={yes}&amp;gt;} Id )&amp;gt; } [value2] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; )) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm looking for is to use the values in ValueLoop(201401,201408) so that they can be used dynamically in the set analysis "Period={201405}", "Period={201404}"&amp;nbsp; e.t.c. In other words be able to use the incremented values instead of hard code it like done above. Does anybody know if its possible to do this ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions ? Basically I'm looking for to loop through my set and use a counter, I've got way to many conditions and measures that needs to be calculated. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jonas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 17:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677257#M245701</guid>
      <dc:creator />
      <dc:date>2014-08-29T17:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Valueloop use incremented values</title>
      <link>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677258#M245702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SET ANALYSIS looks a little strange.. can you share a QVW sample ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 17:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677258#M245702</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-08-29T17:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Valueloop use incremented values</title>
      <link>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677259#M245703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;Sorry.. was a bit too fast there, please see attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 19:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677259#M245703</guid>
      <dc:creator />
      <dc:date>2014-08-29T19:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Valueloop use incremented values</title>
      <link>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677260#M245704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. i can only get the syntax to work if there is only 1 value in the valueloop.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample SET statement like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;x={yes},id = P ({$&amp;lt;Period={'$(=ValueLoop(201405))'},y={yes}&amp;gt;} id ) &amp;gt; * &amp;lt;x={yes}, id = P ({$&amp;lt;Period={'$(=ValueLoop(201405)-1)'},y={yes}&amp;gt;} id ) &amp;gt; } &lt;/P&gt;&lt;P&gt;[value1] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work if its a true loop with 2+ numbers. Same with valuelist()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you'll get some other suggestions ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 20:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valueloop-use-incremented-values/m-p/677260#M245704</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-08-29T20:04:23Z</dc:date>
    </item>
  </channel>
</rss>

