<?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 to add a condition column in the loading script in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519418#M14928</link>
    <description>&lt;P&gt;Hi， for some order line , there is not "cat" ,for instance ,C2 &amp;amp; C2 , but for the C order , it should show "cat order" . it isn't the match expression.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 05:10:42 GMT</pubDate>
    <dc:creator>emilyrabbit</dc:creator>
    <dc:date>2025-05-29T05:10:42Z</dc:date>
    <item>
      <title>how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519292#M14919</link>
      <description>&lt;P&gt;HI, below is my origin data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are different product in each order&lt;/P&gt;&lt;P&gt;in the loading script , I want to add a new column , if the product contain 'cat' ,and the order should be remark as 'cat order' . I wonder if I can use mapping load or left join. but I am not familiar with these 2 expression. Pls help me on it, thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emilyrabbit_0-1748418413493.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180852i55E445DE7E801592/image-size/medium?v=v2&amp;amp;px=400" role="button" title="emilyrabbit_0-1748418413493.png" alt="emilyrabbit_0-1748418413493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;below is the target :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emilyrabbit_1-1748418433497.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180853i54A9A01B6B077A73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="emilyrabbit_1-1748418433497.png" alt="emilyrabbit_1-1748418433497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 07:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519292#M14919</guid>
      <dc:creator>emilyrabbit</dc:creator>
      <dc:date>2025-05-28T07:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519312#M14920</link>
      <description>&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Order],&lt;/P&gt;&lt;P&gt;[Order line]&lt;/P&gt;&lt;P&gt;[Product],&lt;/P&gt;&lt;P&gt;if(Product='cat', 'cat order', 'not cat order') as [Order type]&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 08:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519312#M14920</guid>
      <dc:creator>Adam_Romanowski</dc:creator>
      <dc:date>2025-05-28T08:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519404#M14924</link>
      <description>&lt;P&gt;Hi , the result is not correct. C contains "cat" , but order type still show "not cat order"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emilyrabbit_0-1748480737759.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180882i0D9E651458F36438/image-size/medium?v=v2&amp;amp;px=400" role="button" title="emilyrabbit_0-1748480737759.png" alt="emilyrabbit_0-1748480737759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 01:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519404#M14924</guid>
      <dc:creator>emilyrabbit</dc:creator>
      <dc:date>2025-05-29T01:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519405#M14925</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;&amp;nbsp; can you also help me check it ?Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 01:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519405#M14925</guid>
      <dc:creator>emilyrabbit</dc:creator>
      <dc:date>2025-05-29T01:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519415#M14927</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/161353"&gt;@emilyrabbit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there are empty spaces in the column values. try using below expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(wildmatch(trim(Product),'cat'), 'cat order', 'not cat order') as [Order type]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 04:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519415#M14927</guid>
      <dc:creator>Aditya_Chitale</dc:creator>
      <dc:date>2025-05-29T04:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519418#M14928</link>
      <description>&lt;P&gt;Hi， for some order line , there is not "cat" ,for instance ,C2 &amp;amp; C2 , but for the C order , it should show "cat order" . it isn't the match expression.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 05:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519418#M14928</guid>
      <dc:creator>emilyrabbit</dc:creator>
      <dc:date>2025-05-29T05:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519420#M14930</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/161353"&gt;@emilyrabbit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking for something like this ?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;test:     //Load Base table
LOAD   
    "Order",
     Product
FROM [lib://TestFolder/Sales Test.xls]
(biff, embedded labels, table is Sheet1$);

left join (test)
//concat all products grouped on basis of order and 
//left join with base table
Load 
	"Order",
	concat(trim(Product),'|') as IsCat
Resident test 
group by "Order";

NoConcatenate

//use if condition to determine order type as a whole based on //order
final:   
load
	"Order",
     Product,
    if(wildmatch(IsCat,'*Cat*'),'Cat Order','not cat order') as "Order Type"
Resident test;

Drop table test;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aditya_Chitale_0-1748497111346.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180886i68568437219759DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aditya_Chitale_0-1748497111346.png" alt="Aditya_Chitale_0-1748497111346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 05:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519420#M14930</guid>
      <dc:creator>Aditya_Chitale</dc:creator>
      <dc:date>2025-05-29T05:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519464#M14934</link>
      <description>&lt;P&gt;I'm a little late.&lt;/P&gt;&lt;P&gt;Did you manage to solve it? It seems like &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/79864"&gt;@Aditya_Chitale&lt;/a&gt;&amp;nbsp; solution is what you're looking for, or is there something else I might be missing?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519464#M14934</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2025-05-29T12:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a condition column in the loading script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519542#M14940</link>
      <description>&lt;P&gt;thanks . I found the solution ,using the mapping loading .&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 01:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-add-a-condition-column-in-the-loading-script/m-p/2519542#M14940</guid>
      <dc:creator>emilyrabbit</dc:creator>
      <dc:date>2025-05-30T01:52:43Z</dc:date>
    </item>
  </channel>
</rss>

