<?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 expression compare in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-compare/m-p/412502#M488763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi, Here is my problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Selected Year 2011.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have a customer with no sale in Dec 2011, YTD LY (2010) will only show me sale to Nov, ihave sale in dec 2010.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="26499" class="jive-image" alt="no_sale_20011.png" src="https://community.qlik.com/legacyfs/online/26499_no_sale_20011.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;My expression for YTD LY says &amp;lt;=max(Month) but in this case max month will be Nov.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=only(Year)-1)&lt;/EM&gt;&lt;/STRONG&gt;}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max(Month))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Invoiced&lt;/SPAN&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Qlikview gives me the "correct" values based on the expression, but how should i solve this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The report is dynamic so when i choose for ex okt, okt 2010 will be higlighted in YTD LY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=only(Year)-1)&lt;/EM&gt;&lt;/STRONG&gt;}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max({1} Month))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Invoiced&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;will give me the correct value, but will be static and show me sale Jan-Dec no matter what.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 10:52:12 GMT</pubDate>
    <dc:creator>stabben23</dc:creator>
    <dc:date>2012-12-06T10:52:12Z</dc:date>
    <item>
      <title>Set expression compare</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-compare/m-p/412502#M488763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi, Here is my problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Selected Year 2011.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have a customer with no sale in Dec 2011, YTD LY (2010) will only show me sale to Nov, ihave sale in dec 2010.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="26499" class="jive-image" alt="no_sale_20011.png" src="https://community.qlik.com/legacyfs/online/26499_no_sale_20011.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;My expression for YTD LY says &amp;lt;=max(Month) but in this case max month will be Nov.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=only(Year)-1)&lt;/EM&gt;&lt;/STRONG&gt;}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max(Month))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Invoiced&lt;/SPAN&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Qlikview gives me the "correct" values based on the expression, but how should i solve this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The report is dynamic so when i choose for ex okt, okt 2010 will be higlighted in YTD LY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=only(Year)-1)&lt;/EM&gt;&lt;/STRONG&gt;}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max({1} Month))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Invoiced&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;will give me the correct value, but will be static and show me sale Jan-Dec no matter what.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-compare/m-p/412502#M488763</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2012-12-06T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression compare</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-compare/m-p/412503#M488764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you need? &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=only(Year)-1)&lt;/EM&gt;&lt;/STRONG&gt;}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max({&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=only(Year)-1)&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800000;"&gt;} Month))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Invoiced&lt;/SPAN&gt;)&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 11:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-compare/m-p/412503#M488764</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-06T11:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression compare</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-compare/m-p/412504#M488766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will remember set expression like this in future &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;Works as I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 12:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-compare/m-p/412504#M488766</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2012-12-06T12:17:27Z</dc:date>
    </item>
  </channel>
</rss>

