<?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: Create new data column conditionally to other columns in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620527#M46194</link>
    <description>&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;use something like this&amp;nbsp; in load script ,&lt;/P&gt;&lt;P&gt;if([&lt;SPAN&gt;Error code&lt;/SPAN&gt;]=0 or&amp;nbsp;&amp;nbsp;[&lt;SPAN&gt;Error code&lt;/SPAN&gt;]=1 ,'no','yes')&amp;nbsp; as&amp;nbsp; [&lt;SPAN&gt;Error Code Accepted]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 12:15:57 GMT</pubDate>
    <dc:creator>mahaveerbiraj</dc:creator>
    <dc:date>2019-09-05T12:15:57Z</dc:date>
    <item>
      <title>Create new data column conditionally to other columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620489#M46188</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a column in my table which contains only ones and zeros. I need a new column (or the other column replaced) that a certain string is written.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have following data:&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need in QlikSense:&lt;/P&gt;&lt;P&gt;Part state&lt;/P&gt;&lt;P&gt;Part is ok&lt;/P&gt;&lt;P&gt;Part is not ok&lt;/P&gt;&lt;P&gt;Part is not ok&lt;/P&gt;&lt;P&gt;Part is ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I can do during loading the data?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 10:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620489#M46188</guid>
      <dc:creator>QlikSensor</dc:creator>
      <dc:date>2019-09-05T10:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create new data column conditionally to other columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620495#M46189</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;you can try this in load script.&lt;/P&gt;&lt;P&gt;pick(match(&lt;SPAN&gt;Error,0,1),'Part is ok','Part is not ok')&amp;nbsp; as&amp;nbsp; [Part state]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mahaveer&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 11:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620495#M46189</guid>
      <dc:creator>mahaveerbiraj</dc:creator>
      <dc:date>2019-09-05T11:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create new data column conditionally to other columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620499#M46191</link>
      <description>&lt;P&gt;Try the following (I hope I understood you correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example table:&lt;/P&gt;&lt;P&gt;Tablename: ERROR:&lt;/P&gt;&lt;P&gt;TableColumn: Error:&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ErrorStateTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ERROR.Error as "ErrorID"&lt;/P&gt;&lt;P&gt;From ERROR;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;'ErrorID', 'ErrorDescription'&lt;/P&gt;&lt;P&gt;0, 'Part is ok'&lt;/P&gt;&lt;P&gt;1, 'Part is not ok'&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 11:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620499#M46191</guid>
      <dc:creator>erp_curaden</dc:creator>
      <dc:date>2019-09-05T11:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create new data column conditionally to other columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620522#M46193</link>
      <description>&lt;P&gt;Wow, works great. Thanks for sharing. Just another question: Can I extend the conditional part of the match statement?&lt;/P&gt;&lt;P&gt;I have a column which can have other values as well. E. g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error code&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;I want to accept all error codes except 0 and 1 (note that this is a simple example, actually I have a string and not a number). This should result in:&lt;/P&gt;&lt;P&gt;Error Code Accepted&lt;/P&gt;&lt;P&gt;no&lt;/P&gt;&lt;P&gt;no&lt;/P&gt;&lt;P&gt;yes&lt;/P&gt;&lt;P&gt;yes&lt;/P&gt;&lt;P&gt;so something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pick(match(&lt;/SPAN&gt;&lt;SPAN&gt;Error,0|1),'no','yes')&amp;nbsp; as&amp;nbsp; [Error Code Acceted]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 12:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620522#M46193</guid>
      <dc:creator>QlikSensor</dc:creator>
      <dc:date>2019-09-05T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create new data column conditionally to other columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620527#M46194</link>
      <description>&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;use something like this&amp;nbsp; in load script ,&lt;/P&gt;&lt;P&gt;if([&lt;SPAN&gt;Error code&lt;/SPAN&gt;]=0 or&amp;nbsp;&amp;nbsp;[&lt;SPAN&gt;Error code&lt;/SPAN&gt;]=1 ,'no','yes')&amp;nbsp; as&amp;nbsp; [&lt;SPAN&gt;Error Code Accepted]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 12:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-new-data-column-conditionally-to-other-columns/m-p/1620527#M46194</guid>
      <dc:creator>mahaveerbiraj</dc:creator>
      <dc:date>2019-09-05T12:15:57Z</dc:date>
    </item>
  </channel>
</rss>

