<?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: Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072420#M358096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. total months for each item,&amp;nbsp; Monthdiff(DesignDate,SaleDate)&lt;/P&gt;&lt;P&gt;2. For cumulative sum, please share the sample output, what you are looking for..? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 11:38:46 GMT</pubDate>
    <dc:creator>PradeepReddy</dc:creator>
    <dc:date>2016-01-12T11:38:46Z</dc:date>
    <item>
      <title>Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072414#M358090</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;can any one help me on the following scenario, I have 3 fields&amp;nbsp;&amp;nbsp; Design Date, Sale Date Item , Sale, by using these three fields I would like to calculate Total Months count for each Item from Design date and cumulative sum of Sale for each item to Sale date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072414#M358090</guid>
      <dc:creator />
      <dc:date>2016-01-12T10:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072415#M358091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you update the excel with your desired output to understand what exactly you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072415#M358091</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T10:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072416#M358092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072416#M358092</guid>
      <dc:creator />
      <dc:date>2016-01-12T11:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072417#M358093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go. Check the qvw attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Job &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072417#M358093</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-12T11:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072418#M358094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume this is what your looking for &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072418#M358094</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-12T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072419#M358095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072419#M358095</guid>
      <dc:creator />
      <dc:date>2016-01-12T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072420#M358096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. total months for each item,&amp;nbsp; Monthdiff(DesignDate,SaleDate)&lt;/P&gt;&lt;P&gt;2. For cumulative sum, please share the sample output, what you are looking for..? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072420#M358096</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-01-12T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072421#M358097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count is Correct But Sale is not tied , need to work on this , thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072421#M358097</guid>
      <dc:creator />
      <dc:date>2016-01-12T11:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072422#M358098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll see what I can do &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072422#M358098</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-12T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072423#M358099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe Sales is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= max(Aggr(sum(Sale),Item))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= aggr( NODISTINCT sum(Sale), Item ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You choose &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072423#M358099</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-12T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072424#M358100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try bellow expression for cumulative sum.. (Pivot Table)&lt;/P&gt;&lt;P&gt;Dimension: Item,Sale Date&lt;/P&gt;&lt;P&gt;expr1: Sum(Sale)&lt;/P&gt;&lt;P&gt;expr2: if(isnull(above(sum(Sale),1))=1,sum(Sale),rangesum(sum(Sale),above(sum(Sale),1)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072424#M358100</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-01-12T11:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072425#M358101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. =Sum(MonthsDifference)&lt;/P&gt;&lt;P&gt;2. = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;aggr( NODISTINCT sum(Sale), Item ) OR &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(Aggr(sum(Sale),Item)), depending on how you want to show the results.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072425#M358101</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-12T11:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072426#M358102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Luck &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072426#M358102</guid>
      <dc:creator />
      <dc:date>2016-01-12T12:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072427#M358103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel Braga, Could you please explain me how the&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MonthDiff&amp;nbsp; variable will function here?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072427#M358103</guid>
      <dc:creator />
      <dc:date>2016-01-12T12:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072428#M358104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MonthDiff will function based on how your start date ence [Design Date] is and your end date in your case [Sale Date]. I'm working on the count expression &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072428#M358104</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-12T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072429#M358105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/50551"&gt;How can I calculate a cumulative sum in load script?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For count &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072429#M358105</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-12T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072430#M358106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unable to get the results in months, but for days may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Design Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Testdata (3).xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Only(Item) as Item,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Today()) as [Design Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Today()) as [Sale Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as Sale&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Item;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Min([Sale Date]) as [Min Sale Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Item&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Item;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Sale Date] - [Min Sale Date] as DaysDifference,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Item = Peek('Item'), RangeSum(Peek('Cumulative Mileage'), Sale), Sale) as [Cumulative Mileage]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Item, [Sale Date];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111366_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072430#M358106</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072431#M358107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny Thanks, in the Model final table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more load with Load *,&amp;nbsp; Round(&lt;STRONG&gt;DaysDifference&lt;/STRONG&gt;/30.4166666667) As DiffMonth ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will give us Months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072431#M358107</guid>
      <dc:creator />
      <dc:date>2016-01-12T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count</title>
      <link>https://community.qlik.com/t5/QlikView/Count/m-p/1072432#M358108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count/m-p/1072432#M358108</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T14:57:42Z</dc:date>
    </item>
  </channel>
</rss>

