<?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: Creating a list table based on two or more tables and using Is Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005373#M649182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;If (len (dischargedate)&amp;gt;0,num (dischargedate)-num (admitdate),num (today ())-num (admitdate)) as LOS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 15:39:49 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2015-09-09T15:39:49Z</dc:date>
    <item>
      <title>Creating a list table based on two or more tables and using Is Null</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005372#M649181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I could get some guidance on how to create a table by creating a new column in my data.&amp;nbsp; Currently I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AdmitDate, (format: M/D/YYYY)&lt;/P&gt;&lt;P&gt;DischargeDate (format: M/D/YYYY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a LOS (length of stay) column that is based on the Admit and Discharge Dates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOS = DischargeDate - AdmitDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, if the DischargeDate column is NULL (or empty: no discharge date), then the LOS would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOS= TODAY - AdmitDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do this in the load script, but do not know the syntax to use.&amp;nbsp; Any help is very appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 15:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005372#M649181</guid>
      <dc:creator />
      <dc:date>2015-09-09T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list table based on two or more tables and using Is Null</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005373#M649182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;If (len (dischargedate)&amp;gt;0,num (dischargedate)-num (admitdate),num (today ())-num (admitdate)) as LOS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 15:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005373#M649182</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-09-09T15:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list table based on two or more tables and using Is Null</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005374#M649183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;alt(DischargeDate - AdmitDate, today() - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AdmitDate)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 15:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005374#M649183</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-09T15:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list table based on two or more tables and using Is Null</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005375#M649184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this worked like a charm!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 16:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005375#M649184</guid>
      <dc:creator />
      <dc:date>2015-09-09T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list table based on two or more tables and using Is Null</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005376#M649185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works as well!&amp;nbsp; Thank you, now I have two options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 16:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-list-table-based-on-two-or-more-tables-and-using-Is/m-p/1005376#M649185</guid>
      <dc:creator />
      <dc:date>2015-09-09T16:09:53Z</dc:date>
    </item>
  </channel>
</rss>

