<?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: How do i have more fields in NoConcat in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041641#M466917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you misunderstand what NoConcatenate means - it means to override the automatic concatenation of tables that have the same set of fields (like UNION ALL in SQL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that you need a mapping table to apply the status - something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapStatus:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Customers_ID,&lt;/P&gt;&lt;P&gt;if(Count(DISTINCT(Customers_ID))&amp;gt;1,'Existing','New') as Cust_Status&lt;/P&gt;&lt;P&gt;Resident Orders&lt;/P&gt;&lt;P&gt;WHERE Match([Order type], 'New', 'Amendment');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Order_ID,&lt;/P&gt;&lt;P&gt;Order_Type,&lt;/P&gt;&lt;P&gt;Phone_No,&lt;/P&gt;&lt;P&gt;Customers_ID,&lt;/P&gt;&lt;P&gt;ApplyMap('MapStatus', Customers_ID, 'None') As Status&lt;/P&gt;&lt;P&gt;FROM xxx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2016 04:59:21 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-01-07T04:59:21Z</dc:date>
    <item>
      <title>How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041636#M466912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a table with orders particulars and would like to create a CRM table out of this by checking whether is the customers that booked are repetitive customers.&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Order_ID,&lt;/P&gt;&lt;P&gt;Order_Type,&lt;/P&gt;&lt;P&gt;Phone_No,&lt;/P&gt;&lt;P&gt;Customers_ID,&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;xxx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CRM:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Customers_Status:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;//AutoNumber(rowno()) as Customers_ID,&lt;/P&gt;&lt;P&gt;Phone_No,&lt;/P&gt;&lt;P&gt;if(Count(DISTINCT(Customers_ID))&amp;gt;1,'Existing','New') as Cust_Status&lt;/P&gt;&lt;P&gt;Resident Orders&lt;/P&gt;&lt;P&gt;WHERE match([Order type],'New','Amendment')&amp;gt;0 &lt;/P&gt;&lt;P&gt;Group by Phone_No;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the CRM, I would like to have more fields such as Guest First Name, Guest Last Name that I can get it from Orders too but would like to have a complete set of customers data in the NoConcat CRM table. Also I would like to create a customized field on the CRM that shows me Min(Order_Date) so that I can check when did the customers first purchase our product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can these all be done as I keep receieving errors from QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 04:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041636#M466912</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2016-01-07T04:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041637#M466913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben Lim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14521423994403948" jivemacro_uid="_14521423994403948" modifiedtitle="true"&gt;
&lt;P&gt;Orders:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Order_ID,&lt;/P&gt;
&lt;P&gt;Order_Type,&lt;/P&gt;
&lt;P&gt;Phone_No,&lt;/P&gt;
&lt;P&gt;Customers_ID&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;XXXXX&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(ooxml, embedded labels, table is Orders);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;CRM:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;//AutoNumber(rowno()) as Customers_ID,&lt;/P&gt;
&lt;P&gt;Phone_No,&lt;/P&gt;
&lt;P&gt;if(Count(DISTINCT(Customers_ID))&amp;gt;1,'Existing','New') as Cust_Status&lt;/P&gt;
&lt;P&gt;Resident Orders&lt;/P&gt;
&lt;P&gt;WHERE match([Order_Type],'New','Amendment')&lt;/P&gt;
&lt;P&gt;Group by Phone_No;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could see comma at the end of &lt;SPAN style="font-size: 13.3333px;"&gt;Customers_ID field. It should be removed. Also, you mentioned wrong name in match function.i.e &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Order type&lt;/STRONG&gt; should be &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Order_Type. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let me know.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 04:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041637#M466913</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-07T04:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041638#M466914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This two table will then join with unique key phone number. However I need to do cohort analysis... which requires me to check min(date) for each customers that they joined. i cant do that on the Order table as the table are based on per order entry (one cust might have &amp;gt; 1 entry on order table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 04:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041638#M466914</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2016-01-07T04:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041639#M466915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naming convention is ok. I typed it on the text which might requires typo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 04:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041639#M466915</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2016-01-07T04:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041640#M466916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample data.?&amp;nbsp; It would be helpful to give you the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 04:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041640#M466916</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-07T04:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041641#M466917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you misunderstand what NoConcatenate means - it means to override the automatic concatenation of tables that have the same set of fields (like UNION ALL in SQL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that you need a mapping table to apply the status - something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapStatus:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Customers_ID,&lt;/P&gt;&lt;P&gt;if(Count(DISTINCT(Customers_ID))&amp;gt;1,'Existing','New') as Cust_Status&lt;/P&gt;&lt;P&gt;Resident Orders&lt;/P&gt;&lt;P&gt;WHERE Match([Order type], 'New', 'Amendment');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Order_ID,&lt;/P&gt;&lt;P&gt;Order_Type,&lt;/P&gt;&lt;P&gt;Phone_No,&lt;/P&gt;&lt;P&gt;Customers_ID,&lt;/P&gt;&lt;P&gt;ApplyMap('MapStatus', Customers_ID, 'None') As Status&lt;/P&gt;&lt;P&gt;FROM xxx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 04:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041641#M466917</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-07T04:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041642#M466918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If OrderDate exists in Orders, then you could create a second mapping table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapFirstOrder:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Customers_ID,&lt;/P&gt;&lt;P&gt;Min(OrderDate) As FirstOrder&lt;/P&gt;&lt;P&gt;Resident Orders&lt;/P&gt;&lt;P&gt;Group By Customers_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And add the second ApplyMap to the main load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplyMap('MapStatus', Customers_ID, 'None') As Status,&lt;/P&gt;&lt;P&gt;ApplyMap('MapFirstOrder', Customers_ID, Null()) As FirstOrder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 05:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041642#M466918</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-07T05:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do i have more fields in NoConcat</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041643#M466919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This bit looks wrong:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CRM:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Customers_Status:&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;call it &lt;STRONG&gt;CRM&lt;/STRONG&gt; or &lt;STRONG&gt;Customers_Status&lt;/STRONG&gt;, but not both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I would suggest (keeping in mind that the code below is not tested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Load Orders table &lt;EM&gt;(as you have)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left Join (Orders) Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customers_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(distinct Order_ID) as No_Of_Orders,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(Order_Date) as Min_Order_Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Order_Date) as Max_Order_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident &lt;SPAN style="font-size: 13.3333px;"&gt;Orders&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group By Customers_ID;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;3. Load CRM table &lt;EM&gt;(as a dimensional table)&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 05:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-have-more-fields-in-NoConcat/m-p/1041643#M466919</guid>
      <dc:creator>shawn-qv</dc:creator>
      <dc:date>2016-01-07T05:05:45Z</dc:date>
    </item>
  </channel>
</rss>

