<?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: adding expressions with date calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514923#M1131563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make a variable for eventstartdate with number date format&amp;nbsp; as alike then compare it to OrderDate &lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vEventstartDate = num(EventStartdate) and in expression side write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(num(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;OrderDate)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;=((vEventstartDate) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;+ 30) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; num(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;OrderDate)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &amp;gt;= vEventstartDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ExtSellingPrice&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hope it helps &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 09:38:14 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-12-02T09:38:14Z</dc:date>
    <item>
      <title>adding expressions with date calculations</title>
      <link>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514922#M1131562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi, I'm new to qlikview and would like to do something I think should be working but isn't.&amp;nbsp; I'm sure I'm missing some basic understanding of why this won't work, so any help is appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have dimensions that are Event, Customer, Products Purchased.&amp;nbsp; I also would like to also allow further drilldown to what orders those products were purchased on as it may span several but isn't necessary if it's not possible. Then I have 1 expression with a calculation of '&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ExtSellingPrice&lt;/SPAN&gt;)' which is the ExtendedPrice (sales $ of those Products Purchased).&amp;nbsp; That calculation works fine and has subtotals, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am now trying to add multiple calculated expressions that would then break the dollars out into 'buckets' within a date range.&amp;nbsp; So the next column would be ExtendedPrice of products purchased within 30 days of Event date (and then another for 60 days, etc).&amp;nbsp; I added an expression with a calculation of '&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt; &amp;lt;= &lt;SPAN style="color: #800000;"&gt;EventStartDate + 30 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt; &amp;gt;= &lt;SPAN style="color: #800000;"&gt;EventStartDate&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ExtSellingPrice&lt;/SPAN&gt;)) '&amp;nbsp; but I never get a return value, just a '-'.&amp;nbsp; I've tried adding date functions around each piece, but that doesn't seem to work.&amp;nbsp; Is something like this possible as it would be with other reporting tools or should I be doing it another way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 09:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514922#M1131562</guid>
      <dc:creator />
      <dc:date>2013-12-02T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: adding expressions with date calculations</title>
      <link>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514923#M1131563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make a variable for eventstartdate with number date format&amp;nbsp; as alike then compare it to OrderDate &lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vEventstartDate = num(EventStartdate) and in expression side write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(num(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;OrderDate)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;=((vEventstartDate) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;+ 30) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; num(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;OrderDate)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &amp;gt;= vEventstartDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ExtSellingPrice&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hope it helps &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 09:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514923#M1131563</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-12-02T09:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: adding expressions with date calculations</title>
      <link>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514924#M1131564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I'd like to try this.&amp;nbsp; Where do I define that variable?&amp;nbsp; In the load script somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 09:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514924#M1131564</guid>
      <dc:creator />
      <dc:date>2013-12-02T09:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: adding expressions with date calculations</title>
      <link>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514925#M1131565</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;Can you attach some sample qlikview file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 10:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514925#M1131565</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-02T10:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: adding expressions with date calculations</title>
      <link>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514926#M1131566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on Front End Side&lt;/P&gt;&lt;P&gt;in Variable Overview add Variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 12:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-expressions-with-date-calculations/m-p/514926#M1131566</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-12-02T12:13:47Z</dc:date>
    </item>
  </channel>
</rss>

