<?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: Use an expression value in Set Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-an-expression-value-in-Set-Expression/m-p/1764958#M455248</link>
    <description>&lt;P&gt;I assume it would be rather not possible because you would need to embed it within a $-sign expansion which operate only on a global level. Another possibility might be to use this within any aggr() constructs but I think it makes everything more complicated as it would be helpful. Therefore I suggest a small change to your approach and using it as a flag-calculation (maybe within a variable) like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var:&lt;/STRONG&gt;&lt;BR /&gt;if((only({&amp;lt;Jahr={"$(=max(Jahr))"}&amp;gt;}[AuslaufFlag])=1 and only({&amp;lt;Jahr={"$(=max(Jahr)-1)"}&amp;gt;}[AuslaufFlag])=0) or (only({&amp;lt;Jahr={"$(=max(Jahr))"}&amp;gt;}[AuslaufFlag])=1 and len(only({&amp;lt;Jahr={"$(=max(Jahr)-1)"}&amp;gt;}[AuslaufFlag]))=0)&lt;STRONG&gt;,1,0&lt;/STRONG&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and then as expression&lt;/P&gt;&lt;P&gt;sum([Bilanzwert zu EK]) &lt;STRONG&gt;* $(var)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 14:00:49 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-11-27T14:00:49Z</dc:date>
    <item>
      <title>Use an expression value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-an-expression-value-in-Set-Expression/m-p/1764766#M455246</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everybody, i want to use the value of an expression in a set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For e.g. my expression ist --&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if((only({&amp;lt;Jahr={"$(=max(Jahr))"}&amp;gt;}[AuslaufFlag])=1 and only({&amp;lt;Jahr={"$(=max(Jahr)-1)"}&amp;gt;}[AuslaufFlag])=0) or (only({&amp;lt;Jahr={"$(=max(Jahr))"}&amp;gt;}[AuslaufFlag])=1 and len(only({&amp;lt;Jahr={"$(=max(Jahr)-1)"}&amp;gt;}[AuslaufFlag]))=0),'Zugang',Null())&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and now want to use the value "Zugang" for a set expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;like&amp;nbsp;sum({$&amp;lt;Zugang={'Zugang'}&amp;gt;}[Bilanzwert zu EK])&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i get wrong values, can someone help me :)?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 15:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-an-expression-value-in-Set-Expression/m-p/1764766#M455246</guid>
      <dc:creator>mk95</dc:creator>
      <dc:date>2020-11-26T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use an expression value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-an-expression-value-in-Set-Expression/m-p/1764774#M455247</link>
      <description>&lt;P&gt;i suggest try the following:&lt;BR /&gt;1. clear all filters (create a current selection object to make sure nothing is selected)&lt;BR /&gt;2. create a list for the field Zugang, then select the value 'Zugang'&lt;BR /&gt;3. create a text box with the expression sum(&lt;SPAN&gt;[Bilanzwert zu EK])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the text object should have the same value as&amp;nbsp;&lt;BR /&gt;sum({$&amp;lt;Zugang={'Zugang'}&amp;gt;}[Bilanzwert zu EK])&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then re-create the scenario where you arent getting the expected value.&amp;nbsp; check the selections (what filters you have) and go from there - you can try clear filters one by one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;otherwise, attach a qvw&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 16:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-an-expression-value-in-Set-Expression/m-p/1764774#M455247</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-11-26T16:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use an expression value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-an-expression-value-in-Set-Expression/m-p/1764958#M455248</link>
      <description>&lt;P&gt;I assume it would be rather not possible because you would need to embed it within a $-sign expansion which operate only on a global level. Another possibility might be to use this within any aggr() constructs but I think it makes everything more complicated as it would be helpful. Therefore I suggest a small change to your approach and using it as a flag-calculation (maybe within a variable) like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var:&lt;/STRONG&gt;&lt;BR /&gt;if((only({&amp;lt;Jahr={"$(=max(Jahr))"}&amp;gt;}[AuslaufFlag])=1 and only({&amp;lt;Jahr={"$(=max(Jahr)-1)"}&amp;gt;}[AuslaufFlag])=0) or (only({&amp;lt;Jahr={"$(=max(Jahr))"}&amp;gt;}[AuslaufFlag])=1 and len(only({&amp;lt;Jahr={"$(=max(Jahr)-1)"}&amp;gt;}[AuslaufFlag]))=0)&lt;STRONG&gt;,1,0&lt;/STRONG&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;and then as expression&lt;/P&gt;&lt;P&gt;sum([Bilanzwert zu EK]) &lt;STRONG&gt;* $(var)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-an-expression-value-in-Set-Expression/m-p/1764958#M455248</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-11-27T14:00:49Z</dc:date>
    </item>
  </channel>
</rss>

