<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924567#M969561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am looking for some help in understanding the below set analysis expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In one of our dashboard we have created variables as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;vPriorYearDate&lt;/SPAN&gt;= &lt;SPAN style="color: #0000ff;"&gt;addyears&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Report Date]&lt;/SPAN&gt;), -1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vLastYearMTD= &amp;gt; &lt;SPAN style="color: #800000;"&gt;[Report Date]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; MonthStart(vPriorYearDate) &amp;amp; '&amp;lt;=' &amp;amp; vPriorYearDate)"&lt;/SPAN&gt;}, Month=, Year=,Quarter= &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;An in the UI we are creating a metric using the below formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;MTD $(&lt;SPAN style="font-size: 10pt;"&gt;vPreviousYear &lt;/SPAN&gt;)'&amp;nbsp;&amp;nbsp; = &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(&lt;SPAN style="font-size: 10pt;"&gt;vLastYearMTD&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&amp;gt;}&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;[Invoice Recognized]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understood, the &lt;SPAN style="font-size: 10pt;"&gt;MTD $(&lt;SPAN style="font-size: 10pt;"&gt;vPreviousYear &lt;/SPAN&gt;)'&lt;/SPAN&gt; metric should not be effected by any filters on Month , Year and Quarter, but my results are getting effected by the selections made on Year, Month and Quarter. In this case my Month ,Year, Quarter are created in master calendar based on invoiceDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Heera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2015 14:26:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-23T14:26:06Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924567#M969561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am looking for some help in understanding the below set analysis expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In one of our dashboard we have created variables as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;vPriorYearDate&lt;/SPAN&gt;= &lt;SPAN style="color: #0000ff;"&gt;addyears&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Report Date]&lt;/SPAN&gt;), -1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vLastYearMTD= &amp;gt; &lt;SPAN style="color: #800000;"&gt;[Report Date]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; MonthStart(vPriorYearDate) &amp;amp; '&amp;lt;=' &amp;amp; vPriorYearDate)"&lt;/SPAN&gt;}, Month=, Year=,Quarter= &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;An in the UI we are creating a metric using the below formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;MTD $(&lt;SPAN style="font-size: 10pt;"&gt;vPreviousYear &lt;/SPAN&gt;)'&amp;nbsp;&amp;nbsp; = &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(&lt;SPAN style="font-size: 10pt;"&gt;vLastYearMTD&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&amp;gt;}&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;[Invoice Recognized]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understood, the &lt;SPAN style="font-size: 10pt;"&gt;MTD $(&lt;SPAN style="font-size: 10pt;"&gt;vPreviousYear &lt;/SPAN&gt;)'&lt;/SPAN&gt; metric should not be effected by any filters on Month , Year and Quarter, but my results are getting effected by the selections made on Year, Month and Quarter. In this case my Month ,Year, Quarter are created in master calendar based on invoiceDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Heera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 14:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924567#M969561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-23T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924568#M969562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your selections in Month, Year, and Quarter probably have an effect on the vPriorYearDate variable, thus also on MTD prev year variable. For previous year calculation, you need to clear the selections in calendar fields to have a consistent selection (i.e. to avoid having a Report Date selection in prev year range, but current year Year selection).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 14:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924568#M969562</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-23T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924569#M969563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;vPriorYearDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;addyears&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;({&amp;lt;Month=,Year=,Quarter=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Report Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;), -1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 14:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924569#M969563</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-09-23T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924570#M969564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;swuehl,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;I am really sorry I don't think I understood you, can you please elaborate your answer..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;heera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 14:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924570#M969564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-23T14:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924571#M969565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you select a Month and a Year, does vPriorYearDate change as well? And is this intended (I assume it is)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this variable changes, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vLastYearMTD will change as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 16:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/924571#M969565</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-23T16:32:34Z</dc:date>
    </item>
  </channel>
</rss>

