<?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: Period Comparison in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Period-Comparison/m-p/1521267#M7552</link>
    <description>What do you mean by it throws an error? An error in editor?&lt;BR /&gt;if you put set analysis expression in variable e.g. vSetMTD sometimes the expression editor shows error but it works&lt;BR /&gt;&lt;BR /&gt;try making the entire set as 1 variable. you will get a error message in editor but it works&lt;BR /&gt;e.g.&lt;BR /&gt;count({&amp;lt;$(vSetAnalysis)&amp;gt;}Flags)</description>
    <pubDate>Sat, 15 Dec 2018 04:26:30 GMT</pubDate>
    <dc:creator>dplr-rn</dc:creator>
    <dc:date>2018-12-15T04:26:30Z</dc:date>
    <item>
      <title>Period Comparison</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Period-Comparison/m-p/1521255#M7548</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have defined my period&amp;nbsp; comparison as follows:&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;vSetMTD &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day='&amp;lt;=$(vMaxDay)'},Date=,MonthYear=&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;vSetPreviousMonth&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year={'$(vPriorMonthYear)'},Month={'$(vPriorMonth)'},Day={'&amp;lt;=$(vMaxDay)'},Date=,MonthYear=&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I use it like below it works fine&lt;/DIV&gt;&lt;DIV&gt;count({$&amp;lt;Flags={'MajFlag'},Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},Date=,MonthYear=&amp;gt;}Flags)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But&amp;nbsp; when I try to use it like&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;count({$&amp;lt;Flags={'MajFlag'},$(vSetMTD)&amp;gt;}Flags) it throws an error. Similarly for the&amp;nbsp;&lt;STRONG&gt;vSetPreviousMonth&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I make this to work so that I have to always write:&amp;nbsp; Year={'$(vPriorMonthYear)'},Month={'$(vPriorMonth)'},Day={'&amp;lt;=$(vMaxDay)'},Date=,MonthYear=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Dec 2018 23:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Period-Comparison/m-p/1521255#M7548</guid>
      <dc:creator>zwyne</dc:creator>
      <dc:date>2018-12-14T23:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Period Comparison</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Period-Comparison/m-p/1521267#M7552</link>
      <description>What do you mean by it throws an error? An error in editor?&lt;BR /&gt;if you put set analysis expression in variable e.g. vSetMTD sometimes the expression editor shows error but it works&lt;BR /&gt;&lt;BR /&gt;try making the entire set as 1 variable. you will get a error message in editor but it works&lt;BR /&gt;e.g.&lt;BR /&gt;count({&amp;lt;$(vSetAnalysis)&amp;gt;}Flags)</description>
      <pubDate>Sat, 15 Dec 2018 04:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Period-Comparison/m-p/1521267#M7552</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-12-15T04:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Period Comparison</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Period-Comparison/m-p/1521268#M7553</link>
      <description>&lt;P&gt;see below examples from quick googling&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Piece-of-set-analysis-in-a-variable/td-p/683446" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Piece-of-set-analysis-in-a-variable/td-p/683446&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Variable-in-a-part-of-set-analysis/m-p/932119" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Variable-in-a-part-of-set-analysis/m-p/932119&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 04:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Period-Comparison/m-p/1521268#M7553</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-12-15T04:28:04Z</dc:date>
    </item>
  </channel>
</rss>

