<?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 How to query the expression statistics data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159163#M1309476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No body can answer me[:'(]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Oct 2010 01:49:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-28T01:49:07Z</dc:date>
    <item>
      <title>How to query the expression statistics data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159161#M1309470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I'm Chinese,English so poorly,I hope someone can know my question&lt;/P&gt;&lt;P&gt;The form have a input box (we can input two nums),and have a btn,we can use btn search the data from chart,and data is expression statistics .the expression is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(rzxxcs &amp;lt;&amp;gt; '' and rzsxcs &amp;lt;&amp;gt; '',&lt;BR /&gt; if(Count (??ID) &amp;gt;= rzxxcs and count(??ID)&amp;lt;= rzsxcs,count(??ID)),&lt;BR /&gt; if(rzxxcs = '' and rzsxcs &amp;lt;&amp;gt; '',&lt;BR /&gt; if(count(??ID)&amp;lt;= rzsxcs,count(??ID)),&lt;BR /&gt; if(rzsxcs = '' and rzxxcs &amp;lt;&amp;gt; '',&lt;BR /&gt; if(Count (??ID) &amp;gt;= rzxxcs ,count(??ID)),&lt;BR /&gt; count(??ID)&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do it use vb script actions?&lt;/P&gt;&lt;P&gt;My plan:&lt;/P&gt;&lt;P&gt;1.define fourvariables : NUM_SX,NUM_XX,rzxxcs,rzsxcs&lt;/P&gt;&lt;P&gt;2.define the variables NUM_SX,NUM_XX to Input boxs&lt;/P&gt;&lt;P&gt;3.vb script action&lt;/P&gt;&lt;P&gt;&lt;EM&gt;' Create By KanGwei in 2010/10/26&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;' get the value of variable&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;function getVarValue(p_varname)&lt;BR /&gt; getVarValue=activeDocument.variables(p_varname).getContent.string&lt;BR /&gt;end function&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;' set the value to variable&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;sub setVarValue(p_varname,p_varvalue)&lt;BR /&gt; dim d_var&lt;BR /&gt; Set d_var=ActiveDocument.Variables(p_varname)&lt;BR /&gt; d_var.setContent p_varvalue,true&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;' Search action&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;sub s_dosearch&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&lt;EM&gt;dim d_sx,d_xx&lt;BR /&gt;&lt;BR /&gt; d_sx = getVarValue("NUM_SX")&lt;BR /&gt; d_xx = getVarValue("NUM_XX")&lt;BR /&gt;&lt;BR /&gt; ' ???? ?? ???? Error info&lt;BR /&gt; if d_sx &amp;lt; d_xx then&lt;BR /&gt; msgbox "????????????"&lt;BR /&gt; ' All Passed?Do Search&lt;BR /&gt; elseif d_sx &amp;gt;= d_xx then&lt;BR /&gt; call setVarValue("rzxxcs" ,d_xx)&lt;BR /&gt; call setVarValue("rzsxcs" ,d_sx)&lt;BR /&gt; end if&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;end sub&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;H2&gt;Now ,I have two problems:&lt;/H2&gt;&lt;H2&gt;1.Do you have another method do it?(I hope you can give me a QVW)&lt;/H2&gt;&lt;H2&gt;2.After search,How to clear the variable in the expression ?&lt;/H2&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;My Msn:willking6517@live.cn&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159161#M1309470</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>How to query the expression statistics data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159162#M1309473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No body can answer me[:'(]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 01:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159162#M1309473</guid>
      <dc:creator />
      <dc:date>2010-10-28T01:49:02Z</dc:date>
    </item>
    <item>
      <title>How to query the expression statistics data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159163#M1309476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No body can answer me[:'(]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 01:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159163#M1309476</guid>
      <dc:creator />
      <dc:date>2010-10-28T01:49:07Z</dc:date>
    </item>
    <item>
      <title>How to query the expression statistics data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159164#M1309479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you need variables to define search criteria ? Can you explain the purpose of the expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 23:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-query-the-expression-statistics-data/m-p/159164#M1309479</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2010-11-01T23:55:55Z</dc:date>
    </item>
  </channel>
</rss>

