<?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 ReLoading The Data Based On Condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ReLoading-The-Data-Based-On-Condition/m-p/263111#M98981</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 am facing the problem to retrieve the Data based on the condition on a field in editscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have loaded one XL file into Qlikview (I have also attaching the Xl file With this post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 96pt; border-collapse: collapse;" width="128"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="width: 48pt; height: 15pt;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="width: 48pt;" width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;NoRead&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;Normal&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;NoRead&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;Normal&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I need Like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoRead=NoReads&lt;/P&gt;&lt;P&gt;!NoRead=GoodReads&lt;/P&gt;&lt;P&gt;NullValues=MissingReads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For This I write the query like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the DataBase:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select CASE &lt;STRONG&gt;A&lt;/STRONG&gt; WHEN 'NoRead' THEN 'NOReads' ELSE CASE&amp;nbsp; WHEN &lt;STRONG&gt;A&lt;/STRONG&gt;&amp;lt;&amp;gt;'NoRead' Then 'GoodReads' Else 'MissingReads'&amp;nbsp;&amp;nbsp;&amp;nbsp; End END AS ReadType from Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And This is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In The QlikView EditScript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG&gt;A&lt;/STRONG&gt;='NoRead','NoReads',if(&lt;STRONG&gt;A&lt;/STRONG&gt;&amp;lt;&amp;gt;'No Read','GoodReads','MissingReads'))as &lt;STRONG&gt;ReadType&lt;/STRONG&gt; But This Is not showing the result exactly what i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you Reply me With the solution for this Problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2011 10:38:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-03T10:38:28Z</dc:date>
    <item>
      <title>ReLoading The Data Based On Condition</title>
      <link>https://community.qlik.com/t5/QlikView/ReLoading-The-Data-Based-On-Condition/m-p/263111#M98981</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 am facing the problem to retrieve the Data based on the condition on a field in editscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have loaded one XL file into Qlikview (I have also attaching the Xl file With this post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 96pt; border-collapse: collapse;" width="128"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="width: 48pt; height: 15pt;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="width: 48pt;" width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;NoRead&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;Normal&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;NoRead&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;Normal&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;High&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt;"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I need Like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoRead=NoReads&lt;/P&gt;&lt;P&gt;!NoRead=GoodReads&lt;/P&gt;&lt;P&gt;NullValues=MissingReads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For This I write the query like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the DataBase:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select CASE &lt;STRONG&gt;A&lt;/STRONG&gt; WHEN 'NoRead' THEN 'NOReads' ELSE CASE&amp;nbsp; WHEN &lt;STRONG&gt;A&lt;/STRONG&gt;&amp;lt;&amp;gt;'NoRead' Then 'GoodReads' Else 'MissingReads'&amp;nbsp;&amp;nbsp;&amp;nbsp; End END AS ReadType from Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And This is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In The QlikView EditScript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG&gt;A&lt;/STRONG&gt;='NoRead','NoReads',if(&lt;STRONG&gt;A&lt;/STRONG&gt;&amp;lt;&amp;gt;'No Read','GoodReads','MissingReads'))as &lt;STRONG&gt;ReadType&lt;/STRONG&gt; But This Is not showing the result exactly what i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you Reply me With the solution for this Problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 10:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReLoading-The-Data-Based-On-Condition/m-p/263111#M98981</guid>
      <dc:creator />
      <dc:date>2011-06-03T10:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: ReLoading The Data Based On Condition</title>
      <link>https://community.qlik.com/t5/QlikView/ReLoading-The-Data-Based-On-Condition/m-p/263112#M98982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, I'll check for null/missing/empty values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Len(Trim(A)) = 0, 'MissingReads', If(A = 'NoRead', 'NoReads', 'GoodReads')) AS ReadType&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 10:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReLoading-The-Data-Based-On-Condition/m-p/263112#M98982</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-03T10:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: ReLoading The Data Based On Condition</title>
      <link>https://community.qlik.com/t5/QlikView/ReLoading-The-Data-Based-On-Condition/m-p/263113#M98983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your Reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes Its really helps me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 17:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReLoading-The-Data-Based-On-Condition/m-p/263113#M98983</guid>
      <dc:creator />
      <dc:date>2011-06-03T17:47:41Z</dc:date>
    </item>
  </channel>
</rss>

