<?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 Using first Selected MonthYear to compare values of succeeding MonthYears selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198699#M57900</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;I'm trying to create a line chart of cost changes of an item using the first MonthYear in the selection to each succeeding MonthYear selected.&lt;/P&gt;&lt;P&gt;For example if my selections are Jan-2010 through Dec-2010 and my first cost is $1.00 and my cost in Feb-2010 is $1.25 then the cost change for the first plotted change would be $0.25 likewise if Mar-2010 is $0.90 my second plotted change is $0.10- .&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 01:40:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-03T01:40:45Z</dc:date>
    <item>
      <title>Using first Selected MonthYear to compare values of succeeding MonthYears selected</title>
      <link>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198699#M57900</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;I'm trying to create a line chart of cost changes of an item using the first MonthYear in the selection to each succeeding MonthYear selected.&lt;/P&gt;&lt;P&gt;For example if my selections are Jan-2010 through Dec-2010 and my first cost is $1.00 and my cost in Feb-2010 is $1.25 then the cost change for the first plotted change would be $0.25 likewise if Mar-2010 is $0.90 my second plotted change is $0.10- .&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 01:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198699#M57900</guid>
      <dc:creator />
      <dc:date>2011-02-03T01:40:45Z</dc:date>
    </item>
    <item>
      <title>Using first Selected MonthYear to compare values of succeeding MonthYears selected</title>
      <link>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198700#M57901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think in chart expression you need to subtract first month value from every single month value.&lt;BR /&gt;So the result is lines, all starting at 0 and plotting fluctuation around 0.&lt;BR /&gt;&lt;BR /&gt;Try something like this:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum(Cost) -&lt;BR /&gt;sum(total &amp;lt;Item&amp;gt; if(Month=$(=min(total Month)), Cost))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;First line is monthly value, second line is constant of first month's value per each Item. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 15:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198700#M57901</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2011-02-03T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Using first Selected MonthYear to compare values of succeeding MonthYears selected</title>
      <link>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198701#M57902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply however&lt;/P&gt;&lt;P&gt;I couldn't get your expression to work so I started trying other approaches. In an attempt to get my values straight, I've created a pivot table with ITEM and MonthYear as dimensions. The first expression is &lt;STRONG&gt;Sum([Trans Amount]) / Sum ([Trans Quantity])&lt;/STRONG&gt; to give me the Item MonthYear average cost. The second expression is&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;sum({$&amp;lt;Year = {$(=min(Year))}, Month = {"&amp;lt;=$(=min({&amp;lt;Year={$(=min(Year))}&amp;gt;} Month))&amp;gt;$(=min({&amp;lt;Year={$(=min(Year))}&amp;gt;} Month)-1)"}&amp;gt;} [Trans Amount])&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({$&amp;lt;Year = {$(=min(Year))}, Month = {"&amp;lt;=$(=min({&amp;lt;Year={$(=min(Year))}&amp;gt;} Month))&amp;gt;$(=min({&amp;lt;Year={$(=min(Year))}&amp;gt;} Month)-1)"}&amp;gt;} [Trans Amount])&lt;/STRONG&gt; to give me the results of the first month in the selection. I selected May and Jun&lt;/P&gt;&lt;P&gt;The resulting chart correctly returns the correct cost for the first month in the selection May but Jun is returned NULL. I would have anticipated that Jun would also have returned the same value. Any thoughts?&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5165.Chart-Image.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/5165.Chart-Image.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 15:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198701#M57902</guid>
      <dc:creator />
      <dc:date>2011-02-04T15:44:23Z</dc:date>
    </item>
    <item>
      <title>Using first Selected MonthYear to compare values of succeeding MonthYears selected</title>
      <link>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198702#M57903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Pivot table you have much more flexibility to use chart inter record functions, like "before()".&lt;/P&gt;&lt;P&gt;For example you can get first column (MonthYear) calculated value equally in every column just like that:&lt;/P&gt;&lt;P&gt;before(sum([Trans Amount]),ColumnNo()-1) / before(sum([Trans Quantity]),ColumnNo()-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in pivot table your expression could look like:&lt;/P&gt;&lt;P&gt;Sum([Trans Amount]) / Sum ([Trans Quantity]) -&lt;/P&gt;&lt;P&gt;before(sum([Trans Amount]),ColumnNo()-1) / before(sum([Trans Quantity]),ColumnNo()-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198702#M57903</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2011-02-04T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Using first Selected MonthYear to compare values of succeeding MonthYears selected</title>
      <link>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198703#M57904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tanel,&lt;/P&gt;&lt;P&gt;That works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 18:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-first-Selected-MonthYear-to-compare-values-of-succeeding/m-p/198703#M57904</guid>
      <dc:creator />
      <dc:date>2011-02-04T18:13:39Z</dc:date>
    </item>
  </channel>
</rss>

