<?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 Set analysis and current expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481557#M179948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a straight table by &lt;SPAN style="color: #0000ff;"&gt;vendorID &lt;/SPAN&gt;and sales of the last three months, for this i m using this set_analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sum({1&amp;lt;&lt;/TD&gt;&lt;TD&gt;Date={"&amp;gt;=$(=Date(AddMonths(Max(Date),-$(&lt;SPAN style="color: #008000;"&gt;&lt;EM&gt;VarMonthsAccum&lt;/EM&gt;&lt;/SPAN&gt;)+1)))"}&amp;gt;} SALES)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="DocName" value="D:\QVDocs\Ventas\Ventas Completo con Bajas.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\CH544" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="DocName" value="D:\QVDocs\Ventas\Ventas Completo con Bajas.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\CH544" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #008000;"&gt;VarMonthsAccum&lt;/EM&gt; (VARIABLE = 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i select a &lt;SPAN style="color: #0000ff;"&gt;vendorID&lt;/SPAN&gt;, the table is kept without changing, my problem is that I NEED that only the &lt;SPAN style="color: #0000ff;"&gt;vendorID &lt;/SPAN&gt;line was shown, how could i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Aug 2013 16:35:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-09T16:35:43Z</dc:date>
    <item>
      <title>Set analysis and current expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481557#M179948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a straight table by &lt;SPAN style="color: #0000ff;"&gt;vendorID &lt;/SPAN&gt;and sales of the last three months, for this i m using this set_analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sum({1&amp;lt;&lt;/TD&gt;&lt;TD&gt;Date={"&amp;gt;=$(=Date(AddMonths(Max(Date),-$(&lt;SPAN style="color: #008000;"&gt;&lt;EM&gt;VarMonthsAccum&lt;/EM&gt;&lt;/SPAN&gt;)+1)))"}&amp;gt;} SALES)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="DocName" value="D:\QVDocs\Ventas\Ventas Completo con Bajas.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\CH544" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="DocName" value="D:\QVDocs\Ventas\Ventas Completo con Bajas.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\CH544" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #008000;"&gt;VarMonthsAccum&lt;/EM&gt; (VARIABLE = 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i select a &lt;SPAN style="color: #0000ff;"&gt;vendorID&lt;/SPAN&gt;, the table is kept without changing, my problem is that I NEED that only the &lt;SPAN style="color: #0000ff;"&gt;vendorID &lt;/SPAN&gt;line was shown, how could i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 16:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481557#M179948</guid>
      <dc:creator />
      <dc:date>2013-08-09T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and current expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481558#M179949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;lt;Date={"&amp;gt;=$(=Date(AddMonths(Max(Date),-$(VarMonthsAccum)+1)))"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;That &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; means that all selections are disregarded. So your selection of vendorID is ignored in the expression. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;You can replace the &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; with only those fields for which you want the selections to be disregarded. The below expression for example would disregard only selections in the fields MyDim1 and MyDim2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;STRONG&gt;MyDim1=,MyDim2=,&lt;/STRONG&gt; Date={"&amp;gt;=$(=Date(AddMonths(Max(Date),-$(VarMonthsAccum)+1)))"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want the expression to ignore selections then you can simply leave out the 1:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Date={"&amp;gt;=$(=Date(AddMonths(Max(Date),-$(VarMonthsAccum)+1)))"}&amp;gt;} SALES)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Aug 2013 17:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481558#M179949</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-10T17:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and current expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481559#M179950</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;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Date = {"&amp;gt;=$(=Date(AddMonths(Max(Date),-3),'MM-DD-YYYY'))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Aug 2013 06:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481559#M179950</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2013-08-11T06:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and current expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481560#M179951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was exactly what was happening, now i delete the "1" and add the field I want to be ignored (PERIOD_NAME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date={"&amp;gt;=$(=Date(AddMonths(Max(Date),-$(&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&lt;EM&gt;VarMonthsAccum&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;)+1)))"},PERIOD_NAME=&amp;gt;}&amp;nbsp; SALES)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 16:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-current-expression/m-p/481560#M179951</guid>
      <dc:creator />
      <dc:date>2013-08-12T16:13:13Z</dc:date>
    </item>
  </channel>
</rss>

