<?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 Variable in dual expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-dual-expression/m-p/1276928#M861342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help needed! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with one dimension and three expressions. &lt;/P&gt;&lt;P&gt;I would like each bar to display the calculated value, as well as an associated string value. &lt;/P&gt;&lt;P&gt;Something like the (very poorly) doctored image below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV eg.PNG" class="jive-image image-1" src="/legacyfs/online/148427_QV eg.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;At the moment, I have the following expression for the first bar:&lt;/P&gt;&lt;P&gt;=dual(SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}AGGR(SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}[Total score]),ID,Type))/&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}AGGR(SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}[Total size]),ID,Type))+0.00000001&lt;/P&gt;&lt;P&gt; &amp;amp; '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ' &amp;amp; $(vSL) ,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}AGGR(SUM({&amp;lt;[New location]=&amp;gt;}[Total Score]),ID,Type))/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;SUM({&amp;lt;[New location]=&amp;gt;}AGGR(SUM({&amp;lt;[New location]=&amp;gt;}[Total size]),ID,Type))+0.00000001)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confident that the expression itself works for the bar (highlighted red). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expression in the variable works when I copy it into a text box. &lt;/P&gt;&lt;P&gt;But as soon as I put the two together, it ignores the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried replacing the variable with a piece of text, just to see what would happen, but it still doesn't show. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>jessica_webb</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Variable in dual expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-dual-expression/m-p/1276928#M861342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help needed! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with one dimension and three expressions. &lt;/P&gt;&lt;P&gt;I would like each bar to display the calculated value, as well as an associated string value. &lt;/P&gt;&lt;P&gt;Something like the (very poorly) doctored image below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV eg.PNG" class="jive-image image-1" src="/legacyfs/online/148427_QV eg.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;At the moment, I have the following expression for the first bar:&lt;/P&gt;&lt;P&gt;=dual(SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}AGGR(SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}[Total score]),ID,Type))/&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}AGGR(SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}[Total size]),ID,Type))+0.00000001&lt;/P&gt;&lt;P&gt; &amp;amp; '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ' &amp;amp; $(vSL) ,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;SUM({&amp;lt;[New location]={'CHA'}&amp;gt;}AGGR(SUM({&amp;lt;[New location]=&amp;gt;}[Total Score]),ID,Type))/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;SUM({&amp;lt;[New location]=&amp;gt;}AGGR(SUM({&amp;lt;[New location]=&amp;gt;}[Total size]),ID,Type))+0.00000001)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confident that the expression itself works for the bar (highlighted red). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expression in the variable works when I copy it into a text box. &lt;/P&gt;&lt;P&gt;But as soon as I put the two together, it ignores the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried replacing the variable with a piece of text, just to see what would happen, but it still doesn't show. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions appreciated!&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/Variable-in-dual-expression/m-p/1276928#M861342</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in dual expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-dual-expression/m-p/1276929#M861343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you made sure that you have set your formatting to 'Expression Default' on the number's tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you might want to use Num() function to format the first part of your expression so that it is formatted the way you expect it to see&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 10:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-dual-expression/m-p/1276929#M861343</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-05T10:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in dual expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-dual-expression/m-p/1276930#M861344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny T, you are an absolute genius! (And I am very stupid &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that was exactly the problem - I hadn't formatted it correctly... &lt;/P&gt;&lt;P&gt;Thank you so, so much for responding!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 10:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-dual-expression/m-p/1276930#M861344</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-01-05T10:31:49Z</dc:date>
    </item>
  </channel>
</rss>

