<?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: Select based on expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-based-on-expression/m-p/258148#M1182048</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;You will need to use the original expression in a conditional then. Say Count(FileNo) is your original expression that returns 1 or 0, and that the expression that you want to use is Sum(ByteSize) if that expression equals to 1:&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(Count(FileNo) = 1, Sum(ByteSize)) &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The If() will slow your chart considerably though, so think on that flag field or something to improve performance if you have some thousands of rows.&lt;/P&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Jan 2012 20:05:12 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-01-07T20:05:12Z</dc:date>
    <item>
      <title>Select based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-based-on-expression/m-p/258147#M1182047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible dispaly in a chart only those records where the output of an expression in that chart meets a criteria?&amp;nbsp; Say the expression output is 1 or 0, and I only want to view those records where it is 1.&amp;nbsp; I know I should probably put a flag in the script and use that as a dimension, but I cannot do that at this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 17:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-based-on-expression/m-p/258147#M1182047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-07T17:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-based-on-expression/m-p/258148#M1182048</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;You will need to use the original expression in a conditional then. Say Count(FileNo) is your original expression that returns 1 or 0, and that the expression that you want to use is Sum(ByteSize) if that expression equals to 1:&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(Count(FileNo) = 1, Sum(ByteSize)) &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The If() will slow your chart considerably though, so think on that flag field or something to improve performance if you have some thousands of rows.&lt;/P&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 20:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-based-on-expression/m-p/258148#M1182048</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-07T20:05:12Z</dc:date>
    </item>
  </channel>
</rss>

