<?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 with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679760#M246553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable &lt;STRONG&gt;vInvoice&lt;/STRONG&gt; is defined is the menu of QlikView application :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="capture1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61520_capture1.png" /&gt;&lt;/P&gt;&lt;P&gt;Then you create the variable "vInvoice", and for definition I typed :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;GetFieldSelections(&lt;STRONG style="font-style: inherit;"&gt;_InvoiceA_Or_InvoiceB&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 12:46:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-01T12:46:08Z</dc:date>
    <item>
      <title>Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679751#M246544</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;I have a problem with a set analysis using variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the calculation according to the user selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do that, I made a selection with two values load by a load inline.&lt;/P&gt;&lt;P&gt;This two value are fields available in my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [_InvoiceA_Or_InvoiceB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICE_A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICE_B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this, I made a variable &lt;STRONG&gt;vInvoice &lt;/STRONG&gt;with :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=GetCurrentSelections(_InvoiceA_Or_InvoiceB)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thereafter, I write my set analysis like :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({$&amp;lt;PRODUCT_FAMILY={"Family"}&amp;gt;}($(vInvoice))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, my calculation doesn't work.&lt;/P&gt;&lt;P&gt;Is someone can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 11:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679751#M246544</guid>
      <dc:creator />
      <dc:date>2014-06-30T11:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679752#M246545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;STRONG&gt;=GetCurrentSelections(_InvoiceA_Or_InvoiceB)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;try &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;vInvoice&amp;nbsp; &lt;/STRONG&gt;=Only(&lt;STRONG&gt;_InvoiceA_Or_InvoiceB)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;=Sum({$&amp;lt;PRODUCT_FAMILY={"Family"}&amp;gt;}($(vInvoice))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679752#M246545</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2014-06-30T12:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679753#M246546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you select any selections??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679753#M246546</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-06-30T12:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679754#M246547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes I select a selection &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;Thanks for your response.&lt;/P&gt;&lt;P&gt;I try&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;vInvoice&amp;nbsp; &lt;/STRONG&gt;=Only(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;_InvoiceA_Or_InvoiceB)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if my two values &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICE_A&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICE_B&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;are really link to my fields with the same name ?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679754#M246547</guid>
      <dc:creator />
      <dc:date>2014-06-30T12:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679755#M246548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with in place of the&amp;nbsp; &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=GetCurrentSelections(_InvoiceA_Or_InvoiceB)&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;GetFieldSelections(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;_InvoiceA_Or_InvoiceB&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then write like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;PRODUCT_FAMILY={"Family"}&amp;gt;} ($(vInvoice)) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679755#M246548</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-30T12:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679756#M246549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi make sure values&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; INVOICE_A&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; INVOICE_B&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Must have same name in table if not try be renaming your inline table field to match your source.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ASHFAQ&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679756#M246549</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-06-30T12:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679757#M246550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works with this !&lt;/P&gt;&lt;P&gt;Thank you very much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679757#M246550</guid>
      <dc:creator />
      <dc:date>2014-06-30T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679758#M246551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I am Glad it works&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;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679758#M246551</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-30T12:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679759#M246552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, one question, at what point is initialized variable "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vInvoice&lt;/SPAN&gt;"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679759#M246552</guid>
      <dc:creator>smirkinaa</dc:creator>
      <dc:date>2014-06-30T12:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679760#M246553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable &lt;STRONG&gt;vInvoice&lt;/STRONG&gt; is defined is the menu of QlikView application :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="capture1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61520_capture1.png" /&gt;&lt;/P&gt;&lt;P&gt;Then you create the variable "vInvoice", and for definition I typed :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;GetFieldSelections(&lt;STRONG style="font-style: inherit;"&gt;_InvoiceA_Or_InvoiceB&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 12:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable/m-p/679760#M246553</guid>
      <dc:creator />
      <dc:date>2014-07-01T12:46:08Z</dc:date>
    </item>
  </channel>
</rss>

