<?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 Assist with join code please in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assist-with-join-code-please/m-p/1690142#M725593</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a transaction table (that is currently missing one day's data for March - &lt;STRONG&gt;the 18th&lt;/STRONG&gt;) and a Calendar table.&lt;/P&gt;&lt;P&gt;Code looks like this...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dates_t:&lt;/STRONG&gt;&lt;BR /&gt;select&amp;nbsp; req_date&lt;BR /&gt;&amp;nbsp; &amp;nbsp;from&lt;BR /&gt;Date_Dim_Table where req_date between 20200301 and 20200331 (this returns 31 rows - correct)&lt;/P&gt;&lt;P&gt;Then I want to join to Trans table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Volumes:&lt;/STRONG&gt;&lt;BR /&gt;LEFT join (Dates_t) Load *;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;&amp;nbsp; log_date as req_date&lt;BR /&gt;&amp;nbsp; ,count(1) as hour_volume&lt;BR /&gt;FROM&lt;BR /&gt;Trans_Table&lt;BR /&gt;&amp;nbsp; &amp;nbsp;where log_date between 20200301 and 20200331&lt;BR /&gt;group by 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the result to have Zero for hour_volume for the 18th - since there is no data, it &lt;STRONG&gt;shouldnt&lt;/STRONG&gt; just be omitted from the Table.&lt;/P&gt;&lt;P&gt;I figured using a LEFTJoin would work, bit it doesnt .&lt;/P&gt;&lt;P&gt;Any assistance please. Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:51:06 GMT</pubDate>
    <dc:creator>QFanatic</dc:creator>
    <dc:date>2024-11-16T18:51:06Z</dc:date>
    <item>
      <title>Assist with join code please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-join-code-please/m-p/1690142#M725593</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a transaction table (that is currently missing one day's data for March - &lt;STRONG&gt;the 18th&lt;/STRONG&gt;) and a Calendar table.&lt;/P&gt;&lt;P&gt;Code looks like this...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dates_t:&lt;/STRONG&gt;&lt;BR /&gt;select&amp;nbsp; req_date&lt;BR /&gt;&amp;nbsp; &amp;nbsp;from&lt;BR /&gt;Date_Dim_Table where req_date between 20200301 and 20200331 (this returns 31 rows - correct)&lt;/P&gt;&lt;P&gt;Then I want to join to Trans table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Volumes:&lt;/STRONG&gt;&lt;BR /&gt;LEFT join (Dates_t) Load *;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;&amp;nbsp; log_date as req_date&lt;BR /&gt;&amp;nbsp; ,count(1) as hour_volume&lt;BR /&gt;FROM&lt;BR /&gt;Trans_Table&lt;BR /&gt;&amp;nbsp; &amp;nbsp;where log_date between 20200301 and 20200331&lt;BR /&gt;group by 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the result to have Zero for hour_volume for the 18th - since there is no data, it &lt;STRONG&gt;shouldnt&lt;/STRONG&gt; just be omitted from the Table.&lt;/P&gt;&lt;P&gt;I figured using a LEFTJoin would work, bit it doesnt .&lt;/P&gt;&lt;P&gt;Any assistance please. Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-join-code-please/m-p/1690142#M725593</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2024-11-16T18:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with join code please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-join-code-please/m-p/1690584#M725594</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dates_t:&lt;/STRONG&gt;&lt;BR /&gt;select&amp;nbsp; req_date&lt;BR /&gt;&amp;nbsp; &amp;nbsp;from&lt;BR /&gt;Date_Dim_Table where req_date between 20200301 and 20200331 (this returns 31 rows - correct)&lt;/P&gt;&lt;P&gt;Then I want to join to Trans table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Volumes:&lt;/STRONG&gt;&lt;BR /&gt;LEFT join (Dates_t) Load *;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;&amp;nbsp; log_date as req_date&lt;BR /&gt;&amp;nbsp; ,count(1) as hour_volume&lt;BR /&gt;FROM&lt;BR /&gt;Trans_Table&lt;BR /&gt;&amp;nbsp; &amp;nbsp;where log_date between 20200301 and 20200331&lt;BR /&gt;group by 1;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FinalTable:&lt;BR /&gt;Load &lt;SPAN&gt;req_date&lt;/SPAN&gt;, Alt(&lt;SPAN&gt;hour_volume&lt;/SPAN&gt;, 0) as B Resident &lt;STRONG&gt;Dates_t&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;DROP Table &lt;STRONG&gt;Dates_t&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 04:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-join-code-please/m-p/1690584#M725594</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-04-03T04:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with join code please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-join-code-please/m-p/1690629#M725595</link>
      <description>&lt;P&gt;Thank you - forgot about ALT&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 07:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-join-code-please/m-p/1690629#M725595</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2020-04-03T07:50:08Z</dc:date>
    </item>
  </channel>
</rss>

