<?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 Using load statement to populate new column in data set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-load-statement-to-populate-new-column-in-data-set/m-p/1606766#M737122</link>
    <description>&lt;P&gt;Forgive me as I am a total newbie to Qlikview and to SQL data sets as a whole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have a dataset that includes tickets from many different sources. I want to categorize them by adding a new column to the data set during the data load and populate it based on criteria I have predefined. Written below is how I would write it in plain English to create a new column labeled "Ticket Type" and write a value into it based on where/if match from an existing column in the dataset, however I do not know how this would translate to qlikview language.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I have read this would be accomplished by a load inline command, just not sure how the syntax would translate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where modified_by_department = 'DeptA' and Source_System = 'SourceA' write "PLANNED WORK" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;where ticket_type = 'TickettypeA' write "SYSTEM ALERT" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;where workgroup = 'WorkgroupA' write "USER REQUEST" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;where workgroup = 'WorkgroupB' write "TROUBLE TICKET" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:53:31 GMT</pubDate>
    <dc:creator>Jwarr1</dc:creator>
    <dc:date>2024-11-16T02:53:31Z</dc:date>
    <item>
      <title>Using load statement to populate new column in data set</title>
      <link>https://community.qlik.com/t5/QlikView/Using-load-statement-to-populate-new-column-in-data-set/m-p/1606766#M737122</link>
      <description>&lt;P&gt;Forgive me as I am a total newbie to Qlikview and to SQL data sets as a whole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have a dataset that includes tickets from many different sources. I want to categorize them by adding a new column to the data set during the data load and populate it based on criteria I have predefined. Written below is how I would write it in plain English to create a new column labeled "Ticket Type" and write a value into it based on where/if match from an existing column in the dataset, however I do not know how this would translate to qlikview language.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I have read this would be accomplished by a load inline command, just not sure how the syntax would translate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where modified_by_department = 'DeptA' and Source_System = 'SourceA' write "PLANNED WORK" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;where ticket_type = 'TickettypeA' write "SYSTEM ALERT" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;where workgroup = 'WorkgroupA' write "USER REQUEST" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;where workgroup = 'WorkgroupB' write "TROUBLE TICKET" in column "TICKET TYPE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-load-statement-to-populate-new-column-in-data-set/m-p/1606766#M737122</guid>
      <dc:creator>Jwarr1</dc:creator>
      <dc:date>2024-11-16T02:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using load statement to populate new column in data set</title>
      <link>https://community.qlik.com/t5/QlikView/Using-load-statement-to-populate-new-column-in-data-set/m-p/1606971#M737123</link>
      <description>&lt;P&gt;if(modified_by_department = 'DeptA' and Source_System = 'SourceA'.'PLANNED WORK'.&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(ticket_type = 'TickettypeA','SYSTEM ALERT',&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( workgroup = 'WorkgroupA','USER REQUEST',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(workgroup = 'WorkgroupB','TROUBLE TICKET')))) as "TICKET TYPE",&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 11:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-load-statement-to-populate-new-column-in-data-set/m-p/1606971#M737123</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-07-29T11:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using load statement to populate new column in data set</title>
      <link>https://community.qlik.com/t5/QlikView/Using-load-statement-to-populate-new-column-in-data-set/m-p/1607635#M737124</link>
      <description>&lt;P&gt;Thanks for the assistance, wanted to circle back that I eventually used a CASE statement as I was not able to get the if&amp;nbsp; statement syntax to work on my SQL query. Essentially looked like this with specifics changed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CASE&lt;BR /&gt;WHEN&lt;BR /&gt;MODIFIED_BY_DEPT = 'DEPT A' AND WORKGROUP = 'WORKGROUP A'&lt;BR /&gt;THEN&lt;BR /&gt;'TICKETTYPEA'&lt;BR /&gt;WHEN&lt;BR /&gt;WORKGROUP = 'WORKGROUP B'&lt;BR /&gt;THEN&lt;BR /&gt;'TICKETTYPEB'&lt;BR /&gt;ELSE&lt;BR /&gt;'Null'&lt;BR /&gt;END AS TICKETTYPEMASTER,&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 16:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-load-statement-to-populate-new-column-in-data-set/m-p/1607635#M737124</guid>
      <dc:creator>Jwarr1</dc:creator>
      <dc:date>2019-07-30T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

