<?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 in calculated variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180739#M628324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Perhaps This&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=sum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;{$&amp;lt;[Year] = {'2016'} $&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;vProject#))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OR For testing check this&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;[Year] = {'2016'} $&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-style: inherit;"&gt;vProject#)),&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[ForecastCategoryName])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;or &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Would you able to provide sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 09:15:24 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2016-09-12T09:15:24Z</dc:date>
    <item>
      <title>Set Analysis in calculated variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180735#M628320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;I have a variable wich is set and calculated as Include statement in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vProject# = sum({$&amp;lt;[ForecastCategoryName] = {'Pipeline'},DateType = {'Snapshot Date'}&amp;gt;}[# Opportunity])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the front end expression of the chart is defined as $(&lt;SPAN style="font-size: 13.3333px;"&gt;vProject#)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But now i have several dimensions like country and year which a want to slice and dice trough this calculation in the frond end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i write this properly?&lt;/P&gt;&lt;P&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;[Year] = {'2016'},($&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vProject#)) will not work. Pls advice&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Robbie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 08:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180735#M628320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in calculated variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180736#M628321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;$(=only({&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$&amp;lt;[Year] = {'2016'}&amp;gt;&lt;/SPAN&gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vProject#&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Greeshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180736#M628321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T09:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in calculated variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180737#M628322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope,&lt;/P&gt;&lt;P&gt;No resuls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180737#M628322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T09:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in calculated variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180738#M628323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, your set analysis expression is wrong and invalid and it will return null. Try maybe, tweak it a bit like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;[ForecastCategoryName] = {'Pipeline'},DateType = {'Snapshot Date'}, [Year] = {'2016'} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;[# Opportunity]) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;With these you can do what you want &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MB&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180738#M628323</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-09-12T09:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in calculated variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180739#M628324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Perhaps This&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=sum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;{$&amp;lt;[Year] = {'2016'} $&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;vProject#))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OR For testing check this&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;[Year] = {'2016'} $&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-style: inherit;"&gt;vProject#)),&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[ForecastCategoryName])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;or &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Would you able to provide sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180739#M628324</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-12T09:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in calculated variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180740#M628325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No matter how you want to massage your expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;[Year] = {'2016'},($&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vProject#))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;you will not get that to work, as this a nested Sum statement which is not allowed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;You can go with &lt;A href="https://community.qlik.com/qlik-users/204044"&gt;miguelbraga&lt;/A&gt;‌'s solution above, or&amp;nbsp; you could try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;=Sum({$&amp;lt;[Year] = {'2016'}&amp;gt;} Aggr($(vProject#), Year, &lt;EM&gt;chartdim1, chartdim2&lt;/EM&gt;, ...))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Where &lt;EM&gt;chartdim1, chartdim2 &lt;/EM&gt;is comma separated list of all (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;one or more ) &lt;/SPAN&gt;the chart dimensions.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-calculated-variable/m-p/1180740#M628325</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-12T09:30:16Z</dc:date>
    </item>
  </channel>
</rss>

