<?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 Set Analysis + Alternate State + Filter Selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Alternate-State-Filter-Selection/m-p/1987358#M81590</link>
    <description>&lt;P&gt;I have two alternate states: C1 and C2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two filters, both of which use the same dimension: [Sold Month Year] - which is a monthname([Sold Date]) in the data load editor. I apply C1 and C2 to the filters even though they are the same dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I filter C1, I choose Sep 2021, Oct 2021, and Nov 2021.&lt;/P&gt;
&lt;P&gt;When I filter C2, I choose Dec 2021, Jan 2022, and Feb 2022.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to count the number of tickets like this:&lt;/P&gt;
&lt;P&gt;SUM({"C2" &amp;lt;[transaction_type]={'PAYMENT'}&amp;gt;} Ticket_Cnt)&lt;/P&gt;
&lt;P&gt;But I want the calculated measure to only get me the minimum (or earliest month) - which is Dec 2021 figures only.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I ensure that the measure takes into account for the selection?&lt;/P&gt;
&lt;P&gt;I have tried this:&lt;/P&gt;
&lt;P&gt;SUM({"C2" &amp;lt;[trans_type]={'PAYMENT'}, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[Sold Month Year] = {"MONTHNAME(=DATE(Min([Transaction Month Year]),'MMM YYYY'))"}&lt;/STRONG&gt; &lt;/FONT&gt; &amp;gt;} txn_cnt)&lt;/P&gt;
&lt;P&gt;But it does not work.&lt;/P&gt;
&lt;P&gt;Not sure what I can do - can anyone assist?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 02:38:49 GMT</pubDate>
    <dc:creator>calvintang</dc:creator>
    <dc:date>2022-09-30T02:38:49Z</dc:date>
    <item>
      <title>Set Analysis + Alternate State + Filter Selection</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Alternate-State-Filter-Selection/m-p/1987358#M81590</link>
      <description>&lt;P&gt;I have two alternate states: C1 and C2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two filters, both of which use the same dimension: [Sold Month Year] - which is a monthname([Sold Date]) in the data load editor. I apply C1 and C2 to the filters even though they are the same dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I filter C1, I choose Sep 2021, Oct 2021, and Nov 2021.&lt;/P&gt;
&lt;P&gt;When I filter C2, I choose Dec 2021, Jan 2022, and Feb 2022.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to count the number of tickets like this:&lt;/P&gt;
&lt;P&gt;SUM({"C2" &amp;lt;[transaction_type]={'PAYMENT'}&amp;gt;} Ticket_Cnt)&lt;/P&gt;
&lt;P&gt;But I want the calculated measure to only get me the minimum (or earliest month) - which is Dec 2021 figures only.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I ensure that the measure takes into account for the selection?&lt;/P&gt;
&lt;P&gt;I have tried this:&lt;/P&gt;
&lt;P&gt;SUM({"C2" &amp;lt;[trans_type]={'PAYMENT'}, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[Sold Month Year] = {"MONTHNAME(=DATE(Min([Transaction Month Year]),'MMM YYYY'))"}&lt;/STRONG&gt; &lt;/FONT&gt; &amp;gt;} txn_cnt)&lt;/P&gt;
&lt;P&gt;But it does not work.&lt;/P&gt;
&lt;P&gt;Not sure what I can do - can anyone assist?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 02:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Alternate-State-Filter-Selection/m-p/1987358#M81590</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-09-30T02:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis + Alternate State + Filter Selection</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Alternate-State-Filter-Selection/m-p/1987360#M81591</link>
      <description>&lt;P&gt;SUM({"C2" &amp;lt;[trans_type]={'PAYMENT'},&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[Sold Month Year] = {"MONTHNAME(=DATE(Min([Sold Month Year]),'MMM YYYY'))"}&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;gt;} txn_cnt)&lt;/P&gt;
&lt;P&gt;Sorry, I meant I tried this ^ and it did not work.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 02:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Alternate-State-Filter-Selection/m-p/1987360#M81591</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-09-30T02:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis + Alternate State + Filter Selection</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Alternate-State-Filter-Selection/m-p/1987365#M81592</link>
      <description>&lt;P&gt;Solved it!&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;MIN(AGGR(SUM({"C2"&amp;lt;[trans_type]={'PAYMENT'}&amp;gt;} txn_cnt),[Transaction Month Year]),)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 03:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Alternate-State-Filter-Selection/m-p/1987365#M81592</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-09-30T03:48:28Z</dc:date>
    </item>
  </channel>
</rss>

