<?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 at Run Time in a Qlik Sense application in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93937#M6254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a combo chart that has a variable that checks to see if the actual is within +/- 10% of the budget and set the bars from green to red based on the result. Currently a variable is hardcoded to 10 to determine whether or not the actual is within the threshold. However, I would like to make it dynamic so the user could change the threshold to 5% or 15% as needed. I would like to add something like combo box or drop-down list box that the user can override the default value with&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;. &lt;A href="https://developer.qlik.com/garden/56728f52d1e497241ae697f8"&gt;I am trying to accomplish this without using any extensions.&lt;/A&gt; &lt;/SPAN&gt;Does anyone have any good ideas on how to implement this? I appreciate the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.codewander.com/qlik-sense-color-code-combo-chart-bar-conditionally/"&gt;http://www.codewander.com/qlik-sense-color-code-combo-chart-bar-conditionally/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2018 19:08:41 GMT</pubDate>
    <dc:creator>wdchristensen</dc:creator>
    <dc:date>2018-09-20T19:08:41Z</dc:date>
    <item>
      <title>Setting a Variable at Run Time in a Qlik Sense application</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93937#M6254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a combo chart that has a variable that checks to see if the actual is within +/- 10% of the budget and set the bars from green to red based on the result. Currently a variable is hardcoded to 10 to determine whether or not the actual is within the threshold. However, I would like to make it dynamic so the user could change the threshold to 5% or 15% as needed. I would like to add something like combo box or drop-down list box that the user can override the default value with&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;. &lt;A href="https://developer.qlik.com/garden/56728f52d1e497241ae697f8"&gt;I am trying to accomplish this without using any extensions.&lt;/A&gt; &lt;/SPAN&gt;Does anyone have any good ideas on how to implement this? I appreciate the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.codewander.com/qlik-sense-color-code-combo-chart-bar-conditionally/"&gt;http://www.codewander.com/qlik-sense-color-code-combo-chart-bar-conditionally/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 19:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93937#M6254</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-09-20T19:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable at Run Time in a Qlik Sense application</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93938#M6255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not great but it will "work for now".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script add a data island:&lt;/P&gt;&lt;P&gt;Threshold:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Threshold&lt;/P&gt;&lt;P&gt;2.5&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;15&lt;/P&gt;&lt;P&gt;20&lt;/P&gt;&lt;P&gt;25&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set the variable to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;=If(Len(GetFieldSelections(Threshold))&amp;gt;0, SubField(GetFieldSelections(Threshold), ','), 10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;I am not a huge fan of this solution since it does allow users to potentially select multiple thresholds. Ideally the selection in the filter pane should be restricted to one number only but I am not sure how to accomplish that without an extension. Unfortunately it seems like everything I read about requires an extension. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 22:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93938#M6255</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-09-20T22:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable at Run Time in a Qlik Sense application</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93939#M6256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93939#M6256</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-09-24T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable at Run Time in a Qlik Sense application</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93940#M6257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about just using min/max/avg(&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Threshold) or maybe alt(&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Threshold, AnyDefaultValueYouLike) ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background: white; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background: white; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93940#M6257</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-24T14:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a Variable at Run Time in a Qlik Sense application</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93941#M6258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus, I appreciate the response. Additionally, thanks for showing me the "alt" function. The "&lt;SPAN style="color: #3d3d3d; font-family: Helvetica, sans-serif;"&gt;alt(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif; color: #3d3d3d; background: white;"&gt;Threshold, AnyDefaultValueYouLike)" is almost exactly what I had only with a different error handling (when multiple selections are made). In my original version it took the lowest numerical value and your solution reverts to the default. I think reverting to the default may a more desirable approach but I will let the business decide. Too bad you need an extension to restrict the number of selected items to one. Seems like every time I build a new app I really "need" an extension to get the desired functionality. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 15:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-a-Variable-at-Run-Time-in-a-Qlik-Sense-application/m-p/93941#M6258</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2018-09-24T15:31:36Z</dc:date>
    </item>
  </channel>
</rss>

