<?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 Using set analysis without selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367638#M828283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've been trying to resolve this all day. I've looked at the boards, but was unable to find the answer i needed.&lt;/P&gt;&lt;P&gt;Hopefully someone can help me.&lt;/P&gt;&lt;P&gt;In the expression below I would like to always to show the current month (fMonth) regardless whether it's selected or not&lt;/P&gt;&lt;P&gt;I'm using a fiscal calendar so i'm not sure if that makes a difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;aggr(Sum({&amp;lt;fYear={$(=Only(fYear))},fMonth={$(=max(fMonth))},Salesman=$::Salesman&amp;gt;}PartsAmt)+ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;fYear={$(=Only(fYear))},fMonth={$(=max(fMonth))},Salesman=$::Salesman&amp;gt;}EqupAmt) + &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;fYear={$(=Only(fYear))},fMonth={$(=max(fMonth))},Salesman=$::Salesman&amp;gt;}LaborAmt),Day) /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(DISTINCT(InvoiceNumber))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>jjking58</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367638#M828283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've been trying to resolve this all day. I've looked at the boards, but was unable to find the answer i needed.&lt;/P&gt;&lt;P&gt;Hopefully someone can help me.&lt;/P&gt;&lt;P&gt;In the expression below I would like to always to show the current month (fMonth) regardless whether it's selected or not&lt;/P&gt;&lt;P&gt;I'm using a fiscal calendar so i'm not sure if that makes a difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;aggr(Sum({&amp;lt;fYear={$(=Only(fYear))},fMonth={$(=max(fMonth))},Salesman=$::Salesman&amp;gt;}PartsAmt)+ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;fYear={$(=Only(fYear))},fMonth={$(=max(fMonth))},Salesman=$::Salesman&amp;gt;}EqupAmt) + &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;fYear={$(=Only(fYear))},fMonth={$(=max(fMonth))},Salesman=$::Salesman&amp;gt;}LaborAmt),Day) /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(DISTINCT(InvoiceNumber))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367638#M828283</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367639#M828284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;aggr(Sum({&amp;lt;fYear={$(=Only(fYear))},&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;fMonth&lt;/SPAN&gt;= {$(=Month(Today()))}&lt;/STRONG&gt;,Salesman=$::Salesman&amp;gt;}PartsAmt)+&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;fYear={$(=Only(fYear))},&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;fMonth&lt;/SPAN&gt;= {$(=Month(Today()))}&lt;/STRONG&gt;,Salesman=$::Salesman&amp;gt;}EqupAmt) +&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;fYear={$(=Only(fYear))},&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;fMonth&lt;/SPAN&gt;= {$(=Month(Today()))}&lt;/STRONG&gt;,Salesman=$::Salesman&amp;gt;}LaborAmt),Day) /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(DISTINCT(InvoiceNumber))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 19:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367639#M828284</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-27T19:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367640#M828285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First possible issue: Only(fYear) will only return a value if there is only one year possible. If nothing is selected, are there more than one year possible? If yes and to be on the safe side in any case, use Max(fYear) also for fYear modifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 19:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367640#M828285</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-27T19:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367641#M828286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Second possible issue (like Frank also noticed): The max possible fMonth value might not be available in the max fYear.&lt;/P&gt;&lt;P&gt;Like for this year, max month could be June, while December might be a possible value for last year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's better to use set modifier on the needed granularity, i.e. Month-Year field, and clear selections in all other fields that might interfere (or use set identifier 1).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 19:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367641#M828286</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-27T19:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367642#M828287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see also&lt;/P&gt;&lt;P&gt;&lt;A href="https://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting" title="https://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting"&gt;https://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 19:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367642#M828287</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-27T19:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367643#M828288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried Franks suggesting and now i'm not showing any data. The original code worked as long as I selected a month from the list under fMonth. How can I force the month without selecting it is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 19:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367643#M828288</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2017-06-27T19:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367644#M828289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;how does the values of your fmonth field look like? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;can you upload your qvw (scrambled)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 07:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367644#M828289</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-28T07:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis without selection</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367645#M828290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;attached sample might be helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({1}aggr(Sum({1&amp;lt;fyear={'$(=Year(Today()))'},fmonth={'$(=Month(Today()))'}&amp;gt;}PartsAmt) +&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({1&amp;lt;fyear={'$(=Year(Today()))'},fmonth={'$(=Month(Today()))'}&amp;gt;}EqupAmt) +&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({1&amp;lt;fyear={'$(=Year(Today()))'},fmonth={'$(=Month(Today()))'}&amp;gt;}LaborAmt) ,Day))/&lt;/P&gt;&lt;P&gt;&amp;nbsp; count({1}DISTINCT(InvoiceNumber))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-without-selection/m-p/1367645#M828290</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-28T08:07:57Z</dc:date>
    </item>
  </channel>
</rss>

