<?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: expression in set-analysis as variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818883#M67132</link>
    <description>&lt;P&gt;Hi Costa,&lt;/P&gt;&lt;P&gt;Here's my working expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;Dim1={'A'},$(vSet1)&amp;gt;}Expression1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my working variable &lt;EM&gt;vSet1&lt;/EM&gt; it needs to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dim2={'b'}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Using this or having the whole expression not using variables gives me the expected same results.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 14:02:39 GMT</pubDate>
    <dc:creator>Mark_Winter</dc:creator>
    <dc:date>2021-06-30T14:02:39Z</dc:date>
    <item>
      <title>expression in set-analysis as variable</title>
      <link>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818857#M67129</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I have a set analyis looking like below.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#003366"&gt;&lt;EM&gt;sum ( { $&amp;lt;[Positionsnummer]={'12345678'},&lt;FONT color="#FF0000"&gt;[Währungstyp]={'30'},Kalendermonat={'12'},Kalenderjahr={'$(vCurrentKalenderjahr-1)'},Version={'100'},Werttyp={'Ist'}&lt;/FONT&gt;&amp;gt; } Kennzahl)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The red marked text is kind of flexible and can occur in like 60 different versions, which i regularly need to change.&lt;/P&gt;&lt;P&gt;I wanted to pre-define the flexible part with a variable and put only the variable in the set analysis afterwards.&lt;/P&gt;&lt;P&gt;So i have created a variable = [vSet1] in the variable editor&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#003366"&gt;&lt;EM&gt;$&amp;lt;[Währungstyp]={'30'},Kalendermonat={'12'},Kalenderjahr={'$(vCurrentKalenderjahr-1)'},Version={'100'},Werttyp={'Ist'}&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT color="#000000"&gt;Now, I want to put the variable into the set analyis, to give me same result as with the set-analysis from the beginning.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;FONT color="#003366"&gt;&lt;EM&gt;sum ( { $&amp;lt;[Positionsnummer]={'12345678'}&amp;gt; + $(vSet1) } Kennzahl)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT color="#000000"&gt;Unfortunatly, the result somehow is just different. It looks like it ignores the expression from the variable.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;What am I doing wrong?&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Best:)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 13:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818857#M67129</guid>
      <dc:creator>Costa</dc:creator>
      <dc:date>2021-06-30T13:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set-analysis as variable</title>
      <link>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818883#M67132</link>
      <description>&lt;P&gt;Hi Costa,&lt;/P&gt;&lt;P&gt;Here's my working expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;Dim1={'A'},$(vSet1)&amp;gt;}Expression1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my working variable &lt;EM&gt;vSet1&lt;/EM&gt; it needs to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dim2={'b'}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Using this or having the whole expression not using variables gives me the expected same results.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818883#M67132</guid>
      <dc:creator>Mark_Winter</dc:creator>
      <dc:date>2021-06-30T14:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set-analysis as variable</title>
      <link>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818884#M67133</link>
      <description>&lt;P&gt;works perfectly fine - thanks Mark &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818884#M67133</guid>
      <dc:creator>Costa</dc:creator>
      <dc:date>2021-06-30T14:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set-analysis as variable</title>
      <link>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818885#M67134</link>
      <description>&lt;P&gt;My pleasure&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":clinking_beer_mugs:"&gt;🍻&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/expression-in-set-analysis-as-variable/m-p/1818885#M67134</guid>
      <dc:creator>Mark_Winter</dc:creator>
      <dc:date>2021-06-30T14:05:40Z</dc:date>
    </item>
  </channel>
</rss>

