<?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: Variables in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393409#M146697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this expression instead to come to a solution, it works now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[FinancialYear]={'$(&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt;)'}&amp;gt;}&lt;STRONG&gt;calGP&lt;/STRONG&gt;) / sum({&amp;lt;[FinancialYear]={'$(&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt;)'}&amp;gt;}&lt;STRONG&gt;val&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 11:38:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-04T11:38:24Z</dc:date>
    <item>
      <title>Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393406#M146694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table chart with a list of customers highlighting their Gross Profit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason QV has the GPs of each customer exactly the same in my report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I specify 1 customer I'm given the correct GP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the details...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 variables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;vGP&lt;/STRONG&gt; =(sum(calGP)/sum(val))&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt; =yearname(today(), 0, 4 )&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this set analysis expression - sum({&amp;lt;[FinancialYear]={'$(&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt;)'}&amp;gt;}&lt;STRONG&gt;vGP&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reason why variables will not work in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 10:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393406#M146694</guid>
      <dc:creator />
      <dc:date>2013-01-04T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393407#M146695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first of all check ur variables, its giving correct result r not, n if they r right &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this, just i changed ' to "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[FinancialYear]={"$(&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt;)"}&amp;gt;}&lt;STRONG&gt;vGP&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 11:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393407#M146695</guid>
      <dc:creator>khadeer</dc:creator>
      <dc:date>2013-01-04T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393408#M146696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variables are ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use this expression I get the completely wrong values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[FinancialYear]={'$(&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt;)'}&amp;gt;}&lt;STRONG&gt;calGP/val&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the ' to " I still receive the same results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 11:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393408#M146696</guid>
      <dc:creator />
      <dc:date>2013-01-04T11:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393409#M146697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this expression instead to come to a solution, it works now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[FinancialYear]={'$(&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt;)'}&amp;gt;}&lt;STRONG&gt;calGP&lt;/STRONG&gt;) / sum({&amp;lt;[FinancialYear]={'$(&lt;STRONG&gt;vCurrentFY2&lt;/STRONG&gt;)'}&amp;gt;}&lt;STRONG&gt;val&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 11:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/393409#M146697</guid>
      <dc:creator />
      <dc:date>2013-01-04T11:38:24Z</dc:date>
    </item>
  </channel>
</rss>

