<?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 Variance% in Pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456257#M794230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pivot chart i am comparing current year sales and previous year sales and their Variance %&lt;/P&gt;&lt;P&gt;I am using this formula for variance %&lt;/P&gt;&lt;P&gt;=(sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt; and in visual cues i selected Upper&amp;gt;=1&amp;nbsp; and Lower&amp;lt;=0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When current year has vales and last year doesnt have values it displays '-' in variance% but i want to display %values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA for screenshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joshua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>ajsjoshua</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456257#M794230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pivot chart i am comparing current year sales and previous year sales and their Variance %&lt;/P&gt;&lt;P&gt;I am using this formula for variance %&lt;/P&gt;&lt;P&gt;=(sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt; and in visual cues i selected Upper&amp;gt;=1&amp;nbsp; and Lower&amp;lt;=0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When current year has vales and last year doesnt have values it displays '-' in variance% but i want to display %values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA for screenshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joshua.&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/Variance-in-Pivot/m-p/1456257#M794230</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456258#M794231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=(sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per your formula, if we don't have value in denominator, result would not be defined. That's why it is coming as '-'&lt;/P&gt;&lt;P&gt;What % are you expecting if denominator is 0 or null?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 07:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456258#M794231</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2017-12-29T07:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456259#M794232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try to use Alt function,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;like this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;method 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;= alt(&lt;/STRONG&gt;(sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}SalesValue) - sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue))&lt;/P&gt;&lt;P&gt;/ sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue)&lt;STRONG&gt;,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;method 2: simplified one,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;alt((Column(1) -Column(2))/Column(2),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188429_Capture.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;BR /&gt;&lt;/STRONG&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 07:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456259#M794232</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-29T07:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456260#M794233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;We encountered smilar divide by zero issue few months ago. My Client wanted to make it 100% when last year is zero.So it will depend on business requirement. &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;= alt((sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}SalesValue) - sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;/ sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue),1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 07:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456260#M794233</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-12-29T07:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456261#M794234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Devarasu,&lt;/P&gt;&lt;P&gt;Thanks for ur reply&lt;/P&gt;&lt;P&gt;Its working&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;= alt((sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}SalesValue) - sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/ sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue),1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;but when i am setting visual cues as&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;upper&amp;gt;=21 as green and Lower&amp;lt;=20 as red it display 100% in red but i want to display it in green.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 08:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456261#M794234</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2017-12-29T08:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456262#M794235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Dear Pradosh,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for ur reply&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Its working&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;= alt((sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}SalesValue) - sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/ sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}SalesValue),1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;but when i am setting visual cues as&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;upper&amp;gt;=21 as green and Lower&amp;lt;=20 as red it display 100% in red but i want to display it in green.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 08:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456262#M794235</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2017-12-29T08:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456263#M794236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use 0.21 and 0.20 in place of 21 and 20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 08:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456263#M794236</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-12-29T08:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variance% in Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456264#M794237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pradosh,&lt;/P&gt;&lt;P&gt;THank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 08:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-in-Pivot/m-p/1456264#M794237</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2017-12-29T08:54:36Z</dc:date>
    </item>
  </channel>
</rss>

