<?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 do I divide a current month's value by previous months value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355962#M416183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a bar chart that shows a current month/previous month value fr each month. right now I have in my dimensions month and the expense type. I have already created an expression that will limit my expense type to the correct value, sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}&amp;gt;} AMOUNT). what I am trying to do now is show, for each month, the calculated values of that month divided by the previous month, do I need to use month(today()-1)/month(today()-1,-1) as part as part of the expression, and if so, how do I write the rest of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2017 00:05:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-06-26T00:05:23Z</dc:date>
    <item>
      <title>How do I divide a current month's value by previous months value</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355962#M416183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a bar chart that shows a current month/previous month value fr each month. right now I have in my dimensions month and the expense type. I have already created an expression that will limit my expense type to the correct value, sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}&amp;gt;} AMOUNT). what I am trying to do now is show, for each month, the calculated values of that month divided by the previous month, do I need to use month(today()-1)/month(today()-1,-1) as part as part of the expression, and if so, how do I write the rest of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 00:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355962#M416183</guid>
      <dc:creator />
      <dc:date>2017-06-26T00:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I divide a current month's value by previous months value</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355963#M416184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In simple, We can use Above() function&lt;/P&gt;&lt;P&gt;or&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;STRONG&gt;sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}, Month = {'$(=Max(Month))'}&amp;gt;} AMOUNT) / &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}, Month = {'$(=Max(Month)-1)'}&amp;gt;} AMOUNT)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}, Month = {'$(=Max(Month))'}&amp;gt;} AMOUNT) / &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}, Month = {'$(=AddMonths(Max(Month),-1))'}&amp;gt;} AMOUNT)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 01:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355963#M416184</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-26T01:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I divide a current month's value by previous months value</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355964#M416185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&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;&lt;STRONG&gt;Aggr(Sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}&amp;gt;} AMOUNT)/Above(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}&amp;gt;} AMOUNT)), EXPENSE_TYPE, Month)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the above expression will depend on the sort order of your Month field. If it isn't sorted in the ascending order in the script, you will run into issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the chart for only one type of expense_type, why even add it as a dimension.... may be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}&amp;gt;} AMOUNT)/Above(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;EXPENSE_TYPE = {'EBITDA'}&amp;gt;} AMOUNT))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 01:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355964#M416185</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-26T01:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I divide a current month's value by previous months value</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355965#M416186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK that didn't do it, it is just giving me values from 0-1 for all months, also I want to make sure that I can get this comparison to work for all months, not just the current months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-divide-a-current-month-s-value-by-previous-months-value/m-p/1355965#M416186</guid>
      <dc:creator />
      <dc:date>2017-06-26T13:31:50Z</dc:date>
    </item>
  </channel>
</rss>

