<?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: Year to Date - comparing set (dimensionless expressions?) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582666#M216395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if I understood correctly, If not just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the answer you need is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALUE_DATE&lt;/SPAN&gt;&amp;lt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"31.12.2013"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALUE_DATE-={"31.12.2013"}&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALUE&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2014 23:48:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-31T23:48:31Z</dc:date>
    <item>
      <title>Year to Date - comparing set (dimensionless expressions?)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582665#M216394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding YTD calculations. I have spent some time now on this forum but I haven't found exactly what I am looking for. (Maybe it is not a YTD question after all, but it is a YTD problem for me).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a table like this (simplified):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE_DATE&lt;/P&gt;&lt;P&gt;&amp;lt;many other dimensions&amp;gt;&lt;/P&gt;&lt;P&gt;VALUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to acheive is something like SUM({$}VALUE) - SUM({$&amp;lt;VALUE_DATE={"31.12.2013"}&amp;gt;}VALUE).&lt;/P&gt;&lt;P&gt;The problem is to create an expression showing this (with VALUE_DATE as dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create an expression for the first leg of the expression. I can also do the same for the second leg, but then I get only a single point which is as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have solved it by adding an addition column to the table in the load script (EOY_VALUE) which is the value from 31.12.2013 for the matching dimensions, but is there anything I can do in the graph expression to acheive this so we don't have to set up a join in the load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 21:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582665#M216394</guid>
      <dc:creator>ronnywaage</dc:creator>
      <dc:date>2014-03-31T21:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date - comparing set (dimensionless expressions?)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582666#M216395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if I understood correctly, If not just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the answer you need is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALUE_DATE&lt;/SPAN&gt;&amp;lt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"31.12.2013"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALUE_DATE-={"31.12.2013"}&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALUE&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 23:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582666#M216395</guid>
      <dc:creator />
      <dc:date>2014-03-31T23:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date - comparing set (dimensionless expressions?)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582667#M216396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your answer, and sorry for a bad formulated case from my&lt;BR /&gt;side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to achieve is that I want to subtract the values from the&lt;BR /&gt;31.12.2013 from all other days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let’s say that the value 31&lt;SUP&gt;st&lt;/SUP&gt; of Dec is 5. Then I want to&lt;BR /&gt;subtract 5 from all other days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So for the 1&lt;SUP&gt;st&lt;/SUP&gt; of Jan I&lt;BR /&gt;want to see the sum of the 1&lt;SUP&gt;st&lt;/SUP&gt; of Jan – 5 (the sum of the 31&lt;SUP&gt;st&lt;/SUP&gt;&lt;BR /&gt;Dec), and the same for Jan 2&lt;SUP&gt;nd&lt;/SUP&gt; where I also want to see sum of 2&lt;SUP&gt;nd&lt;/SUP&gt;&lt;BR /&gt;of Jan – 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 10:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582667#M216396</guid>
      <dc:creator>ronnywaage</dc:creator>
      <dc:date>2014-04-01T10:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date - comparing set (dimensionless expressions?)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582668#M216397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I see Roony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do that you need to declare a variable with the expression you are going to substract. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#december31Value&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;VALUE_DATE={"31.12.2013"}&lt;/SPAN&gt;&amp;gt;}VALUE)&lt;/P&gt;&lt;P&gt;// Do not forget to put the "equal symbol" before the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you need to put this variable into your expression calculation:&lt;/P&gt;&lt;P&gt;Sum(VALUE) - #december31Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work for your exact example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 13:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582668#M216397</guid>
      <dc:creator />
      <dc:date>2014-04-01T13:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date - comparing set (dimensionless expressions?)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582669#M216398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. I was really an "eye-opener".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem solved, working perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 16:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582669#M216398</guid>
      <dc:creator>ronnywaage</dc:creator>
      <dc:date>2014-04-01T16:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date - comparing set (dimensionless expressions?)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582670#M216399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear it worked solving your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 19:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-comparing-set-dimensionless-expressions/m-p/582670#M216399</guid>
      <dc:creator />
      <dc:date>2014-04-01T19:27:55Z</dc:date>
    </item>
  </channel>
</rss>

