<?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: Reference variables from value in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271349#M101726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Erica, I'm finding it really difficult to follow what you're doing.&amp;nbsp; Can you post some screenshots and exact expressions that you are using if you are not able to post the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 11:14:57 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-02-13T11:14:57Z</dc:date>
    <item>
      <title>Reference variables from value in field</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271346#M101723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have an issue which should be simple to resolve.... but it isn't!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a chart that is restricted based on a number of different measurements. Measure A Measure B Measure C etc, that each have a max and min value attributed to them. The chart displays one bar per measure per whether they exceed the max or the min - &lt;/P&gt;&lt;P&gt;eg &lt;/P&gt;&lt;P&gt;Measure a above max&lt;/P&gt;&lt;P&gt;measure a below min&lt;/P&gt;&lt;P&gt;measure b above max&lt;/P&gt;&lt;P&gt;measure b below min&lt;/P&gt;&lt;P&gt;:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I am achieving this by joining the table containing the measures to a max and min input table and restricting the dimensino on the chart to an expression like : =if( Val &amp;gt;= Max then Measure &amp;amp; ' above Max',&lt;/P&gt;&lt;P&gt;&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;&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; if(Val &amp;lt;Min ,Measure &amp;amp; ' below min')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on a table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Val&lt;/P&gt;&lt;P&gt;A&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; X&lt;/P&gt;&lt;P&gt;A&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; X&lt;/P&gt;&lt;P&gt;B&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; X&lt;/P&gt;&lt;P&gt;B&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; X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;joint to an input table&lt;/P&gt;&lt;P&gt;Measure, Max, Min&lt;/P&gt;&lt;P&gt;A, 50, 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is so the user can enter their own limits. I am calculating this in the dimension rather than an expression so the user can click on one of the bars and filter for just the minimum&amp;nbsp; or maximum values of A (which then pop up in a separate screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the flexibility that you get with variables though, as the input table isn't user friendly. My first option was to create a variable for each min / max and do a nested if, but this was memory intensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do now is join the measurements table onto a table which lists variable names in the fields.EG&lt;/P&gt;&lt;P&gt;Measure VariableMaxName VariableMinName&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vAMax&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; vAMin&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vBMax&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; vBMin&lt;/P&gt;&lt;P&gt;:&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;&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; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then reference these in a table. The problem is that I can't get it to call the value from the variable, even in a straight table expression. I've tried =$(VariableMaxName) and then various combinations of quotes, equals signs and even a dollar sign expansion inside a dollar sign expansion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone give me insight as to why this isn't working? It just wont return the value of the variable - only a null. I have tried something similar before, but where it references a field, rather than a variable. Help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 11:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271346#M101723</guid>
      <dc:creator />
      <dc:date>2012-02-10T11:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reference variables from value in field</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271347#M101724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 15:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271347#M101724</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-02-10T15:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reference variables from value in field</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271348#M101725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Jason, If I have time I will create a dummy example of what I am trying to do, as the data I am working with is too sensitive to reference in this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a couple more things, and the question is why&amp;nbsp; can't I reference a variable as &lt;EM&gt;part &lt;/EM&gt;of a dollar sign expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now tried referencing the variable as part of the string, and this doesn't work either. Is this something that is &lt;/P&gt;&lt;P&gt;not allowed in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. Where Measures = A and B, variables are vAMax (=1), vAMin (=2), vBMax (=3), vBMin (=4), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&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; Result as displayed in straight table&lt;/P&gt;&lt;P&gt;~~~~~~~~&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; ~~~~~~&lt;/P&gt;&lt;P&gt;='v'&amp;amp;Measure&amp;amp;'Max'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vAMax&lt;/P&gt;&lt;P&gt;=vAMax&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;=$('v'&amp;amp;Measure&amp;amp;'Max')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;=$(='v'&amp;amp;Measure&amp;amp;'Max')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;=v$(Measure)Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although the above work with field names..... please can someone either help, workaround or explain if there is a logical reason as to why this is not working? I can't be the only person to have wanted to reference variables in this dynamic way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 10:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271348#M101725</guid>
      <dc:creator />
      <dc:date>2012-02-13T10:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reference variables from value in field</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271349#M101726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Erica, I'm finding it really difficult to follow what you're doing.&amp;nbsp; Can you post some screenshots and exact expressions that you are using if you are not able to post the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271349#M101726</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-02-13T11:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reference variables from value in field</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271350#M101727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason, I have had to work around the problem in the end using a pick match statement. Apologies as I didnt have more time, thank you for your interest all the same,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 07:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271350#M101727</guid>
      <dc:creator />
      <dc:date>2012-02-18T07:30:57Z</dc:date>
    </item>
    <item>
      <title>Reference variables from value in field</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271351#M101728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Measure is a dimension in your chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it's probably a matter of when and in what context your dollar sign expression needs to be evaluated. I believe you would need a syntax that would evaluate the expression in global context, not regarding your dimension value.&lt;/P&gt;&lt;P&gt;A pick / match combination seems to be a reasonably workaround to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 13:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271351#M101728</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-18T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Reference variables from value in field</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271352#M101729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers Stefan. Measure is a dimension in the chart, and the expression shows the counts that are greater / larger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are only 5 measures at the moment, so a Pick / match combo is reasonable as you mentioned. eventually I would like to add more, and have some flexibility so if there was a way to reference it that would be smashing! But it works for now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 16:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-variables-from-value-in-field/m-p/271352#M101729</guid>
      <dc:creator />
      <dc:date>2012-02-18T16:57:50Z</dc:date>
    </item>
  </channel>
</rss>

