<?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 an override value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-an-override-value/m-p/233157#M84697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario that I am struggling to find a solution for.&lt;/P&gt;&lt;P&gt;An upstream SQL data base stores the results of a questionairre.&lt;/P&gt;&lt;P&gt;The results of questions are stored against systems and these are identified by unique systemID's.&lt;/P&gt;&lt;P&gt;It is possible for a particular system to complete a questionnaire but later it might be decided that it should inherit the results from another system. So an override field is then populated.&lt;/P&gt;&lt;P&gt;I need to get QlikView to display the results from the primary system against the downstream system that is inheriting these question results.&lt;/P&gt;&lt;P&gt;Attached is a very simple model that tries to show what we are trying to accomplish. In the live system there are around 100 questions and thousands of systems.&lt;/P&gt;&lt;P&gt;I tried to use a mapping table but this did not produce the required result set. It appeared to take the result of the first answer only from the primary system and then use this same response for the remaining question responses on the system that was inheriting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. We are using v9 SR3 7440&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 09:45:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-06T09:45:40Z</dc:date>
    <item>
      <title>Using an override value</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-override-value/m-p/233157#M84697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario that I am struggling to find a solution for.&lt;/P&gt;&lt;P&gt;An upstream SQL data base stores the results of a questionairre.&lt;/P&gt;&lt;P&gt;The results of questions are stored against systems and these are identified by unique systemID's.&lt;/P&gt;&lt;P&gt;It is possible for a particular system to complete a questionnaire but later it might be decided that it should inherit the results from another system. So an override field is then populated.&lt;/P&gt;&lt;P&gt;I need to get QlikView to display the results from the primary system against the downstream system that is inheriting these question results.&lt;/P&gt;&lt;P&gt;Attached is a very simple model that tries to show what we are trying to accomplish. In the live system there are around 100 questions and thousands of systems.&lt;/P&gt;&lt;P&gt;I tried to use a mapping table but this did not produce the required result set. It appeared to take the result of the first answer only from the primary system and then use this same response for the remaining question responses on the system that was inheriting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. We are using v9 SR3 7440&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 09:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-override-value/m-p/233157#M84697</guid>
      <dc:creator />
      <dc:date>2010-05-06T09:45:40Z</dc:date>
    </item>
    <item>
      <title>Using an override value</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-override-value/m-p/233158#M84698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood what you're after:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN (DATA01)&lt;BR /&gt;LOAD&lt;BR /&gt; SystemId as OverrideSystemId&lt;BR /&gt;,Question&lt;BR /&gt;,Result as OverrideResult&lt;BR /&gt;RESIDENT DATA01&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;expression = if(OverrideSystemID,OverrideResult,Result)&lt;/P&gt;&lt;P&gt;Edit: Actually, I'd just do THAT as another script step too:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN (DATA01)&lt;BR /&gt;LOAD *&lt;BR /&gt;,if(OverrideSystemID,OverrideResult,Result) as FinalResult&lt;BR /&gt;RESIDENT DATA01&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 23:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-override-value/m-p/233158#M84698</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-06T23:52:31Z</dc:date>
    </item>
    <item>
      <title>Using an override value</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-override-value/m-p/233159#M84699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brilliant. Thanks for the solution which took a few days to shoe-horn into our production model which is pretty large. This is now working perfectly. We had a bit a fun with the charts because if the 'OverrideSystemID' condition that needs to be tested but resolved this with a combination of Aggr and Avg functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 08:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-override-value/m-p/233159#M84699</guid>
      <dc:creator />
      <dc:date>2010-05-11T08:24:09Z</dc:date>
    </item>
  </channel>
</rss>

