<?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 Problem with writing an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-an-expression/m-p/4311#M792689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QlikView I wrote the following expression to sum the quantity of all orders that are after a certain date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum ({$&amp;lt;DATE={"&amp;gt;=29.Nov.2017"}&amp;gt;}QUANTITY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now I try to change the certain date (29.Nov.2017) with an expression that will calculate a past date dynamicaly based on another number field in the table (COLUMN2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(today()- "COLUMN2",'DD.MMM.YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;each expression is working independently but when I try to combine them like below it doesnt work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum ({$&amp;lt;DATE={"&amp;gt;=&lt;SPAN style="color: #ff0000;"&gt;{"&lt;STRONG&gt;date(today()- "COLUMN2",'DD.MMM.YYYY')&lt;/STRONG&gt;"}&lt;/SPAN&gt;"}&amp;gt;}QUANTITY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure I don't write the combined expressions in the correct way but I don't know what I do wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance to anybody that can point me in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>germanmarket</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Problem with writing an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-an-expression/m-p/4311#M792689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QlikView I wrote the following expression to sum the quantity of all orders that are after a certain date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum ({$&amp;lt;DATE={"&amp;gt;=29.Nov.2017"}&amp;gt;}QUANTITY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now I try to change the certain date (29.Nov.2017) with an expression that will calculate a past date dynamicaly based on another number field in the table (COLUMN2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(today()- "COLUMN2",'DD.MMM.YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;each expression is working independently but when I try to combine them like below it doesnt work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum ({$&amp;lt;DATE={"&amp;gt;=&lt;SPAN style="color: #ff0000;"&gt;{"&lt;STRONG&gt;date(today()- "COLUMN2",'DD.MMM.YYYY')&lt;/STRONG&gt;"}&lt;/SPAN&gt;"}&amp;gt;}QUANTITY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure I don't write the combined expressions in the correct way but I don't know what I do wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance to anybody that can point me in the right direction.&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/Problem-with-writing-an-expression/m-p/4311#M792689</guid>
      <dc:creator>germanmarket</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-an-expression/m-p/4312#M792690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cornel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the dollar-sign expansion for the nested expression in the Set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; DATE = {"&amp;gt;=$(=date(today()-"COLUMN2",'DD.MMM.YYYY'))"} &amp;gt;} QUANTITY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Radovan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-an-expression/m-p/4312#M792690</guid>
      <dc:creator>RadovanOresky</dc:creator>
      <dc:date>2018-01-22T21:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with writing an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-writing-an-expression/m-p/4313#M792691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better to remove double quotes from field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 00:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-writing-an-expression/m-p/4313#M792691</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-23T00:05:49Z</dc:date>
    </item>
  </channel>
</rss>

