<?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: Using a variable in a button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177028#M902398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much that worked great! &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I got it to work for the red and green buttons. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying to figure out the yellow button. I got one metric to work with it, but I cannot get the other. I got ='=$(vBurnRate)&amp;gt;=.85 and $(vBurnRate)&amp;lt;0.9' to work, but I also need to include ='=$(vBurnRate)&amp;gt;1.1 and $(vBurnRate)&amp;lt;=1.15' somehow. I tried putting or between the two but I kept getting an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 16:44:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-06T16:44:48Z</dc:date>
    <item>
      <title>Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177020#M902389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently using a variable to divide one field by another. I am trying to create a button that can choose if that variable is &amp;lt;85% or &amp;gt;115% using a search string.&amp;nbsp; Is there anyway to make a button using only that variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177020#M902389</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177021#M902391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain in more detail what you're trying to do? A small qlikview document with some data would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177021#M902391</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-05T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177022#M902392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable, &lt;EM&gt;vBurnRate&lt;/EM&gt;, that is dividing two fields from different tables. The outcome of vBurnRate is a percent. In order to place a metric on the data, anything &amp;lt;85% is red. 86-89% is yellow. 90-110% is green.&amp;nbsp; 111-114% is yellow. And &amp;gt;115% is red. I distinguish these metrics using background colors. All I need the button to do is, for example, show the ones that are &amp;lt;85% which happen to be red. If this was a normal field, I could use a button with a select in field action using the field name and I could use the search string ("&amp;lt;85%") to get my answer. If this doesn't clarify it, I can try to make a sample qlikview document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177022#M902392</guid>
      <dc:creator />
      <dc:date>2016-07-05T15:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177023#M902393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me see if I maybe understand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;vBurnRate = FieldA / FieldB&lt;/LI&gt;&lt;LI&gt;FieldA is on TableA&lt;/LI&gt;&lt;LI&gt;FieldB is on TableB&lt;/LI&gt;&lt;LI&gt;There's a chart with some dimensions and an expression of $(vBurnRate)&lt;/LI&gt;&lt;LI&gt;Button should select the rows of the chart where the $(vBurnRate) &amp;lt; 85% or &amp;gt; 115%&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing there's some key linking TableA and TableB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then maybe the button would select values from this key field with a search expression like "=$(vBurnRate)&amp;lt;.85 or $(vBurnRate)&amp;gt;1.15".&lt;/P&gt;&lt;P&gt;If I don't understand, or I do understand but that doesn't work, then yeah, a sample document to clarify and play with would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 23:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177023#M902393</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-07-05T23:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177024#M902394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Is it your requirement?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130248_1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/130249_2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/130256_3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 04:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177024#M902394</guid>
      <dc:creator>susovan</dc:creator>
      <dc:date>2016-07-06T04:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177025#M902395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are on the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. vBurnRate = $(vDevBurn)/[Developer.Dev % Complete]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vDevBurn = $(vActualEffort)/[Developer.Estimated Effort]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vActualEffort = &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(sum({$&amp;lt;[Tracker.Category]={"Design", "Development",&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; "Testing"}&amp;gt;} [Tracker.Time Reported Actual]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2. Tracker.Category and Tracker.Time Reported Actual come from a table called Tracker. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;3. Developer. Dev % Complete and Developer.Dev Estimated Effort come from a table called Developer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; These tables are both linked together by the field ID Number.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. There's a straight table with dimensions Dev.% Complete, Developer.Number and Developer.Developer. There are two expressions: $(vBurnRate) and $(vDevBurn) which is $(vActualEffort)/([Dev.Estimated Efforts])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Yes, the button should select rows of the chart when $(vBurnRate) &amp;lt;85% or &amp;gt;115%. I have these distinguished with background colors. &amp;lt;85% and &amp;gt;115% is red. 86-89% and 111-114% is yellow (&amp;gt;85% but &amp;lt;90%, and &amp;gt;110%, but &amp;lt;115%).90-110% is green. (&amp;gt;=90%, but &amp;lt;=110%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample QV file that shows my chart. I have tried using that search expression you gave me but it did not work. Thanks for your help so far! &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177025#M902395</guid>
      <dc:creator />
      <dc:date>2016-07-06T13:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177026#M902396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you mean. I have tried using Set a Variable button before and it has not worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 14:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177026#M902396</guid>
      <dc:creator />
      <dc:date>2016-07-06T14:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177027#M902397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to say that you need to do the select in the key field linking the tables, so in [ID Number], not in the variable, but I guess that wasn't very clear. I also incorrectly gave you the search expression you would type in the &lt;EM&gt;list box&lt;/EM&gt;, but that's an incomplete expression for the select in field &lt;EM&gt;search string&lt;/EM&gt;. Do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Select in Field&lt;BR /&gt;[ID Number]&lt;BR /&gt;='=$(vBurnRate)&amp;lt;.85 or $(vBurnRate)&amp;gt;1.15'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does what I think you're asking for. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177027#M902397</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-07-06T16:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177028#M902398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much that worked great! &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I got it to work for the red and green buttons. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying to figure out the yellow button. I got one metric to work with it, but I cannot get the other. I got ='=$(vBurnRate)&amp;gt;=.85 and $(vBurnRate)&amp;lt;0.9' to work, but I also need to include ='=$(vBurnRate)&amp;gt;1.1 and $(vBurnRate)&amp;lt;=1.15' somehow. I tried putting or between the two but I kept getting an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177028#M902398</guid>
      <dc:creator />
      <dc:date>2016-07-06T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177029#M902399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=($(vBurnRate)&amp;gt;=.85 and $(vBurnRate)&amp;lt;.9) or ($(vBurnRate)&amp;gt;1.1 and $(vBurnRate)&amp;lt;1.15)' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 17:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177029#M902399</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-07-06T17:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177030#M902400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its working in my sample qv document, but not in my actual one for some reason. It keeps putting the yellows along with the red selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177030#M902400</guid>
      <dc:creator />
      <dc:date>2016-07-06T18:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177031#M902401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, right. For all the buttons, add another action before the select in field that clears the field first. If you already have selections, things can get weird. I didn't think about that. I'm not certain that's &lt;EM&gt;&lt;STRONG&gt;the&lt;/STRONG&gt;&lt;/EM&gt; problem here, but it's &lt;STRONG&gt;&lt;EM&gt;a&lt;/EM&gt;&lt;/STRONG&gt; problem that you'll want to fix. If we're lucky, that also fixes the bad behavior you're seeing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 21:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177031#M902401</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-07-06T21:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177032#M902402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still is not working after putting the Clear field actions before the select in field actions. My yellow is actually being selected when the red button is selected. This is what it looks like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="button issue.png" class="jive-image image-1" src="/legacyfs/online/130492_button issue.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why it would do that with our credentials we set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Red: ='=$(vBurnRate)&amp;lt;0.85 or $(vBurnRate)&amp;gt;1.15'&lt;/P&gt;&lt;P&gt;Yellow: ='=($(vBurnRate)&amp;gt;=.85 and $(vBurnRate)&amp;lt;.9) or ($(vBurnRate)&amp;gt;1.1 and $(vBurnRate)&amp;lt;=1.15)'&lt;/P&gt;&lt;P&gt;Green: ='=$(vBurnRate)&amp;gt;=0.90 and $(vBurnRate)&amp;lt;=1.10'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 12:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177032#M902402</guid>
      <dc:creator />
      <dc:date>2016-07-07T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a button</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177033#M902403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not spotting anything wrong there. It might have something to do with how the real data model looks vs. the simplified example one, or any number of other things that might be different in the real application. It's possible to scramble and reduce the data for upload if you want to try sharing the real application. I'm not sure what else to suggest at this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-button/m-p/1177033#M902403</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-07-07T16:48:13Z</dc:date>
    </item>
  </channel>
</rss>

