<?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: assign variable to categorise values from data tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679952#M1084174</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;I would create a field for the category, and include it in your model by joining the list to the main data table, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join(Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Inline&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Work Order Status, Category&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Assigned, Open&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Awaiting Finance Approve, Open&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; On Hold, Open&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Closed, Closed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Complete, Closed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Cancelled, Closed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This assumes that the main data table has already been loaded. Change the table name from 'Data' to the correct name. Change the field name Category if that is not a suitable name. No need for variables. Add a list box with this new field to your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 09:39:22 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-07-01T09:39:22Z</dc:date>
    <item>
      <title>assign variable to categorise values from data tables</title>
      <link>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679948#M1084170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking at ways to "categorise" values from my data, possibly using a variable! To give an example of what I want to achieve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called "Work Order Status" from a spreadsheet I've loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Records can have a Status value of: "In progress", "Assigned", "Awaiting Finance Approval", "On Hold", "Closed", Complete", "Cancelled" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is for the values from the "Work Order Status" field to be categorised to be either "Open" or Closed" to make things&lt;BR /&gt;easier when I'm creating charts etc based on the status of the work order jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I set something up like a Variable such as vStatusOpen for following Status values "Assigned", "Awaiting Finance Approval",&lt;BR /&gt;"On Hold". And vStatusClosed for "Closed", Complete", "Cancelled". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if so what’s best way to create it in the script etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 13:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679948#M1084170</guid>
      <dc:creator />
      <dc:date>2014-06-30T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: assign variable to categorise values from data tables</title>
      <link>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679949#M1084171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yourtable:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;[Work Order Status],&lt;/P&gt;&lt;P&gt;if(Match([Work Order Status], 'Assigned', 'Awaitin Finance Approval', 'On Hold'), 1, 0) as [Status Open],&lt;/P&gt;&lt;P&gt;if(Match([Work Order Status], 'Closed', 'Complete','Cancelled'), 1, 0) as [Status Closed],&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;from ....;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 13:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679949#M1084171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-30T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: assign variable to categorise values from data tables</title>
      <link>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679950#M1084172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would this mean the value of "Status Open" or "Status Closed" is added in another column in the table, as I do not want to overwrite the existing values in the {Work Order Status] column as these are used elsewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679950#M1084172</guid>
      <dc:creator />
      <dc:date>2014-07-01T09:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: assign variable to categorise values from data tables</title>
      <link>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679951#M1084173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;Load Status,&lt;/P&gt;&lt;P&gt;if(Status='In progress' or Status='Assigned' or&amp;nbsp; Status='Awaiting Finance Approval' or Status='On Hold','Open') as statusopen,&lt;/P&gt;&lt;P&gt;if(Status='Closed' or Status='Complete' or&amp;nbsp; Status='Cancelled' ,'closed') as statusClosed;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Status&lt;/P&gt;&lt;P&gt;In progress&lt;/P&gt;&lt;P&gt;Assigned&lt;/P&gt;&lt;P&gt;Awaiting Finance Approval,&lt;/P&gt;&lt;P&gt;On Hold,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Closed&lt;/P&gt;&lt;P&gt;Complete&lt;/P&gt;&lt;P&gt;Cancelled&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679951#M1084173</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-01T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: assign variable to categorise values from data tables</title>
      <link>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679952#M1084174</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;I would create a field for the category, and include it in your model by joining the list to the main data table, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join(Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Inline&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Work Order Status, Category&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Assigned, Open&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Awaiting Finance Approve, Open&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; On Hold, Open&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Closed, Closed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Complete, Closed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Cancelled, Closed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This assumes that the main data table has already been loaded. Change the table name from 'Data' to the correct name. Change the field name Category if that is not a suitable name. No need for variables. Add a list box with this new field to your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679952#M1084174</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-07-01T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: assign variable to categorise values from data tables</title>
      <link>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679953#M1084175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, simple and worked a treat &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 08:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/assign-variable-to-categorise-values-from-data-tables/m-p/679953#M1084175</guid>
      <dc:creator />
      <dc:date>2014-07-08T08:20:20Z</dc:date>
    </item>
  </channel>
</rss>

