<?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 Confusion with Concatenate. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215192#M68672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think that the best description of what concatenation does is that it "appends" records on the second lodaded table to the first one, resulting in only one bigger table by default, with as many records as the sum of records in table 1 and 2.&lt;/P&gt;&lt;P&gt;If you want only recors where SalesDate is equal to InvoiceDate, then use a EXISTS() function in the WHERE clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Invoices:Load *,InvoiceDate AS Cal_Datefrom ..... Sales:load *,SalesDate AS Cal_Datefrom .....WHERE EXISTS(InvoiceDate, SalesDate);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2011 10:37:13 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-04-14T10:37:13Z</dc:date>
    <item>
      <title>Confusion with Concatenate.</title>
      <link>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215191#M68671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am a little bit confused with my results from a concatenate statement, I have the following and am not getting the result I expect. Could someone point out if my understanding of concatenate is incorrect or you think it is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Tab1:&lt;BR /&gt;&lt;B&gt;Load&lt;/B&gt; *,&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;InvoiceDate AS Cal_Date&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;from .....&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;concatenate load *,&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;SalesDate AS Cal_Date&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;from .....&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;Cal_Load:&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;load Cal_Date&lt;BR style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;" /&gt;from cal.QVD.&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I was expecting to be able to select a date from the calendar and return all invoicedate &amp;amp; SalesDate record with the same date. This does not seem to be the case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 10:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215191#M68671</guid>
      <dc:creator />
      <dc:date>2011-04-14T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Confusion with Concatenate.</title>
      <link>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215192#M68672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think that the best description of what concatenation does is that it "appends" records on the second lodaded table to the first one, resulting in only one bigger table by default, with as many records as the sum of records in table 1 and 2.&lt;/P&gt;&lt;P&gt;If you want only recors where SalesDate is equal to InvoiceDate, then use a EXISTS() function in the WHERE clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Invoices:Load *,InvoiceDate AS Cal_Datefrom ..... Sales:load *,SalesDate AS Cal_Datefrom .....WHERE EXISTS(InvoiceDate, SalesDate);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 10:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215192#M68672</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-14T10:37:13Z</dc:date>
    </item>
    <item>
      <title>Confusion with Concatenate.</title>
      <link>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215193#M68673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, I probably did not explain myself properly in my original post.&lt;/P&gt;&lt;P&gt;I would like to load in all sales and invoice data and when I select a date via my calendar (third table) I would like to see the invoice information and the sales information for that time period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 10:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215193#M68673</guid>
      <dc:creator />
      <dc:date>2011-04-14T10:44:27Z</dc:date>
    </item>
    <item>
      <title>Confusion with Concatenate.</title>
      <link>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215194#M68674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In theory, your code looks sound (without being able to see the data). You will have one table (Tab1) containing all your Invoices and all your Sales data. They may have different fields so, where there is no match, there will be null values, but there should always be a Cal_Date and, if you select a date, you will see all the Invoices and all the Sales for that date.&lt;/P&gt;&lt;P&gt;This is a common way of dealing with data like this for me.&lt;/P&gt;&lt;P&gt;What I might look at is putting a date field and Cal_Date in a table box with some of the fields from Tab1 and see if there is a mis-match. One of the common things is that one of the original date fields might have some time portion in it. I would normally use the Floor() function to make sure this is not the case, e.g.:&lt;/P&gt;&lt;P&gt;floor(SalesDate) As Cal_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 10:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Confusion-with-Concatenate/m-p/215194#M68674</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-04-14T10:48:14Z</dc:date>
    </item>
  </channel>
</rss>

