<?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 where clause in expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-clause-in-expressions/m-p/886930#M1009557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in my project where an user enters the min and max limit of a column(through input box).&lt;/P&gt;&lt;P&gt;I am saving these in variables ...var1 &amp;amp; var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the value of Avg(column1) where value of column1 &amp;gt; $(var1) and &amp;lt; $(var2) in a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to create this successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 11:39:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-06T11:39:22Z</dc:date>
    <item>
      <title>where clause in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-expressions/m-p/886930#M1009557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in my project where an user enters the min and max limit of a column(through input box).&lt;/P&gt;&lt;P&gt;I am saving these in variables ...var1 &amp;amp; var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the value of Avg(column1) where value of column1 &amp;gt; $(var1) and &amp;lt; $(var2) in a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to create this successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 11:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-expressions/m-p/886930#M1009557</guid>
      <dc:creator />
      <dc:date>2015-05-06T11:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: where clause in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-expressions/m-p/886931#M1009558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nayana, supossing you have a table with a dimension 'Dim' and value 'Data' you can use this expression in table:&lt;/P&gt;&lt;P&gt;If(Sum(Data)&amp;gt;=$(var1) and Sum(Data)&amp;lt;=$(var2), Sum(Data))&lt;/P&gt;&lt;P&gt;For the average check the total type as 'average'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a text box you can show the Avg() with this expression:&lt;/P&gt;&lt;P&gt;=Avg(Aggr(If(Sum(Data)&amp;gt;=$(var1) and Sum(Data)&amp;lt;=$(var2), Sum(Data)), Dim))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 11:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-expressions/m-p/886931#M1009558</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-05-06T11:51:47Z</dc:date>
    </item>
  </channel>
</rss>

