<?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: Filtering measures created with alternate states in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filtering-measures-created-with-alternate-states/m-p/1907888#M74829</link>
    <description>&lt;P&gt;Assuming you are making the other selections, like Country, in the default state, just include the default state with the intersection operator:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Sum({Period1 * $}[Sales Amount USD]) -&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Sum({Period2 * $}[Sales Amount USD])&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If you want to make sure your period selections only come from the alternate states, add set modifiers as shown here:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://qlikviewcookbook.com/2016/07/alt-states-merged-selections-tip/" target="_blank" rel="noopener"&gt;https://qlikviewcookbook.com/2016/07/alt-states-merged-selections-tip/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 20:36:22 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2022-03-21T20:36:22Z</dc:date>
    <item>
      <title>Filtering measures created with alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-measures-created-with-alternate-states/m-p/1907865#M74827</link>
      <description>&lt;P&gt;Hello, I have what I hope to be a simple problem:&lt;BR /&gt;&lt;BR /&gt;I created two alternate states:&lt;BR /&gt;&lt;STRONG&gt;Period1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Period2&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I then added the same period dimension to my sheet twice as filter panels and applied the alternate state to each.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I created the following variance measure:&lt;BR /&gt;&lt;STRONG&gt;Sum({Period1}[Sales Amount USD]) -&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Sum({Period2}[Sales Amount USD])&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;This works perfectly and shows me the total sales amount variance between whatever period(s) that I select from the filter panels. This gives flexibility to do several different time period variances without creating multiple set-analysis expressions.&lt;BR /&gt;&lt;BR /&gt;However, now I have the simple request to filter the data. For example, say I want to filter by a country (i.e. US or Canada). How can I filter these measures further?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-measures-created-with-alternate-states/m-p/1907865#M74827</guid>
      <dc:creator>Brysonds</dc:creator>
      <dc:date>2022-03-21T19:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering measures created with alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-measures-created-with-alternate-states/m-p/1907888#M74829</link>
      <description>&lt;P&gt;Assuming you are making the other selections, like Country, in the default state, just include the default state with the intersection operator:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Sum({Period1 * $}[Sales Amount USD]) -&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Sum({Period2 * $}[Sales Amount USD])&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If you want to make sure your period selections only come from the alternate states, add set modifiers as shown here:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://qlikviewcookbook.com/2016/07/alt-states-merged-selections-tip/" target="_blank" rel="noopener"&gt;https://qlikviewcookbook.com/2016/07/alt-states-merged-selections-tip/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 20:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-measures-created-with-alternate-states/m-p/1907888#M74829</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-03-21T20:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering measures created with alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-measures-created-with-alternate-states/m-p/1907900#M74832</link>
      <description>&lt;P&gt;This worked perfectly and thank you for information on the set modifiers!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 21:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-measures-created-with-alternate-states/m-p/1907900#M74832</guid>
      <dc:creator>Brysonds</dc:creator>
      <dc:date>2022-03-21T21:16:49Z</dc:date>
    </item>
  </channel>
</rss>

