<?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: Accumulating Calculated Dimension in a Line Chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Accumulating-Calculated-Dimension-in-a-Line-Chart/m-p/1124381#M19528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tereza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I didn't explain this very well. Your solution has Last Month preceding This Month and I have them both on the same set of dates. So my x-axis dimension date "1" refers to both "June 1" on the June (LM) line and "July 1" on the July (TM) line. They appear together so we can compare This month's performance to last month's. I need for them both to accumulate on this same graph to complete this comparison. So there is only 1 measure, not 2; but there are 2 dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reduced the app to just the fields involved and have attached it here. I removed the authentication information from the REST connector; however, the necessary data is already loaded. Others may find the connector interesting as I have been successful here using it to access a SOAP API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can an we get this line graph to accumulate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jul 2016 18:38:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-10T18:38:22Z</dc:date>
    <item>
      <title>Accumulating Calculated Dimension in a Line Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-Calculated-Dimension-in-a-Line-Chart/m-p/1124379#M19526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to show accumulated values of an AMOUNT by date, comparing This Month to Last Month. The data table has 4 values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AMOUNT - Money received&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PAYDATE - Date the amount was received&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PAYDATETMFlag - 1 if the PAYDATE is This Month (TM), otherwise 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PAYDATELMFlag - 1 if the PAYDATE is Last Month (LM), otherwise 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The line chart 1st Dimension (X-axis) is the Days - IF(PAYDATELMFlag or PAYDATETMFlag,DAY(PAYDATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The line chart 2nd Dimension (the Lines) is the Months - IF(PAYDATELMFlag or PAYDATETMFlag,MONTH(PAYDATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The chart measure is simply Sum(AMOUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This generates the desired chart without accumulation. You see the chart below showing each day's AMOUNT correctly for this month and last month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I had intended to accumulate the chart using the techniques described earlier in &lt;A _jive_internal="true" href="https://community.qlik.com/thread/134526"&gt;Accumulating in Sense&lt;/A&gt;.My problem is that RowNo() returns 1 for all Last month AMOUNTS and 2 for This month AMOUNTS. I can't define an end point for RangeSum(). See my results below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How can I accumulate the Measure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="Line Chart.png" class="jive-image image-1" height="476" src="/legacyfs/online/130765_Line Chart.png" style="height: 476.079px; width: 963px;" width="963" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2016 23:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-Calculated-Dimension-in-a-Line-Chart/m-p/1124379#M19526</guid>
      <dc:creator />
      <dc:date>2016-07-09T23:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating Calculated Dimension in a Line Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-Calculated-Dimension-in-a-Line-Chart/m-p/1124380#M19527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your requirements correctly you want to see 2 lines in your line chart with continuous dates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what you need to do is to add in your expression for LM and TM simple set analysis as follow:&lt;/P&gt;&lt;P&gt;if(PayDateTMflag=1,rangesum( above( sum({&amp;lt;PayDateTMflag={'1'}&amp;gt;}Amount),0,rowno())))&lt;/P&gt;&lt;P&gt;if(PayDateLMflag=1,rangesum( above( sum({&amp;lt;PayDateLMflag={'1'}&amp;gt;}Amount),0,rowno())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the following:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="RangeSum.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130789_RangeSum.JPG" style="height: 271px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2016 15:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-Calculated-Dimension-in-a-Line-Chart/m-p/1124380#M19527</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2016-07-10T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating Calculated Dimension in a Line Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-Calculated-Dimension-in-a-Line-Chart/m-p/1124381#M19528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tereza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I didn't explain this very well. Your solution has Last Month preceding This Month and I have them both on the same set of dates. So my x-axis dimension date "1" refers to both "June 1" on the June (LM) line and "July 1" on the July (TM) line. They appear together so we can compare This month's performance to last month's. I need for them both to accumulate on this same graph to complete this comparison. So there is only 1 measure, not 2; but there are 2 dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reduced the app to just the fields involved and have attached it here. I removed the authentication information from the REST connector; however, the necessary data is already loaded. Others may find the connector interesting as I have been successful here using it to access a SOAP API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can an we get this line graph to accumulate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2016 18:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-Calculated-Dimension-in-a-Line-Chart/m-p/1124381#M19528</guid>
      <dc:creator />
      <dc:date>2016-07-10T18:38:22Z</dc:date>
    </item>
  </channel>
</rss>

