<?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 current selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-current-selections/m-p/860454#M993024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Gysbert.&lt;/P&gt;&lt;P&gt;The first expression works perfectly! I had tried the dollar sign but without the * and in the wrong place it seems.&lt;/P&gt;&lt;P&gt;Ashamed to find out how simple it was... then again I am a Qlik Newbie! &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;Best regards,&lt;/P&gt;&lt;P&gt;Mariana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 10:51:42 GMT</pubDate>
    <dc:creator>mfigueiredo</dc:creator>
    <dc:date>2015-07-01T10:51:42Z</dc:date>
    <item>
      <title>Set Analysis with current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-current-selections/m-p/860452#M993022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I've done research on this topic (and there are plenty on YTD, QTD here on the community) I can't seem to find a solution that helps me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table, with data for each Quarter. I do not have a Quarter field in my Model, and the company doesn't have it as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expressions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'1','2','3'}&amp;gt;} Price)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'1','2','3'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'4','5','6'}&amp;gt;} Price)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'4','5','6'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;and the other expressions change ONLY the months as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91463_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Data is loaded everyday; which means I already have data for June and July.&lt;/P&gt;&lt;P&gt;However, the specific reports I am creating should be sensible to user selections. &lt;/P&gt;&lt;P&gt;What I mean is: while I was making the May Report, June data was already available and included in that Q2 expression. But I don't want June data to be included if I did not select that month.&lt;/P&gt;&lt;P&gt;I need the Q2 expression (and all others) to ONLY include the months the user has selected. If I select the first 5 months, Q1 should represent the average for the first three months and Q2 for ONLY the fourth and fifth month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't aware of this problem until now... Can you help me?&lt;/P&gt;&lt;P&gt;I was hoping to get an expression that solved this, since I only make the charts and do not edit the model or the script at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Mariana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 10:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-current-selections/m-p/860452#M993022</guid>
      <dc:creator>mfigueiredo</dc:creator>
      <dc:date>2015-07-01T10:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-current-selections/m-p/860453#M993023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try intersection with the default state:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&lt;STRONG&gt;$*&lt;/STRONG&gt;&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'4','5','6'}&amp;gt;} Price)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&lt;STRONG&gt;$*&lt;/STRONG&gt;&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'4','5','6'}&amp;gt;} Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or intersection with only the possible Month values from the default state:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'4','5','6'}*P(Month)&amp;gt;} Price)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Year={$(=max(Year))}, MarketCd=-{'PA','SPO','OF','AM','AC'}, Month={'4','5','6'}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;*P(Month)&lt;/SPAN&gt;&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 10:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-current-selections/m-p/860453#M993023</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-01T10:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-current-selections/m-p/860454#M993024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Gysbert.&lt;/P&gt;&lt;P&gt;The first expression works perfectly! I had tried the dollar sign but without the * and in the wrong place it seems.&lt;/P&gt;&lt;P&gt;Ashamed to find out how simple it was... then again I am a Qlik Newbie! &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;Best regards,&lt;/P&gt;&lt;P&gt;Mariana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 10:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-current-selections/m-p/860454#M993024</guid>
      <dc:creator>mfigueiredo</dc:creator>
      <dc:date>2015-07-01T10:51:42Z</dc:date>
    </item>
  </channel>
</rss>

