<?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: Set Expression in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586477#M444318</link>
    <description>&lt;P&gt;You just need to wrap your current expression with an if() like this:&lt;/P&gt;&lt;P&gt;if(MONTH &amp;gt; Max(TOTAL MONTH), 0,&amp;nbsp;&lt;BR /&gt;your current expression&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 04:18:49 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-05-30T04:18:49Z</dc:date>
    <item>
      <title>Set Expression in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586095#M444316</link>
      <description>&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;I have shown the following screen shot of my pivot table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 346px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12862iA0AE9D6D5E7DF56E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My expression for the above is&amp;nbsp;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;MONTH={"&amp;lt;=$(=max(MONTH))"},YEAR={$(=max(YEAR))},MO_NM={'MOTOR'}&amp;gt;}PREMIUM)/&lt;BR /&gt;sum({&amp;lt;MONTH={"&amp;lt;=$(=max(MONTH))"},YEAR={$(=max(YEAR)-1)},MO_NM={'MOTOR'}&amp;gt;}PREMIUM)-1)*100&lt;/P&gt;&lt;P&gt;What I want&amp;nbsp; is&amp;nbsp; when&amp;nbsp; I select a particular MONTH all months less than the selected month should show calculation as above and rest of the months&amp;nbsp; eg: May-Dec&amp;nbsp; should show zero value. Kindly help me to modify my expression to show zero values for other months.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 11:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586095#M444316</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-05-29T11:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586474#M444317</link>
      <description>&lt;P&gt;My Friends,&lt;/P&gt;&lt;P&gt;Pls help me with asolution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 03:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586474#M444317</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-05-30T03:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586477#M444318</link>
      <description>&lt;P&gt;You just need to wrap your current expression with an if() like this:&lt;/P&gt;&lt;P&gt;if(MONTH &amp;gt; Max(TOTAL MONTH), 0,&amp;nbsp;&lt;BR /&gt;your current expression&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 04:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586477#M444318</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-05-30T04:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586494#M444319</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I have put it like this&lt;/P&gt;&lt;P&gt;if(MONTH &amp;gt; Max(TOTAL MONTH), 0,&lt;BR /&gt;(sum({&amp;lt;MONTH={"&amp;lt;=$(=max(MONTH))"},YEAR={$(=max(YEAR))},MO_NM={'MOTOR'}&amp;gt;}PREMIUM)/&lt;BR /&gt;sum({&amp;lt;MONTH={"&amp;lt;=$(=max(MONTH))"},YEAR={$(=max(YEAR)-1)},MO_NM={'MOTOR'}&amp;gt;}PREMIUM)-1)*100)&lt;/P&gt;&lt;P&gt;Still the output is the same , No months appear after max month&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 04:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1586494#M444319</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-05-30T04:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1609879#M445055</link>
      <description>&lt;P&gt;About the best I can do in addition to Rob's comment is some links that might be of some help:&lt;/P&gt;
&lt;P&gt;Help site:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Design Blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There are additional posts in the Design Blog area too, just FYI.&amp;nbsp; Hopefully this may help you get things sorted.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 14:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-in-Pivot-Table/m-p/1609879#M445055</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-06T14:47:38Z</dc:date>
    </item>
  </channel>
</rss>

