<?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: Max() not working in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336531#M577897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got this to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$(=Max(&lt;A href="Fiscal Year"&gt;&lt;/A&gt;,1))}&lt;/P&gt;&lt;P&gt;{$(=Max(&lt;A href="Fiscal Year"&gt;&lt;/A&gt;,2))}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 18:15:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-05T18:15:53Z</dc:date>
    <item>
      <title>Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336528#M577894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am trying to get this formula to work to calculate the prior year's data.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have a chart that I always want to show the maximum year selected in one column and the prior year in the other column based on the maximum year selected minus 1.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;For some reason this keeps ignoring the this portion &lt;SPAN style="color: #800000;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=max([Fiscal Year])-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;nbsp; What am I doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=max([Fiscal Year])-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year and Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year and Quarter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Order Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 17:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336528#M577894</guid>
      <dc:creator />
      <dc:date>2012-03-05T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336529#M577895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi debbiepy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please try with simple quote instead of double quote?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Youssouf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336529#M577895</guid>
      <dc:creator />
      <dc:date>2012-03-05T18:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336530#M577896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that and still no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a pivot table with two dimensions for Quarter and Year.  I get the cumulated data for each year, one for max(FY) and one for Max(FY)-1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.png@01CCFAC0.52F1B9A0"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336530#M577896</guid>
      <dc:creator />
      <dc:date>2012-03-05T18:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336531#M577897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got this to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$(=Max(&lt;A href="Fiscal Year"&gt;&lt;/A&gt;,1))}&lt;/P&gt;&lt;P&gt;{$(=Max(&lt;A href="Fiscal Year"&gt;&lt;/A&gt;,2))}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336531#M577897</guid>
      <dc:creator />
      <dc:date>2012-03-05T18:15:53Z</dc:date>
    </item>
    <item>
      <title>Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336532#M577898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normaly you don't need following constraints&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;[Fiscal Year and Month]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;[Fiscal Year and Quarter]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What happen when you remove it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guest that is applied after the &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;"=$(=max([Fiscal Year])-1)"&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that it display all Quarters &amp;amp; Months ignoring the first constraint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336532#M577898</guid>
      <dc:creator />
      <dc:date>2012-03-05T18:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336533#M577899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the user selects the current Fiscal Year,  or other Fiscal Period I want the chart to still populate the prior year regardless.   But I want the chart to still be filtered by Partner just not periods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THe only period filter is the one to determine the maximum so if use selects 2012, the maxium period will show and the other column will contain 2011 data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336533#M577899</guid>
      <dc:creator />
      <dc:date>2012-03-05T18:23:07Z</dc:date>
    </item>
    <item>
      <title>Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336534#M577900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please post an application with a sample data? &lt;/P&gt;&lt;P&gt;so that I could see it physically.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 18:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336534#M577900</guid>
      <dc:creator />
      <dc:date>2012-03-05T18:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max() not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336535#M577901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works.  I had to use a differ value to get maximum year so the selection of Fiscal Year did not affect the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current year:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;[# of FYs from Current] = {'$(=max(&lt;A href="# of FYs from Current"&gt;&lt;/A&gt;,1))'},[Fiscal Year]=,[Fiscal Year and Quarter]=,[Fiscal Year and Month]=&amp;gt;} distinct &lt;A href="Order Number"&gt;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior year:  Had to use minus 1 because the max(,2) did not work.  I am not sure why.&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;[# of FYs from Current] = {'$(=max(&lt;A href="# of FYs from Current"&gt;&lt;/A&gt;,1)-1)'},[Fiscal Year]= ,[Fiscal Year and Quarter]=,[Fiscal Year and Month]=&amp;gt;} distinct &lt;A href="Order Number"&gt;&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 19:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-not-working-in-set-analysis/m-p/336535#M577901</guid>
      <dc:creator />
      <dc:date>2012-03-05T19:42:23Z</dc:date>
    </item>
  </channel>
</rss>

