<?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 Operation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090850#M362887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were talking about a &lt;EM&gt;year&lt;/EM&gt; selected in your OP, right? This list box shows dates, so your set expression needs to look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;AsOf = {$(=Date(AddMonths(AsOf,-1),'DD/MM/YYYY'))} &amp;gt;} Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 11:13:02 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-30T11:13:02Z</dc:date>
    <item>
      <title>Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090845#M362882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am an beginner on QlikView, and I would return the result (here Valu) of the year selected (here named AsOf) minus the year before (AsOf -1) in a Pivot Table. I tried this, but it returns all the result of all periods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119697_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;Cocalero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090845#M362882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T16:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090846#M362883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Valu) - Above(Sum(Valu))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;with AsOf as your dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090846#M362883</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-29T16:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090847#M362884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, maybe chart inter record functions can help you here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in a pivot table, and depending on your dimension sort order, you might need to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Valu) - &lt;STRONG&gt;Before&lt;/STRONG&gt;(Sum(Valu))&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;or&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;=Sum(Valu) - &lt;STRONG&gt;After&lt;/STRONG&gt;(Sum(Valu))&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;or&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;=Sum(Valu) - &lt;STRONG&gt;Above&lt;/STRONG&gt;(Sum(Valu))&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;or&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;=Sum(Valu) - &lt;STRONG&gt;Below&lt;/STRONG&gt;(Sum(Valu))&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;Also, with multiple dimensions, AsOf needs to be the inner most &lt;SPAN style="font-size: 13.3333px;"&gt;horizontal or vertical &lt;/SPAN&gt;dimension.&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;If this is not helping you, please post some more details, like your current chart dimensions and expressions used.&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;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090847#M362884</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-29T16:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090848#M362885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And reading that you have selected a value, all this might not really help you, but maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;AsOf = {'$(=Max(AsOf)-1)'}&amp;gt;} Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090848#M362885</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-29T16:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090849#M362886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your return swuehl, but it doesn't work :/.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my table of AsOf (Always one selected):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119766_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I would like a Pivot table which returns the result (Valu) between 2 months (AsOf - (AsOf -1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Expression that i tried:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/119767_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Any idea please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for advance of your help,&lt;/P&gt;&lt;P&gt;Cocalero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 08:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090849#M362886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-30T08:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090850#M362887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were talking about a &lt;EM&gt;year&lt;/EM&gt; selected in your OP, right? This list box shows dates, so your set expression needs to look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;AsOf = {$(=Date(AddMonths(AsOf,-1),'DD/MM/YYYY'))} &amp;gt;} Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 11:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090850#M362887</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-30T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090851#M362888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for yours return but it doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119869_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 12:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090851#M362888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-30T12:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090852#M362889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And 'doesn't work' means exactly what? No result, wrong result, or...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked that the dollar sign expansion returns the correct date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you are using AsOf as dimension in your table, you probably need to use the total qualifier to get your expression result in a cell that refers to a current AsOf value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Sum(TOTAL&amp;nbsp; {&amp;lt;AsOf = {$(=Date(AddMonths(AsOf,-1),'DD/MM/YYYY'))} &amp;gt;} Value)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;If you are using additional fields (and also AsOf field) as dimensions, you need to state these fields in the TOTAL field list:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;TOTAL&amp;lt;Dim1&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 12:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operation/m-p/1090852#M362889</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-30T12:55:13Z</dc:date>
    </item>
  </channel>
</rss>

