<?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 Inside Variable with Parameter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606627#M44942</link>
    <description>&lt;P&gt;It looks like you are trying to produce an expression that iterates over your Items and returns one row per item. The problem is that Set Analysis is interpreted only one time per object so the idea of putting a raw unaggregated field into a set analysis expression just does not work. please describe what you are trying to accomplish and we can help.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 19:26:41 GMT</pubDate>
    <dc:creator>chriscammers</dc:creator>
    <dc:date>2019-07-26T19:26:41Z</dc:date>
    <item>
      <title>Set Analysis Inside Variable with Parameter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606623#M44941</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a variable vTest.&lt;/P&gt;&lt;P&gt;sum(&lt;BR /&gt;{&lt;BR /&gt;$&amp;lt;&lt;BR /&gt;Week={0},&lt;BR /&gt;Store={"*"}, //all stores&lt;BR /&gt;Item={$1}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;total Sales&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works if I call like this:&lt;/P&gt;&lt;P&gt;$(vTest( "10-8 | ITEM X" ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But does not work if I call like:&lt;/P&gt;&lt;P&gt;$(vTest( Item )) //where Item is the dimension and has the same value as&amp;nbsp;"10-8 | ITEM X"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried a lot of combinations inside and outside the variable.&lt;/P&gt;&lt;P&gt;Outside:&lt;/P&gt;&lt;P&gt;$(vTest( $(=$(Chr(34) &amp;amp; Item&amp;amp; chr(34))) ))&lt;/P&gt;&lt;P&gt;$(vTest( "=$(Item)" ))&lt;/P&gt;&lt;P&gt;Inside:&lt;/P&gt;&lt;P&gt;sum(&lt;BR /&gt;{&lt;BR /&gt;$&amp;lt;&lt;BR /&gt;Week={0},&lt;BR /&gt;Store={"*"},&lt;BR /&gt;Item={$(='$1')} // and a lot of different combinations here&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;total Sales&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606623#M44941</guid>
      <dc:creator>brunolovatti</dc:creator>
      <dc:date>2019-07-26T19:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Inside Variable with Parameter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606627#M44942</link>
      <description>&lt;P&gt;It looks like you are trying to produce an expression that iterates over your Items and returns one row per item. The problem is that Set Analysis is interpreted only one time per object so the idea of putting a raw unaggregated field into a set analysis expression just does not work. please describe what you are trying to accomplish and we can help.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606627#M44942</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2019-07-26T19:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Inside Variable with Parameter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606635#M44944</link>
      <description>&lt;P&gt;I have this data&lt;/P&gt;&lt;P&gt;Store / Item / Sales / TOTAL&lt;/P&gt;&lt;P&gt;1 / A / 100&lt;/P&gt;&lt;P&gt;1 / B / 200&lt;/P&gt;&lt;P&gt;1 / C / 700&lt;/P&gt;&lt;P&gt;2 / A / 400&lt;/P&gt;&lt;P&gt;2 / B /600&lt;/P&gt;&lt;P&gt;I want to show total sales of the same items in all stores.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 / A / 100 / 500&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 / B / 200 / 800&lt;/P&gt;&lt;P&gt;1 / C / 700 / 700&lt;/P&gt;&lt;P&gt;2 / A / 400 / 500&lt;/P&gt;&lt;P&gt;2 / B /600 / 800&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606635#M44944</guid>
      <dc:creator>brunolovatti</dc:creator>
      <dc:date>2019-07-26T19:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Inside Variable with Parameter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606645#M44946</link>
      <description>&lt;P&gt;I lied, you don't have to use AGGR for that one.&lt;/P&gt;&lt;P&gt;add a measure with Item and Store as dimensions then&lt;/P&gt;&lt;P&gt;Sum(Sales) as the first measure&lt;/P&gt;&lt;P&gt;Sum(Total &amp;lt;Item&amp;gt; Sales) as&amp;nbsp; the second Measure&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2019-07-26 145123.png" style="width: 730px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16103i3DDB7EEC8E6B06D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2019-07-26 145123.png" alt="Annotation 2019-07-26 145123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606645#M44946</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2019-07-26T19:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Inside Variable with Parameter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606650#M44949</link>
      <description>&lt;P&gt;It worked!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much simpler!&lt;/P&gt;&lt;P&gt;Sum(&lt;BR /&gt;{&lt;BR /&gt;$&amp;lt;&lt;BR /&gt;Week={ 0 }&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;total &amp;lt;Item&amp;gt; Sales&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Inside-Variable-with-Parameter/m-p/1606650#M44949</guid>
      <dc:creator>brunolovatti</dc:creator>
      <dc:date>2019-07-26T20:02:42Z</dc:date>
    </item>
  </channel>
</rss>

