<?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 more than one condition using the same field and filters associated with the f in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528827#M38009</link>
    <description>&lt;DIV&gt;Hi&amp;nbsp;&lt;SPAN&gt;Arvind,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I had another look my expression and figured it out&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if($(vCurrent_Month)=2,&lt;/DIV&gt;&lt;DIV&gt;Sum({$&amp;lt;month_number = {1}&amp;gt;}trans_amount) - Sum({&amp;lt;year_end = {$(vTwo_Years_Ago)},month_number = {1,2}&amp;gt;} trans_amount),&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;two conditions are inside the one pair of {&amp;lt; &amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&amp;lt;year_end = {$(vTwo_Years_Ago)},month_number = {1,2}&amp;gt;} two conditions are inside the one pair of {&amp;lt; &amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;as apposed to each condition in its own {&amp;lt; &amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&amp;lt;year_end = {$(vTwo_Years_Ago)}} {&amp;lt;month_number = {1,2}&amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks Again Arvind for your help, you got me thinking in the right direction&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;All the Best&lt;/DIV&gt;&lt;DIV&gt;Mark&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Jan 2019 09:29:11 GMT</pubDate>
    <dc:creator>thedalyfella</dc:creator>
    <dc:date>2019-01-10T09:29:11Z</dc:date>
    <item>
      <title>Set Analysis with more than one condition using the same field and filters associated with the field</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528373#M37953</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I'm using set analysis and need some help the expression I'm using is&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;month_number = {1}&amp;gt;} trans_amount) + Sum({&amp;lt;month_number = {2}&amp;gt;} trans_amount)) - Sum(trans_amount)&lt;/P&gt;&lt;P&gt;The trans_amount field contains transaction amounts and month number and year field dimensions are each associated a filter&lt;/P&gt;&lt;P&gt;if I select 2017 in the year filter and months 1 and 2 in the month filter I should get 0 in each cell of the pivot table I am using is this formula correct or is it missing any elements&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528373#M37953</guid>
      <dc:creator>thedalyfella</dc:creator>
      <dc:date>2019-01-09T13:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with more than one condition using the same field and filters associated with the f</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528386#M37957</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use it as follows as simple:&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;month_number- = {"1","2"}&amp;gt;}trans_amount)&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Arvind Patil&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528386#M37957</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2019-01-09T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with more than one condition using the same field and filters associated with the f</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528397#M37959</link>
      <description>what do you get instead of 0 as result ?</description>
      <pubDate>Wed, 09 Jan 2019 13:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528397#M37959</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2019-01-09T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with more than one condition using the same field and filters associated with the f</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528510#M37972</link>
      <description>&lt;P&gt;Thanks &lt;SPAN&gt;Arvind &lt;/SPAN&gt;for the reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's moving me in the right direction&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested it out and&amp;nbsp;&lt;SPAN&gt;when I select 2017 in the filter associated with trans_amount i get 0 for each trans_amount in the my pivot table but&amp;nbsp;&lt;/SPAN&gt;when I select 2018 in the filter I still get 0 for each trans_amount I should really get negative numbers as there are values in the first two months of 2017 but no values in the first two months of 2018&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression I'm using is&amp;nbsp;&lt;/P&gt;&lt;P&gt;if($(vCurrent_Month)=2,&lt;BR /&gt;Sum({&amp;lt;month_number = {1,2}&amp;gt;}trans_amount) -&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;year_end = {2017}&amp;gt;} {&amp;lt;month_number = {1,2}&amp;gt;}trans_amount),&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528510#M37972</guid>
      <dc:creator>thedalyfella</dc:creator>
      <dc:date>2019-01-09T16:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with more than one condition using the same field and filters associated with the f</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528789#M38004</link>
      <description>Dear Mark,&lt;BR /&gt;&lt;BR /&gt;Kindly share sample table and expected output for better help.&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Arvind Patil</description>
      <pubDate>Thu, 10 Jan 2019 08:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528789#M38004</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2019-01-10T08:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with more than one condition using the same field and filters associated with the f</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528827#M38009</link>
      <description>&lt;DIV&gt;Hi&amp;nbsp;&lt;SPAN&gt;Arvind,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I had another look my expression and figured it out&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if($(vCurrent_Month)=2,&lt;/DIV&gt;&lt;DIV&gt;Sum({$&amp;lt;month_number = {1}&amp;gt;}trans_amount) - Sum({&amp;lt;year_end = {$(vTwo_Years_Ago)},month_number = {1,2}&amp;gt;} trans_amount),&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;two conditions are inside the one pair of {&amp;lt; &amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&amp;lt;year_end = {$(vTwo_Years_Ago)},month_number = {1,2}&amp;gt;} two conditions are inside the one pair of {&amp;lt; &amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;as apposed to each condition in its own {&amp;lt; &amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&amp;lt;year_end = {$(vTwo_Years_Ago)}} {&amp;lt;month_number = {1,2}&amp;gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks Again Arvind for your help, you got me thinking in the right direction&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;All the Best&lt;/DIV&gt;&lt;DIV&gt;Mark&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jan 2019 09:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-more-than-one-condition-using-the-same-field/m-p/1528827#M38009</guid>
      <dc:creator>thedalyfella</dc:creator>
      <dc:date>2019-01-10T09:29:11Z</dc:date>
    </item>
  </channel>
</rss>

