<?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 How to draw a chart with sophisticated expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098381#M894850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to make a chart like "FA*/MAPE". I would like to draw it from table "FA/FD (T)". The difficulty here is the formula for FA &amp;amp; FD are calculated for 3 months, not only a month like FA* &amp;amp; MAPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Dong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098381#M894850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to make a chart like "FA*/MAPE". I would like to draw it from table "FA/FD (T)". The difficulty here is the formula for FA &amp;amp; FD are calculated for 3 months, not only a month like FA* &amp;amp; MAPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Dong&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/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098381#M894850</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098382#M894851</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;For easier, I would say that how to calculate for 3 months (current, previous, and before previous month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula for FA &amp;amp; FD are as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FA = Sum(last 3 months of Act. Sales)/&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(last 3 months of Lag-3 FCT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FD = Absolute(&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(last 3 months of Act. Sales)-&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(last 3 months of Lag-3 FCT))/&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(last 3 months of Lag-3 FCT)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: for Jan'16&lt;/P&gt;&lt;P&gt;Jan'16 FA = (Act. Sales Nov'15 + &lt;SPAN style="font-size: 13.3333px;"&gt;Act. Sales&lt;/SPAN&gt; Dec'15 + &lt;SPAN style="font-size: 13.3333px;"&gt;Act. Sales&lt;/SPAN&gt; Jan'16)/&lt;SPAN style="font-size: 13.3333px;"&gt;(Lag-3 FCT Nov'15 + Lag-3 FCT Dec'15 + Lag-3 FCT Jan'16)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Jan'16 FD = Absolute(&lt;SPAN style="font-size: 13.3333px;"&gt;(Act. Sales Nov'15 + &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Act. Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Dec'15 + &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Act. Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Jan'16)-&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Lag-3 FCT Nov'15 + Lag-3 FCT Dec'15 + Lag-3 FCT Jan'16))/&lt;SPAN style="font-size: 13.3333px;"&gt;(Lag-3 FCT Nov'15 + Lag-3 FCT Dec'15 + Lag-3 FCT Jan'16)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 09:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098382#M894851</guid>
      <dc:creator />
      <dc:date>2016-08-02T09:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098383#M894852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;} Act. Sales) / Sum({&amp;lt;Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;}Lag-3 FCT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Variable Definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxDate = Max(DateField)&lt;BR /&gt;vMinDate=&amp;nbsp; Floor(AddMonth(Max(DateField),-3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 11:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098383#M894852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-02T11:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098384#M894853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I taken Manoj Expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;} &lt;STRONG&gt;[&lt;/STRONG&gt;Act. Sales&lt;STRONG&gt;]&lt;/STRONG&gt;) / Sum({&amp;lt;Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;} &lt;STRONG&gt;[&lt;/STRONG&gt;Lag-3 FCT&lt;STRONG&gt;]&lt;/STRONG&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; font-size: 13px;"&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; font-size: 13px;"&gt;But, DONG i don't know what are you expecting&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 11:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098384#M894853</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-08-02T11:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098385#M894854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;You can find attachement to see the details in the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is what i am looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"For easier, I would say that how to calculate for 3 months (current, previous, and before previous month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The formula for FA &amp;amp; FD are as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FA = Sum(last 3 months of Act. Sales)/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum(last 3 months of Lag-3 FCT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FD = Absolute(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum(last 3 months of Act. Sales)-&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum(last 3 months of Lag-3 FCT))/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum(last 3 months of Lag-3 FCT)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Example: for Jan'16&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jan'16 FA = (Act. Sales Nov'15 + &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Act. Sales&lt;/SPAN&gt; Dec'15 + &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Act. Sales&lt;/SPAN&gt; Jan'16)/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(Lag-3 FCT Nov'15 + Lag-3 FCT Dec'15 + Lag-3 FCT Jan'16)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Jan'16 FD = Absolute(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(Act. Sales Nov'15 + &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Act. Sales&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; Dec'15 + &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Act. Sales&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; Jan'16)-&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(Lag-3 FCT Nov'15 + Lag-3 FCT Dec'15 + Lag-3 FCT Jan'16))/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(Lag-3 FCT Nov'15 + Lag-3 FCT Dec'15 + Lag-3 FCT Jan'16)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 15:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098385#M894854</guid>
      <dc:creator />
      <dc:date>2016-08-02T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098386#M894855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="133407" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133407_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(2-(sum({&amp;lt;Type={"Lag-3 FCT"}&amp;gt;} Qty)/sum({&amp;lt;Type={"Act. Sales"}&amp;gt;} Qty)) &amp;gt; 0, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Sum({&amp;lt;Type={"Act. Sales"}, Month&amp;gt;} Qty), 0, 3))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Sum({&amp;lt;Type={"Lag-3 FCT"}, Month&amp;gt;} Qty), 0, 3)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fabs(RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Sum({&amp;lt;Type={"Act. Sales"}, Month&amp;gt;} Qty), 0, 3)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-RangeSum(Above(Sum({&amp;lt;Type={"Lag-3 FCT"}, Month&amp;gt;} Qty), 0, 3)))), [Merging code], Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(RangeSum(Above(Sum({&amp;lt;Type={"Lag-3 FCT"}, Month&amp;gt;} Qty), 0, 3)), [Merging code], Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 00:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098386#M894855</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T00:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098387#M894856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I am looking for. Many thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small adjustment for showing only selected months by using Dimension Limits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FA=If(2-(sum({&amp;lt;Type={"Lag-3 FCT"}&amp;gt;} Qty)/sum({&amp;lt;Type={"Act. Sales"}&amp;gt;} Qty)) &amp;gt; 0, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;RangeSum(Above(Sum({&amp;lt;Type={"Act. Sales"}, Month&amp;gt;} Qty), 0, 3))&lt;STRONG&gt;,[Merging code],Month))&lt;/STRONG&gt;/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;RangeSum(Above(Sum({&amp;lt;Type={"Lag-3 FCT"}, Month&amp;gt;} Qty), 0, 3))&lt;STRONG&gt;,[Merging code],Month))&lt;SPAN style="color: #ff0000;"&gt;,0&lt;/SPAN&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Dimession Limits.PNG" class="jive-image image-1" src="/legacyfs/online/133414_Dimession Limits.PNG" style="height: 464px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you agree or any way else to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 02:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098387#M894856</guid>
      <dc:creator />
      <dc:date>2016-08-03T02:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a chart with sophisticated expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098388#M894857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is giving you what you need. I am all good with you making the change &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-draw-a-chart-with-sophisticated-expression/m-p/1098388#M894857</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T08:33:30Z</dc:date>
    </item>
  </channel>
</rss>

