<?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: show expression according to variable (or field value) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509863#M190532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression :&lt;/P&gt;&lt;P&gt;If(variableValue = 1, Expression1, If(variableValue = 2, Expression2, .............................))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Pick(variableValue, Expression1, Expression2, Expression3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label :&amp;nbsp; If(variableValue = 1, Caption1, If(variableValue = 2, Caption2, .............................))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Qlikview 11, you can show/hide an expression based on the condition&lt;/P&gt;&lt;P&gt;Chart Properties -&amp;gt; Expression -&amp;gt; Select Condition and Put your condition there in textbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 08:41:12 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-10-23T08:41:12Z</dc:date>
    <item>
      <title>show expression according to variable (or field value)</title>
      <link>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509862#M190531</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;I have a graph and i need to show expression according to the choice of the user buttons and list are possibilities but is there another way to do that?&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, 23 Oct 2013 08:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509862#M190531</guid>
      <dc:creator />
      <dc:date>2013-10-23T08:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: show expression according to variable (or field value)</title>
      <link>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509863#M190532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression :&lt;/P&gt;&lt;P&gt;If(variableValue = 1, Expression1, If(variableValue = 2, Expression2, .............................))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Pick(variableValue, Expression1, Expression2, Expression3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label :&amp;nbsp; If(variableValue = 1, Caption1, If(variableValue = 2, Caption2, .............................))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Qlikview 11, you can show/hide an expression based on the condition&lt;/P&gt;&lt;P&gt;Chart Properties -&amp;gt; Expression -&amp;gt; Select Condition and Put your condition there in textbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 08:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509863#M190532</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-23T08:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: show expression according to variable (or field value)</title>
      <link>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509864#M190533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;From the QV helpfile:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor280"&gt;&lt;/A&gt;&lt;A name="getcurrentfield"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getcurrentfield (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;GroupName&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the name of the currently active field in a group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getcurrentfield( myGroup )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor281"&gt;&lt;/A&gt;&lt;A name="getfieldselections"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getfieldselections (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; FieldName [, ValueSep &lt;BR /&gt;[, MaxValues]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns a string with the current selections in a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field &lt;BR /&gt;values. The default is ', '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to &lt;BR /&gt;be individually listed. When a larger number of values is selected the format 'x &lt;BR /&gt;of y values' will be used instead. The default is 6. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' , 10 ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor282"&gt;&lt;/A&gt;&lt;A name="getcurrentselections"&gt;&lt;/A&gt;getcurrentselections (&lt;SPAN class="Italic"&gt;[RecordSep [, TagSep [,ValueSep [, MaxValues]]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns a string with the current selections in the document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;RecordSep&lt;/SPAN&gt; is the separator to be put between field &lt;BR /&gt;records. The default is &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;TagSep&lt;/SPAN&gt; is the separator to be put between the field &lt;BR /&gt;name tag and the field values. The default is ': '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field &lt;BR /&gt;values. The default is ', '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to &lt;BR /&gt;be individually listed. When a larger number of values is selected the format 'x &lt;BR /&gt;of y values' will be used instead. The default is 6. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( chr(13)&amp;amp;chr(10) , ' = ' ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' , 10 &lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor283"&gt;&lt;/A&gt;&lt;A name="getselectedcount"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getselectedcount (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;FieldName [, &lt;BR /&gt;IncludeExcluded]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the current number of selected values in a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;SPAN class="Italic"&gt;IncludeExcluded&lt;/SPAN&gt; is true the count will include &lt;BR /&gt;selected values, which are currently excluded by selections in other fields. If &lt;BR /&gt;false or omitted these values will not be included. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getselectedcount ( Year ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getselectedcount ( Year, true( ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor284"&gt;&lt;/A&gt;&lt;A name="getnotselectedcount"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getnotselectedcount (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; FieldName [, &lt;BR /&gt;IncludeExcluded]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the current number of not-selected values in a field in a field with &lt;BR /&gt;&lt;A _jive_internal="true" class="MCXref_0" href="https://community.qlik.com/thread/And-mode in List Boxes.htm"&gt;&lt;EM&gt;AND-Mode in List &lt;BR /&gt;Boxes&lt;/EM&gt;&lt;/A&gt; (red values in list box). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;SPAN class="Italic"&gt;IncludeExcluded&lt;/SPAN&gt; is true the count will include &lt;BR /&gt;selected values, which are currently excluded by selections in other fields. If &lt;BR /&gt;false or omitted these values will not be included. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getnotselectedcount ( Year )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getnotselectedcount (Year,true())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor285"&gt;&lt;/A&gt;&lt;A name="getpossiblecount"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getpossiblecount (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the current number of possible values in a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getpossiblecount ( Year ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor286"&gt;&lt;/A&gt;&lt;A name="getexcludedcount"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getexcludedcount (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the current number of excluded values in a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getexcludedcount ( Year ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor287"&gt;&lt;/A&gt;&lt;A name="getalternativecount"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getalternativecount (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the current number of alternative values in a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;getalternativecount ( Year ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 08:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509864#M190533</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2013-10-23T08:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: show expression according to variable (or field value)</title>
      <link>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509865#M190534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define a variable&lt;/P&gt;&lt;P&gt;say vVar=1(this will become 1 only when button is pressed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression tick enable and give a condition for a particular expression that&lt;/P&gt;&lt;P&gt;if(vVar=1,your expression);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 08:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509865#M190534</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-23T08:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: show expression according to variable (or field value)</title>
      <link>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509866#M190535</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 can hide your expression conditionally according to the action of your button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression tab write your condition in conditional box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 08:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-expression-according-to-variable-or-field-value/m-p/509866#M190535</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-10-23T08:43:37Z</dc:date>
    </item>
  </channel>
</rss>

