<?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: Call null field with zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-null-field-with-zero/m-p/1733360#M592580</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;Fact:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;DATE, PRODUCT, COMPONENT, QTY&lt;BR /&gt;07/27/2020,58455,5845501,50&lt;BR /&gt;07/27/2020,58455,5845502,60&lt;BR /&gt;07/28/2020,58455,5845501,100&lt;BR /&gt;07/28/2020,58455,5845502,100&lt;BR /&gt;07/28/2020,58455,5845503,55&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Register:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;PRODUCT, COMPONENT&lt;BR /&gt;58455,5845501&lt;BR /&gt;58455,5845502&lt;BR /&gt;58455,5845503&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;FOR Each vDate in FieldValueList('DATE')&lt;BR /&gt;&lt;BR /&gt;Fact_tmp:&lt;BR /&gt;load Distinct COMPONENT&lt;BR /&gt;Resident Register;&lt;BR /&gt;&lt;BR /&gt;Join(Fact_tmp)&lt;BR /&gt;LOAD *&lt;BR /&gt;Resident Fact&lt;BR /&gt;where DATE = '$(vDate)';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Fact_final:&lt;BR /&gt;LOAD *,&lt;BR /&gt;if(IsNull(DATE), Date#('$(vDate)','DD/MM/YYYY'), DATE) as NEW_DATE,&lt;BR /&gt;if(IsNull(DATE), 0, QTY) as NEW_QTY&lt;BR /&gt;Resident Fact_tmp;&lt;BR /&gt;&lt;BR /&gt;Drop Table Fact_tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next vDate&lt;/P&gt;&lt;P&gt;Drop Table Fact;&lt;/P&gt;&lt;P&gt;RENAME Table Fact_final to Fact;&lt;BR /&gt;DROP Fields DATE,QTY from Fact;&lt;/P&gt;&lt;P&gt;RENAME Field NEW_DATE to DATE;&lt;BR /&gt;RENAME Field NEW_QTY to QTY;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 10:32:13 GMT</pubDate>
    <dc:creator>jmmolero</dc:creator>
    <dc:date>2020-08-05T10:32:13Z</dc:date>
    <item>
      <title>Call null field with zero</title>
      <link>https://community.qlik.com/t5/QlikView/Call-null-field-with-zero/m-p/1731510#M592579</link>
      <description>&lt;P&gt;Mr. My question is very simple to solve in Excel, but in Qlik I can't get a solution, I hope to solve it here.&lt;/P&gt;&lt;P&gt;I am trying to place the "COMPONENT" that is not listed on that day within the Fact table, bringing it with "QTY" = 0.&lt;/P&gt;&lt;P&gt;That in the example below, it would be COMPONENT = 5845503 on DATE = 27/07/2020 because it is the only one missing.&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;DATE, PRODUCT, COMPONENT, QTY&lt;BR /&gt;07/27 / 2020.58455,5845501.50&lt;BR /&gt;07/27/2020,58455,5845502,60&lt;BR /&gt;07/28 / 2020,58455,5845501,100&lt;BR /&gt;07/28 / 2020,58455,5845502,100&lt;BR /&gt;07/28 / 2020,58455,5845503,55&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Register:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;PRODUCT, COMPONENT&lt;BR /&gt;58455,5845501&lt;BR /&gt;58455,5845502&lt;BR /&gt;58455,5845503&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 19:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-null-field-with-zero/m-p/1731510#M592579</guid>
      <dc:creator>Thiago_Adriano</dc:creator>
      <dc:date>2020-07-28T19:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Call null field with zero</title>
      <link>https://community.qlik.com/t5/QlikView/Call-null-field-with-zero/m-p/1733360#M592580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;Fact:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;DATE, PRODUCT, COMPONENT, QTY&lt;BR /&gt;07/27/2020,58455,5845501,50&lt;BR /&gt;07/27/2020,58455,5845502,60&lt;BR /&gt;07/28/2020,58455,5845501,100&lt;BR /&gt;07/28/2020,58455,5845502,100&lt;BR /&gt;07/28/2020,58455,5845503,55&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Register:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;PRODUCT, COMPONENT&lt;BR /&gt;58455,5845501&lt;BR /&gt;58455,5845502&lt;BR /&gt;58455,5845503&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;FOR Each vDate in FieldValueList('DATE')&lt;BR /&gt;&lt;BR /&gt;Fact_tmp:&lt;BR /&gt;load Distinct COMPONENT&lt;BR /&gt;Resident Register;&lt;BR /&gt;&lt;BR /&gt;Join(Fact_tmp)&lt;BR /&gt;LOAD *&lt;BR /&gt;Resident Fact&lt;BR /&gt;where DATE = '$(vDate)';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Fact_final:&lt;BR /&gt;LOAD *,&lt;BR /&gt;if(IsNull(DATE), Date#('$(vDate)','DD/MM/YYYY'), DATE) as NEW_DATE,&lt;BR /&gt;if(IsNull(DATE), 0, QTY) as NEW_QTY&lt;BR /&gt;Resident Fact_tmp;&lt;BR /&gt;&lt;BR /&gt;Drop Table Fact_tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next vDate&lt;/P&gt;&lt;P&gt;Drop Table Fact;&lt;/P&gt;&lt;P&gt;RENAME Table Fact_final to Fact;&lt;BR /&gt;DROP Fields DATE,QTY from Fact;&lt;/P&gt;&lt;P&gt;RENAME Field NEW_DATE to DATE;&lt;BR /&gt;RENAME Field NEW_QTY to QTY;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-null-field-with-zero/m-p/1733360#M592580</guid>
      <dc:creator>jmmolero</dc:creator>
      <dc:date>2020-08-05T10:32:13Z</dc:date>
    </item>
  </channel>
</rss>

