<?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: Loading data from a column unless conditions met, otherwise load from a different column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958728#M79031</link>
    <description>&lt;P&gt;I'm not sure I understood the requirement, but it sounds like you're not trying to modify the entire load, just the specific Usernames field (which is itself a rename of another field). If that's the case, perhaps:&lt;/P&gt;
&lt;P&gt;Concatenate (MaterialNote_tmp) Load&lt;/P&gt;
&lt;P&gt;ID_Key,&lt;/P&gt;
&lt;P&gt;Country,&lt;/P&gt;
&lt;P&gt;If(WildMatch(Description1,'V*'),Description2,Description1) as Usernames,&lt;/P&gt;
&lt;P&gt;Description1,&lt;/P&gt;
&lt;P&gt;Description2,&lt;/P&gt;
&lt;P&gt;Description3,&lt;/P&gt;
&lt;P&gt;Description4,&lt;/P&gt;
&lt;P&gt;Description5&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 08:36:12 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-07-21T08:36:12Z</dc:date>
    <item>
      <title>Loading data from a column unless conditions met, otherwise load from a different column</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958694#M79029</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;wanted to get some expert opinion on this because I haven't been using Qlik that long.&lt;/P&gt;
&lt;P&gt;Basically I'm loading the following data from a QVD and I'm trying to figure out if the changes I want to make should be done in QlikView when creating the QVD or if this logic can be done in Qlik Sense using the current QVD.&lt;/P&gt;
&lt;P&gt;The script looks like this:&lt;/P&gt;
&lt;P&gt;Concatenate (MaterialNote_tmp) Load&lt;/P&gt;
&lt;P&gt;ID_Key,&lt;/P&gt;
&lt;P&gt;Country,&lt;/P&gt;
&lt;P&gt;Description1 as Usernames,&lt;/P&gt;
&lt;P&gt;Description2,&lt;/P&gt;
&lt;P&gt;Description3,&lt;/P&gt;
&lt;P&gt;Description4,&lt;/P&gt;
&lt;P&gt;Description5&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the column Description1 there are a lot of names, which is what I want, but there are also a lot of entries of the Format "V54644842", so a V followed by 8 numbers. The name associated with this V entry is then in Description2.&lt;/P&gt;
&lt;P&gt;I want to load everything from Description1 unless it is one of these V numbers, then Description2 should be loaded into the column instead. I tried in Qlik Sense with the following but i'm not getting the desired outcome:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if NOT WildMatch(Description1,'^V*') THEN&lt;/P&gt;
&lt;P&gt;Concatenate (MaterialNote_tmp) LOAD Description2 as Usernames; ELSE&lt;/P&gt;
&lt;P&gt;Concatenate (MaterialNote_tmp) LOAD Description1 as Usernames;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 07:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958694#M79029</guid>
      <dc:creator>luke_brady</dc:creator>
      <dc:date>2022-07-21T07:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from a column unless conditions met, otherwise load from a different column</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958728#M79031</link>
      <description>&lt;P&gt;I'm not sure I understood the requirement, but it sounds like you're not trying to modify the entire load, just the specific Usernames field (which is itself a rename of another field). If that's the case, perhaps:&lt;/P&gt;
&lt;P&gt;Concatenate (MaterialNote_tmp) Load&lt;/P&gt;
&lt;P&gt;ID_Key,&lt;/P&gt;
&lt;P&gt;Country,&lt;/P&gt;
&lt;P&gt;If(WildMatch(Description1,'V*'),Description2,Description1) as Usernames,&lt;/P&gt;
&lt;P&gt;Description1,&lt;/P&gt;
&lt;P&gt;Description2,&lt;/P&gt;
&lt;P&gt;Description3,&lt;/P&gt;
&lt;P&gt;Description4,&lt;/P&gt;
&lt;P&gt;Description5&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 08:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958728#M79031</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-07-21T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from a column unless conditions met, otherwise load from a different column</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958740#M79032</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking the time to answer, in the mean time I continued trying and also came up with something similar which has worked.&lt;/P&gt;
&lt;P&gt;The only issue is that some names also begin with V and with these parameters of WildMatch, they are also being replaced. How could I edit the expression to only replace codes that start with V and have 8 numbers following, for example?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 08:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958740#M79032</guid>
      <dc:creator>luke_brady</dc:creator>
      <dc:date>2022-07-21T08:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from a column unless conditions met, otherwise load from a different column</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958748#M79033</link>
      <description>&lt;P&gt;If memory serves WildMatch doesn't have an option for that, but you could check on IsNum(Right(Description1,8))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 09:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-a-column-unless-conditions-met-otherwise-load/m-p/1958748#M79033</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-07-21T09:00:39Z</dc:date>
    </item>
  </channel>
</rss>

