<?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 Active Selection Year -1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462455#M792335</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 have the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Sum({&amp;lt;[Distribution Channel] = {'Parts'},[Profit Center Desc] = {'Parts'} + {'Parts Operations'} + {'Selling Expenses'},[Customer Group Desc] -= {'Interdivisional'},&lt;/P&gt;&lt;P&gt;[Short Text] -= {'I/C Com Sales'} + {'Cost of Sales - New'},[Fiscal Year] = {$-1} &amp;gt;} [Total Revenue]),'$#,##0;($#,##0)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Fiscal Year" is currently selected in a List box elsewhere in the sheet and I need a year over year comparison, with this formula presenting the previous year. For the year over year I&amp;nbsp; attempted "$ -1" in the sum formula's selection. From my research I thought that the "$" serves as current selection. I believe I may be wrong. Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462455#M792335</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 have the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Sum({&amp;lt;[Distribution Channel] = {'Parts'},[Profit Center Desc] = {'Parts'} + {'Parts Operations'} + {'Selling Expenses'},[Customer Group Desc] -= {'Interdivisional'},&lt;/P&gt;&lt;P&gt;[Short Text] -= {'I/C Com Sales'} + {'Cost of Sales - New'},[Fiscal Year] = {$-1} &amp;gt;} [Total Revenue]),'$#,##0;($#,##0)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Fiscal Year" is currently selected in a List box elsewhere in the sheet and I need a year over year comparison, with this formula presenting the previous year. For the year over year I&amp;nbsp; attempted "$ -1" in the sum formula's selection. From my research I thought that the "$" serves as current selection. I believe I may be wrong. Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462455#M792335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462456#M792336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I would use something like this: ... [Fiscal Year] = {"$(=max([Fiscal Year])-1)"} ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 11:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462456#M792336</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-11T11:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462457#M792337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gave that a shot, however I now have an error: "Error in set modifier ad hoc element list: ',' or ')' expected". The edit expression page still says the expression is "OK". Do you have any idea what this could be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distribution Channel]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Parts'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Profit Center Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Parts'} + {'Parts Operations'} + {'Selling Expenses'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Group Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'Interdivisional'},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Short Text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'I/C Com Sales'} + {'Cost of Sales - New'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(=max([Fiscal Year])-1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Total Revenue]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'$#,##0;($#,##0)') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 13:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462457#M792337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462458#M792338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a bracket missing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distribution Channel]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Parts'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Profit Center Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Parts'} + {'Parts Operations'} + {'Selling Expenses'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Group Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'Interdivisional'},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Short Text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'I/C Com Sales'} + {'Cost of Sales - New'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(=max([Fiscal Year])-1&lt;STRONG style="font-size: 14pt;"&gt;)&lt;/STRONG&gt;'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Total Revenue]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'$#,##0;($#,##0)') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further I used double-quotes around the max-expression. In this case it might not have an impact by using single-quotes but in general there are differences, see: &lt;A href="https://community.qlik.com/qlik-blogpost/5335"&gt;Quotes in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 13:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462458#M792338</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-11T13:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462459#M792339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. It's currently pulling 0 as a value. I assume that means its selecting nothing. I know the original part of the formula pulls the right data. Are there any other options?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462459#M792339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T20:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462460#M792340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you really sure that all other parts work as expected. I suggest to leave the num() part and to reduce the expression to one set condition - if it returned the expected result then add the next condition and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462460#M792340</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-11T20:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462461#M792341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same formula for the current year (selection) data. It works as it should. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462461#M792341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Active Selection Year -1</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462462#M792342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same formula minus the year criteria that is. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Selection-Year-1/m-p/1462462#M792342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T17:29:38Z</dc:date>
    </item>
  </channel>
</rss>

