<?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: Generate Null Values for Every Non Existing Record/Date in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Generate-Null-Values-for-Every-Non-Existing-Record-Date/m-p/2516979#M14865</link>
    <description>&lt;P&gt;You're welcome!&lt;/P&gt;&lt;P&gt;See also&amp;nbsp;&lt;A title="Qlik according to HIC" href="https://www.amazon.com/Qlik-according-HIC-Henric-Cronstr%C3%B6m/dp/9152799263/ref=sr_1_1" target="_blank" rel="noopener"&gt;Qlik according to HIC&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;</description>
    <pubDate>Wed, 07 May 2025 12:19:53 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2025-05-07T12:19:53Z</dc:date>
    <item>
      <title>Generate Null Values for Every Non Existing Record/Date</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Generate-Null-Values-for-Every-Non-Existing-Record-Date/m-p/2516889#M14863</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having a hard time figuring out a way to generate null values for every dimension value that has no record for.&lt;/P&gt;&lt;P&gt;For instance, lets use this as an example:&lt;/P&gt;&lt;P&gt;fruits:&lt;BR /&gt;LOAD * Inline [fruit,date,value&lt;BR /&gt;orange,1,100&lt;BR /&gt;orange,2,200&lt;BR /&gt;orange,3,300&lt;BR /&gt;apple,2,200&lt;BR /&gt;apple,3,300&lt;BR /&gt;apple,5,700&lt;BR /&gt;banana,1,100&lt;BR /&gt;banana,4,400&lt;BR /&gt;banana,5,500&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;date:&lt;BR /&gt;LOAD * Inline [date&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;final:&lt;BR /&gt;LOAD * Inline [fruit,date,value&lt;BR /&gt;orange,1,100&lt;BR /&gt;orange,2,200&lt;BR /&gt;orange,3,300&lt;BR /&gt;orange,4,&lt;BR /&gt;orange,5,&lt;BR /&gt;apple,1,&lt;BR /&gt;apple,2,200&lt;BR /&gt;apple,3,300&lt;BR /&gt;apple,4,&lt;BR /&gt;apple,5,700&lt;BR /&gt;banana,1,100&lt;BR /&gt;banana,2,&lt;BR /&gt;banana,3,&lt;BR /&gt;banana,4,400&lt;BR /&gt;banana,5,500&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table fruits has the transactional data. The date table would be the master calendar that contains all dates (lets use an integer to make it simpler). The table final is the expected result, where all fruits now have null value record for every missing "date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Generate-Null-Values-for-Every-Non-Existing-Record-Date/m-p/2516889#M14863</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2025-05-06T21:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Null Values for Every Non Existing Record/Date</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Generate-Null-Values-for-Every-Non-Existing-Record-Date/m-p/2516890#M14864</link>
      <description>&lt;P&gt;Ok, after reading this topic I've managed to do it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Generating-Missing-Data-In-QlikView/ta-p/1491394?attachment-id=151545" target="_blank"&gt;https://community.qlik.com/t5/Member-Articles/Generating-Missing-Data-In-QlikView/ta-p/1491394?attachment-id=151545&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date:&lt;BR /&gt;LOAD * Inline [date&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;6&lt;BR /&gt;7&lt;BR /&gt;8&lt;BR /&gt;9&lt;BR /&gt;10&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;LET vMinDate = 1;&lt;BR /&gt;LET vMaxDate = 10;&lt;/P&gt;&lt;P&gt;fruit:&lt;BR /&gt;LOAD * Inline [fruit,date,value,tempkey&lt;BR /&gt;orange,1,100,orange|1&lt;BR /&gt;orange,2,200,orange|2&lt;BR /&gt;orange,3,300,orange|3&lt;BR /&gt;apple,2,200,apple|2&lt;BR /&gt;apple,3,300,apple|3&lt;BR /&gt;apple,7,700,apple|7&lt;BR /&gt;banana,1,100,banana|1&lt;BR /&gt;banana,4,400,banana|4&lt;BR /&gt;banana,5,500,banana|5&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;temp_fruit:&lt;BR /&gt;LOAD Distinct fruit Resident fruit;&lt;/P&gt;&lt;P&gt;Join (temp_fruit)&lt;BR /&gt;LOAD RecNo()+$(vMinDate)-1 as date&lt;BR /&gt;AutoGenerate vMaxDate - vMinDate + 1;&lt;/P&gt;&lt;P&gt;Concatenate(fruit)&lt;BR /&gt;LOAD * Where Not Exists(tempkey);&lt;BR /&gt;LOAD fruit,&lt;BR /&gt;date,&lt;BR /&gt;fruit&amp;amp;'|'&amp;amp;date as tempkey&lt;BR /&gt;Resident temp_fruit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Drop Tables temp_fruit;&lt;/P&gt;&lt;P&gt;Drop Field tempkey;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Generate-Null-Values-for-Every-Non-Existing-Record-Date/m-p/2516890#M14864</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2025-05-06T21:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Null Values for Every Non Existing Record/Date</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Generate-Null-Values-for-Every-Non-Existing-Record-Date/m-p/2516979#M14865</link>
      <description>&lt;P&gt;You're welcome!&lt;/P&gt;&lt;P&gt;See also&amp;nbsp;&lt;A title="Qlik according to HIC" href="https://www.amazon.com/Qlik-according-HIC-Henric-Cronstr%C3%B6m/dp/9152799263/ref=sr_1_1" target="_blank" rel="noopener"&gt;Qlik according to HIC&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 12:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Generate-Null-Values-for-Every-Non-Existing-Record-Date/m-p/2516979#M14865</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2025-05-07T12:19:53Z</dc:date>
    </item>
  </channel>
</rss>

