<?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: Set Analysis Issue in Straight Table using Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-in-Straight-Table-using-Variable/m-p/440176#M485498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick response - I mocked up fictious data in this example so I expect to find some issues with null values but even if I add the value "10" to the Lookup Table, it still comes back with null in the yellow column for all rows.&amp;nbsp; I need it to return "40" for the row with the value of "C" and null or 0 for all other rows since they don't have a match to the Lookup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="40762" class="jive-image-thumbnail jive-image" onclick="" alt="Set Analysis Issue.JPG" src="/legacyfs/online/40762_Set Analysis Issue.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 16:28:37 GMT</pubDate>
    <dc:creator>marc_wintjen</dc:creator>
    <dc:date>2013-05-08T16:28:37Z</dc:date>
    <item>
      <title>Set Analysis Issue in Straight Table using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-in-Straight-Table-using-Variable/m-p/440174#M485496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck trying to figure out why my Set Analysis expression is not dynamically calculating for each dimenional value when using a variable and dollar sign expansion.&amp;nbsp; My chart only has one dimension.&amp;nbsp; My expression is using aggrs with other dimensions not found in the chart but does calculate without issue when I use it in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; max(aggr(rangemax( SUM(Sales)),Dimension1,Dimension2,Dimension3))&lt;BR /&gt;&lt;BR /&gt; -&lt;BR /&gt; min(aggr(rangemax( SUM(Sales)),Dimension1,Dimension2,Dimension3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;When I assign it to a variable vSalesVariance, it works fine as well if I replace the Expression with this value &lt;SPAN style="color: #008000;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;=&lt;STRONG&gt;&lt;EM style=": ; font-size: 8pt;"&gt;$(vSalesVariance)"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;So then I need to lookup the result of the the variable value against another field value so I'm using Set Analysis as follows in the 2nd Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[VarianceLookup]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;'$(vSalesVariance)'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I've tried variations using single quotes, double quotes, etc.&amp;nbsp; The only time it calculates the correct value is if I actually select only 1 dimensional value.&amp;nbsp; Otherwise, it repeats the same calcuation for each row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Anyone have some advise on why this is not working?&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Marc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 16:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-in-Straight-Table-using-Variable/m-p/440174#M485496</guid>
      <dc:creator>marc_wintjen</dc:creator>
      <dc:date>2013-05-08T16:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue in Straight Table using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-in-Straight-Table-using-Variable/m-p/440175#M485497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi what i found from your&amp;nbsp; qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;avg&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[VarianceLookup]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;'$(vSalesVariance)'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;In this expression what ever the variable value ur providing that is not matching with the&amp;nbsp; variance lookup value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;so qv is gving the null values ,if you test the expression with values it will work..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you goto the variable overview add an&amp;nbsp; = sign to the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 16:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-in-Straight-Table-using-Variable/m-p/440175#M485497</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2013-05-08T16:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue in Straight Table using Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-in-Straight-Table-using-Variable/m-p/440176#M485498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick response - I mocked up fictious data in this example so I expect to find some issues with null values but even if I add the value "10" to the Lookup Table, it still comes back with null in the yellow column for all rows.&amp;nbsp; I need it to return "40" for the row with the value of "C" and null or 0 for all other rows since they don't have a match to the Lookup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="40762" class="jive-image-thumbnail jive-image" onclick="" alt="Set Analysis Issue.JPG" src="/legacyfs/online/40762_Set Analysis Issue.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 16:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-in-Straight-Table-using-Variable/m-p/440176#M485498</guid>
      <dc:creator>marc_wintjen</dc:creator>
      <dc:date>2013-05-08T16:28:37Z</dc:date>
    </item>
  </channel>
</rss>

