<?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: Replace Set Anlisys with If statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493831#M1124543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Albert,&lt;/P&gt;&lt;P&gt;I used the instruction that you give me advice&lt;/P&gt;&lt;P&gt;if I make a table with 3 columns over the years, from 2013 to 2011,&lt;/P&gt;&lt;P&gt;education works.&lt;/P&gt;&lt;P&gt;If I select the year 2012, I expect that the table is for &lt;/P&gt;&lt;P&gt;the year 2012, 2011 and 2010. Instead I see only the first column.&lt;/P&gt;&lt;P&gt;The instructions I use are:&lt;/P&gt;&lt;P&gt;Column 1 Year 2013: sum (if (year = max (total year), Num))&lt;/P&gt;&lt;P&gt;Column 2 Year 2012: sum (if (year = max (total (year-1)), Num))&lt;/P&gt;&lt;P&gt;Column 3 Year 2011: sum (if (year = max (total (year-2)), Num))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 12:26:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-10T12:26:18Z</dc:date>
    <item>
      <title>Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493825#M1124537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;I have an old version of QLV (Vers 7.xxx)&lt;/P&gt;&lt;P&gt;how do I replace a statement of Set Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum( {&amp;lt;Year={"$(=max(Year))"}&amp;gt;}&amp;nbsp; Num)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with an If statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum (if (Year = max (Year), Num,''))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank All&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493825#M1124537</guid>
      <dc:creator />
      <dc:date>2014-01-10T10:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493826#M1124538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marino,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to do at script level. It will be a calculation where you will use function like above/ peek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just replacing the Expression will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493826#M1124538</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2014-01-10T10:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493827#M1124539</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;I think what you will have to is create a variable, and use that in the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable&amp;nbsp;&amp;nbsp; vMaxYear&amp;nbsp; definition&amp;nbsp; =Max(Year)&lt;/P&gt;&lt;P&gt;(Note that the = is part of the expression. This is important as it means that the variable is evaluated as soon as you make a selection, and not within the chart itself)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can say&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum( If(Year=$(vMaxYear ),&amp;nbsp; Num))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PS: Why not upgrade to a more recent version?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 11:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493827#M1124539</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-10T11:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493828#M1124540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marino,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Colin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 11:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493828#M1124540</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-10T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493829#M1124541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use Sum (if (Year = max ({1}Year), Num,''))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 11:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493829#M1124541</guid>
      <dc:creator />
      <dc:date>2014-01-10T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493830#M1124542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This command uses set analysis though&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max({1} Year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 11:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493830#M1124542</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-10T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493831#M1124543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Albert,&lt;/P&gt;&lt;P&gt;I used the instruction that you give me advice&lt;/P&gt;&lt;P&gt;if I make a table with 3 columns over the years, from 2013 to 2011,&lt;/P&gt;&lt;P&gt;education works.&lt;/P&gt;&lt;P&gt;If I select the year 2012, I expect that the table is for &lt;/P&gt;&lt;P&gt;the year 2012, 2011 and 2010. Instead I see only the first column.&lt;/P&gt;&lt;P&gt;The instructions I use are:&lt;/P&gt;&lt;P&gt;Column 1 Year 2013: sum (if (year = max (total year), Num))&lt;/P&gt;&lt;P&gt;Column 2 Year 2012: sum (if (year = max (total (year-1)), Num))&lt;/P&gt;&lt;P&gt;Column 3 Year 2011: sum (if (year = max (total (year-2)), Num))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493831#M1124543</guid>
      <dc:creator />
      <dc:date>2014-01-10T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Set Anlisys with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493832#M1124544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis allows you to break the link between the list box selections and the data in the charts.&lt;/P&gt;&lt;P&gt;Without set analysis you cannot do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you select 2012, the visible data set will only contain 2012 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upgrade from v7 to get this functionality, v7 is very old.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Set-Anlisys-with-If-statement/m-p/493832#M1124544</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-10T12:37:00Z</dc:date>
    </item>
  </channel>
</rss>

