<?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: Second Set Expression to add second filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506009#M104075</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155877"&gt;@Qlik007&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To make our set analysis much easier, I would create a flag in the script to allow me to build my set analysis like this:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;region_name={'Americas'}, closedMonthsFlag={1}&amp;gt;} Dollar_value)&lt;/P&gt;
&lt;P&gt;if the script, I would do something like this:&lt;/P&gt;
&lt;P&gt;if(floor(makedate(Year, num(Month),01)) &amp;lt; floor(monthstart(today())), 1, 0) as&amp;nbsp;closedMonthsFlag&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Goncalo Pereira&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 23:25:15 GMT</pubDate>
    <dc:creator>goncalo_ricardo_pereira</dc:creator>
    <dc:date>2025-02-14T23:25:15Z</dc:date>
    <item>
      <title>Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506004#M104074</link>
      <description>&lt;P&gt;I have one big tables with order related fields&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in KPI i need to show sales by region&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am showing sum of product sold by region &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Master item&amp;nbsp; = sum({&amp;lt;region_name= { ‘Americas’}&amp;gt;} Dollar_value)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; displaying this in graph where X axis is ( YEAR &amp;amp;'-'&amp;amp; Month)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y axis - Above master item , with 2 other master item&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now I need to add set expression where it shows all the months data except current month &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i dont have full date but i do have columns(attributes) which gives me month and year separate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;my month filed name is “Month” and year field is called “Year “&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is what i have tried but obviously it doesn’t work &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Month={MonthEnd('$(today()),-1')},&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;region_name= { ‘Americas’}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;} Dollar_value)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 22:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506004#M104074</guid>
      <dc:creator>Qlik007</dc:creator>
      <dc:date>2025-02-14T22:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506009#M104075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155877"&gt;@Qlik007&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To make our set analysis much easier, I would create a flag in the script to allow me to build my set analysis like this:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;region_name={'Americas'}, closedMonthsFlag={1}&amp;gt;} Dollar_value)&lt;/P&gt;
&lt;P&gt;if the script, I would do something like this:&lt;/P&gt;
&lt;P&gt;if(floor(makedate(Year, num(Month),01)) &amp;lt; floor(monthstart(today())), 1, 0) as&amp;nbsp;closedMonthsFlag&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Goncalo Pereira&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 23:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506009#M104075</guid>
      <dc:creator>goncalo_ricardo_pereira</dc:creator>
      <dc:date>2025-02-14T23:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506016#M104081</link>
      <description>&lt;P&gt;Do you have a date field? You can calculate this as&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Date={"&amp;lt;$(=date(monthstart(today()))"}&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;region_name= { ‘Americas’}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;} Dollar_value)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 08:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506016#M104081</guid>
      <dc:creator>morgankejerhag</dc:creator>
      <dc:date>2025-02-15T08:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506049#M104091</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;region_name = {'Americas'},&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Year = {"&amp;lt;$(=Year(Today()))"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;gt;} Dollar_value)&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;Sum({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;region_name = {'Americas'},&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Year = {"=$(=Year(Today()))"},&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Month = {"&amp;lt;$(=Month(Today()))"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;gt;} Doll&lt;SPAN&gt;ar_value)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 14:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506049#M104091</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-02-16T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506055#M104094</link>
      <description>&lt;P&gt;I dont have a date field but my QVD does have a "YYYYMM" field and i am parsing that from SQL database as Date# without the "day" Does that help ?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 17:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506055#M104094</guid>
      <dc:creator>Qlik007</dc:creator>
      <dc:date>2025-02-16T17:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506056#M104095</link>
      <description>&lt;P&gt;Going to try this and update you soon&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 17:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506056#M104095</guid>
      <dc:creator>Qlik007</dc:creator>
      <dc:date>2025-02-16T17:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506398#M104182</link>
      <description>&lt;P&gt;So i tried this, it did take out current month but it also took out everything before current month. what can i do to keep everything but only remove dollar value for current month.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 14:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506398#M104182</guid>
      <dc:creator>Qlik007</dc:creator>
      <dc:date>2025-02-18T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506401#M104184</link>
      <description>&lt;P&gt;I tried this and it gives same results as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35980"&gt;@goncalo_ricardo_pereira&lt;/a&gt;&amp;nbsp;suggested. but that its still not the final visual we want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Quote from previous response "So i tried this, it did take out current month but it also took out everything before current month. what can i do to keep everything but only remove dollar value for current month."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506401#M104184</guid>
      <dc:creator>Qlik007</dc:creator>
      <dc:date>2025-02-18T15:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506463#M104194</link>
      <description>&lt;P&gt;Tried not getting desired value&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 19:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506463#M104194</guid>
      <dc:creator>Qlik007</dc:creator>
      <dc:date>2025-02-18T19:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506465#M104195</link>
      <description>&lt;P&gt;Are you making any user selections at the same time?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 20:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506465#M104195</guid>
      <dc:creator>morgankejerhag</dc:creator>
      <dc:date>2025-02-18T20:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Second Set Expression to add second filter</title>
      <link>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506551#M104212</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155877"&gt;@Qlik007&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this one for prev month, you can also add {1} if you want to ignore user selection.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Date={"&amp;lt;=$(=MonthEnd(AddMonths(today(),-1))"}&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;region_name= { 'Americas'}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;} Dollar_value)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 09:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-Set-Expression-to-add-second-filter/m-p/2506551#M104212</guid>
      <dc:creator>BPiotrowski</dc:creator>
      <dc:date>2025-02-19T09:24:43Z</dc:date>
    </item>
  </channel>
</rss>

