<?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 Expression Value in Chart Segment Setup in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482305#M180250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good thought Cesar, but due to the nature of the expression, I can't create the equivalent in script execution to assign to a variable. Well, at least, I don't know how &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2013 15:49:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-04T15:49:42Z</dc:date>
    <item>
      <title>Using Expression Value in Chart Segment Setup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482303#M180248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pretty complex expression in a gauge chart with only one segment color. I would like to change the color of that segment if the value of my one expression is &amp;gt; 100. I know I can do this by using the same expression in my calculated segment color, but I don't like the overhead that comes with it. Is there a way to just reference the expression name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. =if(myExpressionName &amp;gt; 100, RGB(1,1,1), RGB(2,2,2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 14:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482303#M180248</guid>
      <dc:creator />
      <dc:date>2013-09-04T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Expression Value in Chart Segment Setup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482304#M180249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about storing the expression in a variable and then using it in your condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482304#M180249</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2013-09-04T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Expression Value in Chart Segment Setup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482305#M180250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good thought Cesar, but due to the nature of the expression, I can't create the equivalent in script execution to assign to a variable. Well, at least, I don't know how &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482305#M180250</guid>
      <dc:creator />
      <dc:date>2013-09-04T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Expression Value in Chart Segment Setup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482306#M180251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's fine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; You don't need to create the variable in the script, just click on Settings tab / Variable Overview. Then click add and give a name to your variable, after that you can paste your expression in the definition pane. Don't forget to put a = before the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482306#M180251</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2013-09-04T15:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Expression Value in Chart Segment Setup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482307#M180252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Holy Cow! I was not aware I could do that!&lt;/P&gt;&lt;P&gt;What is the cost of using variables in this way with complex expressions? For instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have the complex expressions in a chart that is isolated to one tab, where the calculations in the expression are only done when on that tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assign the complex expressions to a couple variables at the document level that would be calculated in every tab after every selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So would Option 2 cost more processor? Or am I thinking of this in the wrong way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 16:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482307#M180252</guid>
      <dc:creator />
      <dc:date>2013-09-04T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Expression Value in Chart Segment Setup</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482308#M180253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have the expression in a variable it's re-calculated every time you make a selection whereas when you use it on an specific chart it will only calculate when the chart is displayed. So, if you need this calculation in many objects you could stick it into a variable just to ease maintenance as it would be recalculated many times anyway. So yes, I think you are right in saying that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 10:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Expression-Value-in-Chart-Segment-Setup/m-p/482308#M180253</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2013-09-05T10:25:55Z</dc:date>
    </item>
  </channel>
</rss>

