<?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: Selecting previous year with current selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223803#M621183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, I had a inline statement for fiscal year and used the original year set as the one with data points now it works perfectly! cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 05:10:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-20T05:10:35Z</dc:date>
    <item>
      <title>Selecting previous year with current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223798#M621178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question to ask regarding how I can select a previous year selection with a current set analysis selection which i have already made. Having looked and tried other solutions on the forum they were specific for the problem and I could not find a general solution where I was able to use, can anyone please help me out with this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as of such,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;BDF_Type={"*Revenue*"}&amp;gt; * $&amp;lt;[fiscal year]-1&amp;gt; }cash)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is to select all the BDF type with the characters revenue as well as the previous fiscal year selection. The reason why i used the " * "&amp;nbsp; because I thought it would be a union set, but I am very sure that syntax is used wrongly in this context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fiscal year date format is given as 2010,2011,2012 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Royce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 03:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223798#M621178</guid>
      <dc:creator />
      <dc:date>2017-02-20T03:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year with current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223799#M621179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try like below then we can sort it out if values are generated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;BDF_Type={"*Revenue*"} &amp;gt;} cash) * &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;[fiscal year] = {'$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;[fiscal year]&lt;/SPAN&gt;)-1)'}&amp;gt; }cash)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// &lt;STRONG&gt;By above expression, I am showing for cash data points where Search string is Revenue and the Cartesian with Last Year(i.e., 2011). Is this you are expecting?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 04:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223799#M621179</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-20T04:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year with current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223800#M621180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried that expression however it gives a 0 value I do believe the second part of the syntax is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{'$(=Max(&lt;SPAN style="font-size: 13.33px;"&gt;[fiscal year]&lt;/SPAN&gt;)-1)'}&amp;gt; }&lt;/STRONG&gt; the ' ' syntax seems to be making the function =Max into a string or something&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 04:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223800#M621180</guid>
      <dc:creator />
      <dc:date>2017-02-20T04:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year with current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223801#M621181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work if your Fiscal Year has data points. Any how. Is that same you are looking because you have mentioned &lt;STRONG&gt;[Fiscal Year]-1&lt;/STRONG&gt; Here what is your intend to show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you provide sample, Please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 04:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223801#M621181</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-20T04:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year with current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223802#M621182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This statement is syntactically and logically correct in the set analysis -&amp;nbsp; &lt;EM&gt;[fiscal year] = {'$(=Max([fiscal year])-1)'}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect your required expression looks like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({&amp;lt;BDF_Type = {"*Revenue*"}, [fiscal year] = {"$(=Max([fiscal year])-1)"}&amp;gt;} cash)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum cash where BDF_Type starts with Revenue having a fiscal year one less than the largest value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that does not work, then something else is going on (such as fiscal date extending into the future), so I suggest that you post a small sample qvw to illustrate the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223802#M621182</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-02-20T05:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year with current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223803#M621183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, I had a inline statement for fiscal year and used the original year set as the one with data points now it works perfectly! cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223803#M621183</guid>
      <dc:creator />
      <dc:date>2017-02-20T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year with current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223804#M621184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers for the input once again !! it really helped. May I please also ask if it is possible to have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(sum cash where BDF_Type starts with Revenue having a fiscal year one less than the CURRENT SELECTED VALUE)?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;kind regards,&lt;/P&gt;&lt;P&gt;Royce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 06:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-with-current-selection/m-p/1223804#M621184</guid>
      <dc:creator />
      <dc:date>2017-02-20T06:34:17Z</dc:date>
    </item>
  </channel>
</rss>

