<?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: difference in days in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680482#M246735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with your solution but it is showing '-' in the table column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 11:11:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-08T11:11:49Z</dc:date>
    <item>
      <title>difference in days in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680480#M246733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a requirement as follows:&lt;/P&gt;&lt;P&gt;i have a data in straight table with 3 columns old brand,new brand and their brand dates.&lt;/P&gt;&lt;P&gt;Now i want one more column as difference in days when compared to below row date in a date column.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 331px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" width="64"&gt;old&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;new&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="84"&gt;date&lt;/TD&gt;&lt;TD class="xl70" style="border-left: none;" width="119"&gt;difference(Days)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;prod a&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;ban a&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;24/06/2014&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;prod b&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;ban b&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;08/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;prod c&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;ban c&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;08/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;prod d&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;ban d&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;05/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;prod e&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;bane&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;27/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;prod f&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;ban f&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;05/09/2014&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;prod g&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;ban g&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;09/09/2014&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; In the above table, i want to show difference(Days) column in qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680480#M246733</guid>
      <dc:creator />
      <dc:date>2014-10-08T10:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: difference in days in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680481#M246734</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;Use Interval(DateField-below(DateField),'D')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680481#M246734</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-08T11:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: difference in days in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680482#M246735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with your solution but it is showing '-' in the table column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680482#M246735</guid>
      <dc:creator />
      <dc:date>2014-10-08T11:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: difference in days in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680483#M246736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA. Hope it will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680483#M246736</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-10-08T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: difference in days in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680484#M246737</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Interval(Date(DateField-Above(DateField)),'D')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check DateField Format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680484#M246737</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-08T11:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: difference in days in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680485#M246738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;can anyone help me on this i am missing out something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680485#M246738</guid>
      <dc:creator />
      <dc:date>2014-10-08T12:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference in days in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680486#M246739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The basic expression is as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; below( total Date,1,1) - Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'TOTAL' is key so that it looks over all dimensions and not restricted to the current rows dimensional value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure your values are read as a date you below( total Date,1,1) - Date can try the following as well based on the format you posted above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below (&amp;nbsp; total&amp;nbsp; date(date#(Date, 'DD/MM/YYYY')) , 1, 1)&amp;nbsp; -&amp;nbsp; date(date#(Date, 'DD/MM/YYYY'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-in-days-in-straight-table/m-p/680486#M246739</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-08T15:15:24Z</dc:date>
    </item>
  </channel>
</rss>

