<?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 calculated column used in same resident table or not in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698934#M1060476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one transaction QVD like&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;date_enter,&lt;/P&gt;&lt;P&gt;date_close&lt;/P&gt;&lt;P&gt;....,&lt;/P&gt;&lt;P&gt;....,&lt;/P&gt;&lt;P&gt;transaction.qvd&lt;/P&gt;&lt;P&gt;in that QVD I am calculating the duration. duration is in minutes format&lt;/P&gt;&lt;P&gt; SLR:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;interval(date_enter - date_close,'mm') as duration,&lt;/P&gt;&lt;P&gt;if(duration &amp;lt;= 15,'15 minutes',&lt;/P&gt;&lt;P&gt;if(duration &amp;gt;15 and duration&amp;lt;=60 '1 hour',)) as category&lt;/P&gt;&lt;P&gt;resident transaction;&lt;/P&gt;&lt;P&gt;drop table SLR;&lt;/P&gt;&lt;P&gt;my question is duration is calculation syntax is correct or not based on minutes and other question is the calculated column directly used in the same table or not plz tell me anyone....urgent &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 17:04:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-25T17:04:09Z</dc:date>
    <item>
      <title>calculated column used in same resident table or not</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698934#M1060476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one transaction QVD like&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;date_enter,&lt;/P&gt;&lt;P&gt;date_close&lt;/P&gt;&lt;P&gt;....,&lt;/P&gt;&lt;P&gt;....,&lt;/P&gt;&lt;P&gt;transaction.qvd&lt;/P&gt;&lt;P&gt;in that QVD I am calculating the duration. duration is in minutes format&lt;/P&gt;&lt;P&gt; SLR:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;interval(date_enter - date_close,'mm') as duration,&lt;/P&gt;&lt;P&gt;if(duration &amp;lt;= 15,'15 minutes',&lt;/P&gt;&lt;P&gt;if(duration &amp;gt;15 and duration&amp;lt;=60 '1 hour',)) as category&lt;/P&gt;&lt;P&gt;resident transaction;&lt;/P&gt;&lt;P&gt;drop table SLR;&lt;/P&gt;&lt;P&gt;my question is duration is calculation syntax is correct or not based on minutes and other question is the calculated column directly used in the same table or not plz tell me anyone....urgent &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 17:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698934#M1060476</guid>
      <dc:creator />
      <dc:date>2014-09-25T17:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: calculated column used in same resident table or not</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698935#M1060477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use calculated column directly in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SLR:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *,if(duration &amp;lt;= 15,'15 minutes',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(duration &amp;gt;15 and duration&amp;lt;=60 '1 hour',)) as category;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;interval(date_enter - date_close,'mm') as duration&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident transaction;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 17:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698935#M1060477</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-25T17:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: calculated column used in same resident table or not</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698936#M1060478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can't compare the result of the interval function in minutes with the numer 15. The result will display in minutes but the value is in days. So 15 minutes displayed = 15/(60*24) as value. &lt;/P&gt;&lt;P&gt;Maybe it's better to calculate the difference as (date_enter - date_close)*24*60 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have to use a preceding load when you want to re-use a calculated field. &lt;/P&gt;&lt;P&gt;You can't use the newly created field "duration" in the same load. By using a preceding load you can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLR:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(duration &amp;lt;= 15,'15 minutes',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(duration &amp;gt;15 and duration&amp;lt;=60, '1 hour',)) as category&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(date_enter - date_close)*24*60 as duration,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident transaction;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 17:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698936#M1060478</guid>
      <dc:creator>geert_gelade</dc:creator>
      <dc:date>2014-09-25T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: calculated column used in same resident table or not</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698937#M1060479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #002060;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can try something like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt;SLR:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt;interval(Date#('&lt;SPAN style="background: white;"&gt; date_enter&lt;/SPAN&gt;','M/D/YYYY')-Date#('&lt;SPAN style="background: white;"&gt;date_close&lt;/SPAN&gt;','M/D/YYYY'),'mm')&amp;nbsp; as&amp;nbsp; Duration&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt;resident&amp;nbsp; transaction;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt;SLR2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #002060;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #002060;"&gt;if(duration &amp;lt;= 15,'15 minutes',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #002060;"&gt;if(duration &amp;gt;15 and duration&amp;lt;=60 '1 hour',)) as category&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #002060;"&gt;resident SLR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #002060;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #002060;"&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #002060;"&gt;Kiru&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 17:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-column-used-in-same-resident-table-or-not/m-p/698937#M1060479</guid>
      <dc:creator />
      <dc:date>2014-09-25T17:48:24Z</dc:date>
    </item>
  </channel>
</rss>

