<?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 Conditional renaming of data, is it possible? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241623#M92023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can try this in the script&lt;/P&gt;&lt;P&gt;If(Code=100 and Machine='A' and operation = 'Setup',200,Code) as Code,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2011 11:27:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-08T11:27:51Z</dc:date>
    <item>
      <title>Conditional renaming of data, is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241622#M92022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a file of logged stopreasons for a machine. Every stop reason has a stop code.&lt;/P&gt;&lt;P&gt;I have a problem that some of the stop codes are not logged correctly by the operator.&lt;/P&gt;&lt;P&gt;I can filter out this incorrect data by comparing to other fields in the data, for example:&lt;/P&gt;&lt;P&gt;I know that code &lt;EM&gt;100&lt;/EM&gt; cannot occur in machine &lt;EM&gt;A&lt;/EM&gt; during &lt;EM&gt;setup&lt;/EM&gt; (where machine A is under the machine column and setup is under the operation column), instead this should be code 200.&lt;/P&gt;&lt;P&gt;Is it possible to have qlikview change the stop code if certain conditions are fulfilled? Maybe in the script?&lt;/P&gt;&lt;P&gt;Hope you can understand my question=)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 11:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241622#M92022</guid>
      <dc:creator />
      <dc:date>2011-03-08T11:17:56Z</dc:date>
    </item>
    <item>
      <title>Conditional renaming of data, is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241623#M92023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can try this in the script&lt;/P&gt;&lt;P&gt;If(Code=100 and Machine='A' and operation = 'Setup',200,Code) as Code,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 11:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241623#M92023</guid>
      <dc:creator />
      <dc:date>2011-03-08T11:27:51Z</dc:date>
    </item>
    <item>
      <title>Conditional renaming of data, is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241624#M92024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Johan,&lt;/P&gt;&lt;P&gt;If you know the correspondence between machines you can use something like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;CorrectionMachineOperationandCodeMap:MAPPING LOAD * INLINE [MachineOperation, CorrectedCodeASetup, 200]; Original:LOAD Ceil(Rand() * 3) * 100 AS Code, Pick(Ceil(Rand() * 3), 'Setup', 'Run', 'Stop') AS Operation, Chr(64 + Ceil(Rand() * 5)) AS MachineAUTOGENERATE 100; Corrected:LOAD Code, Operation, Machine, ApplyMap('CorrectionMachineOperationandCodeMap', Machine &amp;amp; Operation, Code) AS CorrectedCode // Wil return the original if there's no correspondenceRESIDENT Original; DROP TABLE Original;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 11:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241624#M92024</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-08T11:32:12Z</dc:date>
    </item>
    <item>
      <title>Conditional renaming of data, is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241625#M92025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Miguel!&lt;/P&gt;&lt;P&gt;It works really good!&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 16:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-renaming-of-data-is-it-possible/m-p/241625#M92025</guid>
      <dc:creator />
      <dc:date>2011-03-08T16:36:16Z</dc:date>
    </item>
  </channel>
</rss>

