<?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 Variable to make a dynamic expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297772#M1199533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, is there a way to make the variable automatically choose the first value of the table?&lt;/P&gt;&lt;P&gt;So if the table contains Sales and Quantity it auto selects Sales. But if the table only contains Quantity (ie Quantity is selected, ergo is the only value in the table) then the variable of course chooses quantity.&lt;/P&gt;&lt;P&gt;This is to eliminate the situation where nothing is selected which renders the graphs useless (since no value is selected which makes the variable unset).&lt;/P&gt;&lt;P&gt;I have an idea to do this using =max(sumformula) for the variable declaration instead of =sumformula. But I don't know the proper syntax for it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 16:26:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-03T16:26:42Z</dc:date>
    <item>
      <title>Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297766#M1199527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add a variable to my expressions to make it dynamic in the sense of what is inside the sum() and avg() functions.&lt;/P&gt;&lt;P&gt;I have two charts right now using the expression sum(Profit) and avg(Profit). But instead of having Profit as a fixed term I want to add a variable that is controlled by a combo box next to the charts to use Sales and Quantity instead (ie. sum(Sales) if Sales is selected, sum(Quantity) if quantity is selected etc.).&lt;/P&gt;&lt;P&gt;How do I add this variable and how do I create the combo box that controls it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297766#M1199527</guid>
      <dc:creator />
      <dc:date>2011-01-03T11:43:59Z</dc:date>
    </item>
    <item>
      <title>Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297767#M1199528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be this would not be the best way to achieve what you want. but right now what i have in mind to achieve it is as follows: make two similar charts with two different expressions (Sum(Sales) and Sum(Quantity)). Create an inline load of a field say "SELECT" with values 'Sales' and 'Quantity'. now put the expression in "Layout tab-&amp;gt;Show-&amp;gt;Conditional" accordingly (SELECT="Sales"/"Quantity"). now put the identical(but with different expression) charts overlapped. now the charts would be shown according to your selection.&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297767#M1199528</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-01-03T12:09:42Z</dc:date>
    </item>
    <item>
      <title>Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297768#M1199529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei attach is an example&lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;P&gt;you can as much expressions as you want&lt;/P&gt;&lt;P&gt;this way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297768#M1199529</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-01-03T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297769#M1199530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you RoiUser!&lt;/P&gt;&lt;P&gt;That's exactly what I'm after.&lt;/P&gt;&lt;P&gt;What I do not understand in your code though is your references to "$(SumGraph)" and "$(AvgGraph)" in expression definitions.&lt;/P&gt;&lt;P&gt;Where are these variables set? I Can't find SumGraph anywhere else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297769#M1199530</guid>
      <dc:creator />
      <dc:date>2011-01-03T12:51:12Z</dc:date>
    </item>
    <item>
      <title>Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297770#M1199531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei&lt;/P&gt;&lt;P&gt;look at the varaibles of the document&lt;/P&gt;&lt;P&gt;yuo'll see those vars&lt;/P&gt;&lt;P&gt;they get the string of the function, by calling the var with $() it calculating the string as function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 13:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297770#M1199531</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-01-03T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297771#M1199532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;I found it now. I had never used the variable window before so I didn't know where it was.&lt;/P&gt;&lt;P&gt;I also added the label "='Total ' &amp;amp; field" to the graph to make the label interactive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 14:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297771#M1199532</guid>
      <dc:creator />
      <dc:date>2011-01-03T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297772#M1199533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, is there a way to make the variable automatically choose the first value of the table?&lt;/P&gt;&lt;P&gt;So if the table contains Sales and Quantity it auto selects Sales. But if the table only contains Quantity (ie Quantity is selected, ergo is the only value in the table) then the variable of course chooses quantity.&lt;/P&gt;&lt;P&gt;This is to eliminate the situation where nothing is selected which renders the graphs useless (since no value is selected which makes the variable unset).&lt;/P&gt;&lt;P&gt;I have an idea to do this using =max(sumformula) for the variable declaration instead of =sumformula. But I don't know the proper syntax for it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 16:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297772#M1199533</guid>
      <dc:creator />
      <dc:date>2011-01-03T16:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable to make a dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297773#M1199534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I look at your file It is really great. I really like your variables in this application. They way they react to a fieldselection is precisly what i need. I just can't figure out how you made those variables. I tried to make them myself, but they do not respond to my field selection.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;According to your file you have a variable:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;DIV&gt;AvgGraph&lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;When i look at the variable overview i see&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;AvgGraph = avgformula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i thought. If i make my own field, for example Storename and i make a variable named Store.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Store = Storename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to test it with an inputfield. the variable shoul change with it when i change my fieldvalue in the field Storename. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example ,.when i select winkel1 in Storename, my variable should automaticly change into winkel1 as wel, but stays 'Storename'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be so kind to tell me how you made your SET variabel in your script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-make-a-dynamic-expression/m-p/297773#M1199534</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2012-08-17T09:53:25Z</dc:date>
    </item>
  </channel>
</rss>

