<?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 0 value for each hour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440893#M805793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but i don't really see how this helps? i could 0 values for each hour, but the problem is that i can't concatenate my fact table. Is it possible to fix this by adding a separate fact table? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 15:30:13 GMT</pubDate>
    <dc:creator>amien</dc:creator>
    <dc:date>2017-10-30T15:30:13Z</dc:date>
    <item>
      <title>Creating 0 value for each hour</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440891#M805791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 1 table with three colums:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Id, Zone,Hour &lt;/P&gt;&lt;P&gt;0, A, 10&lt;/P&gt;&lt;P&gt;1, A, 11&lt;/P&gt;&lt;P&gt;2, A, 12&lt;/P&gt;&lt;P&gt;3, B, 1&lt;/P&gt;&lt;P&gt;3, B, 2&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my bar chart i have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim: Hour&lt;/P&gt;&lt;P&gt;exp : Count(%Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want a 0 for each hour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for Zone A, Where Hour = 10,11,12 there is a 1, the rest of the hours (all 24) have a zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you need to add a zero for each dim.&lt;/P&gt;&lt;P&gt;For i would do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;Zone&lt;/P&gt;&lt;P&gt;Resident t1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;Hour&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;Resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then concatenate t2 to t1.&lt;/P&gt;&lt;P&gt;Note: Hour has every needed value (0..23)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the thing is that my source is a huge table with alot of selectable dims. Isn't there a more easy way to do this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440891#M805791</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 0 value for each hour</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440892#M805792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is an easy way out here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 14:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440892#M805792</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-26T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 0 value for each hour</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440893#M805793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but i don't really see how this helps? i could 0 values for each hour, but the problem is that i can't concatenate my fact table. Is it possible to fix this by adding a separate fact table? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440893#M805793</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-10-30T15:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 0 value for each hour</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440894#M805794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if it will be suitable for your task, but you can create a sample table which will contain all your needed distinct values like:&lt;/P&gt;&lt;P&gt;A,0&lt;/P&gt;&lt;P&gt;A,1&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;A,23&lt;/P&gt;&lt;P&gt;B,0&lt;/P&gt;&lt;P&gt;B,1&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Z,23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to create an unique key (connection) with your main huge data table. This is actualy a common way to implement such tasks. Hope it will help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 17:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-0-value-for-each-hour/m-p/1440894#M805794</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-10-30T17:53:49Z</dc:date>
    </item>
  </channel>
</rss>

