<?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: Best practices for using thresholds stored in a database in expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-practices-for-using-thresholds-stored-in-a-database-in/m-p/852193#M1009175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can adapt this, chane the source from excel to db&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/" title="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/"&gt;Storing variables outside of QlikView - The Qlik Fix! The Qlik Fix!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 16:21:53 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-04-29T16:21:53Z</dc:date>
    <item>
      <title>Best practices for using thresholds stored in a database in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Best-practices-for-using-thresholds-stored-in-a-database-in/m-p/852191#M1009173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So let's say I have the fairly common scenario of wanting to dashboard certain measures compared to certain thresholds.&lt;/P&gt;&lt;P&gt;For a simple example, student attendance threshold is 90%, student grades and the threshold is 75% etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I would just set a variable like vAttendaceThreshold, and then compare my set to the variable and change visuals to green or red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let's say all of the thresholds are stored in a table. Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threshold&lt;/P&gt;&lt;P&gt;Attendance&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .90&lt;/P&gt;&lt;P&gt;Grades&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could use a where statement and then a peek to set the variable.&lt;/P&gt;&lt;P&gt;But I was wondering if anyone had ever dynamically created variables to simplify this? Basically loop through each field and create a variable based on the field name and then assign the threshold value to it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, is there another method altogether? For example if I just loaded the table is there a function that I can pass 'Attendance' and get the threshold .90 returned? Something like fieldValue or fieldIndex or some such thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any thoughts or suggestions on how you would do this! &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt;&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-practices-for-using-thresholds-stored-in-a-database-in/m-p/852191#M1009173</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2015-04-29T14:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using thresholds stored in a database in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Best-practices-for-using-thresholds-stored-in-a-database-in/m-p/852192#M1009174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm this looks similar to what I'm thinking&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.beeye.org/2012/10/04/qlikview-generate-dynamic-variables/" style="font-size: 10pt; line-height: 1.5em;" title="http://www.beeye.org/2012/10/04/qlikview-generate-dynamic-variables/"&gt;http://www.beeye.org/2012/10/04/qlikview-generate-dynamic-variables/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-practices-for-using-thresholds-stored-in-a-database-in/m-p/852192#M1009174</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2015-04-29T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using thresholds stored in a database in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Best-practices-for-using-thresholds-stored-in-a-database-in/m-p/852193#M1009175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can adapt this, chane the source from excel to db&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/" title="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/"&gt;Storing variables outside of QlikView - The Qlik Fix! The Qlik Fix!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 16:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-practices-for-using-thresholds-stored-in-a-database-in/m-p/852193#M1009175</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-29T16:21:53Z</dc:date>
    </item>
  </channel>
</rss>

