<?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: Piece of set analysis in a variable ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683448#M247780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in principle, that is possible, no problem. You can use variables in a set_analysis - I have tried only with "simple" numeric values which don't require that expansion thingy, but I guess it should be possible with those, too.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 11:56:45 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-09-24T11:56:45Z</dc:date>
    <item>
      <title>Piece of set analysis in a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683446#M247778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an application, I often use a piece of code in a set analysis which is quite long. is there a way to store it in kind of a variable so I don't have to write it each time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683446#M247778</guid>
      <dc:creator />
      <dc:date>2014-09-24T11:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Piece of set analysis in a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683447#M247779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's a very good idea. Here's an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;original:&lt;/P&gt;&lt;P&gt;expression: sum({&amp;lt;FieldA={'Something'},FieldB={'&amp;gt;100'}&amp;gt;+&amp;lt;FieldC={'=sum(Sales)&amp;lt;1000'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using a variable:&lt;/P&gt;&lt;P&gt;variable: vSetMod: {&amp;lt;FieldA={'Something'},FieldB={'&amp;gt;100'}&amp;gt;+&amp;lt;FieldC={'=sum(Sales)&amp;lt;1000'}&amp;gt;}&lt;/P&gt;&lt;P&gt;expression: sum( $(vSetMod) Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can of course also store parts the complete set modifier into different variables and combine those in the expression or in yet another variable. Variables can even take parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSetMod:&amp;nbsp; {&amp;lt;FieldA={$1}&amp;gt;)&lt;/P&gt;&lt;P&gt;sum( $(vSetmod('Something')) Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683447#M247779</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-24T11:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Piece of set analysis in a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683448#M247780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in principle, that is possible, no problem. You can use variables in a set_analysis - I have tried only with "simple" numeric values which don't require that expansion thingy, but I guess it should be possible with those, too.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683448#M247780</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-09-24T11:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Piece of set analysis in a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683449#M247781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Gysbert &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good day !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 12:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Piece-of-set-analysis-in-a-variable/m-p/683449#M247781</guid>
      <dc:creator />
      <dc:date>2014-09-24T12:00:56Z</dc:date>
    </item>
  </channel>
</rss>

