<?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 setting a variable with a listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226685#M78854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make a variable to list predefined values in drop-down (see input box properties).&lt;BR /&gt;Then make chart expression to perform different calculations based on selected variable&lt;BR /&gt;Chart expression: if(vMeasure='Sales',sum(Sales), if(vMeasure='Payments',sum(Payments), if .... )))&lt;BR /&gt;&lt;BR /&gt;Another possibility is to load an inline table to show the measures in list box, instead of drop-down.&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Measures:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Measure&lt;BR /&gt; Sales&lt;BR /&gt; Payments&lt;BR /&gt;];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Chart expression: same as above. &lt;BR /&gt;&lt;BR /&gt;And yet another possibility is to load inline table with both measure and expression, like:&lt;BR /&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Measures:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Measure, ChartExpression&lt;BR /&gt; Sales, sum(Sales)&lt;BR /&gt; Payments, sum(Payments)&lt;BR /&gt;];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Chart expression: $(=ChartExpression)&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 14:10:34 GMT</pubDate>
    <dc:creator>tanelry</dc:creator>
    <dc:date>2011-02-23T14:10:34Z</dc:date>
    <item>
      <title>setting a variable with a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226683#M78852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I can't create a two-dimensional pivot table and have the expression in a cycle group. The cycle group button does not appear in the table.&lt;/P&gt;&lt;P&gt;So to get round this I'm using a variable to hold the the expression in the pivot table. For example, the variable contains the text "sum(payments)". This works fine, but now I need the user to be able to select from a list of available expressions, which will change the value of the variable and alter the table. What's the best way to do this?&lt;/P&gt;&lt;P&gt;Is there a better alternative to this idea? Hope this makes sense!&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 11:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226683#M78852</guid>
      <dc:creator />
      <dc:date>2011-02-23T11:54:33Z</dc:date>
    </item>
    <item>
      <title>setting a variable with a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226684#M78853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If possible please send the sample application. I will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 12:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226684#M78853</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-23T12:51:43Z</dc:date>
    </item>
    <item>
      <title>setting a variable with a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226685#M78854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make a variable to list predefined values in drop-down (see input box properties).&lt;BR /&gt;Then make chart expression to perform different calculations based on selected variable&lt;BR /&gt;Chart expression: if(vMeasure='Sales',sum(Sales), if(vMeasure='Payments',sum(Payments), if .... )))&lt;BR /&gt;&lt;BR /&gt;Another possibility is to load an inline table to show the measures in list box, instead of drop-down.&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Measures:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Measure&lt;BR /&gt; Sales&lt;BR /&gt; Payments&lt;BR /&gt;];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Chart expression: same as above. &lt;BR /&gt;&lt;BR /&gt;And yet another possibility is to load inline table with both measure and expression, like:&lt;BR /&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Measures:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Measure, ChartExpression&lt;BR /&gt; Sales, sum(Sales)&lt;BR /&gt; Payments, sum(Payments)&lt;BR /&gt;];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Chart expression: $(=ChartExpression)&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 14:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226685#M78854</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2011-02-23T14:10:34Z</dc:date>
    </item>
    <item>
      <title>setting a variable with a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226686#M78855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I know this one has been solved a while ago but it helped me in doing something and thought I'd add something on the end of this post for anyone else.&lt;/P&gt;&lt;P&gt;I found that putting the expressions in the inline table works but you have to be careful referring to fields which have multiple words in them. For example, I tried to put an expression (along with a load of set analysis, which worked!) into the inline table but it seemed to be giving me trouble as it was in there as [Invoice Value]. I changed this to say "Invoice Value" instead and it worked.&lt;/P&gt;&lt;P&gt;Just thought I'd add that little nugget.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 11:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-a-variable-with-a-listbox/m-p/226686#M78855</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2011-04-14T11:45:40Z</dc:date>
    </item>
  </channel>
</rss>

