<?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: Total sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082049#M360480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh okay. That makes sense. Now the question still remains, which months would you want to see for First 2 month view? Dec-2015 and Jan-2016?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 12:41:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-27T12:41:19Z</dc:date>
    <item>
      <title>Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082044#M360475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have Unit number , Date, Sales fields, I would like to calculated sum of sales for each unit number , from the minimum date of each department number to select no of months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&amp;nbsp;&amp;nbsp; I have Unit 1 in the year 2004/jan/25 sale $100, for the same Unit on 2004/feb/21 I have sale say $200 and for the&lt;/P&gt;&lt;P&gt;&amp;nbsp; Unit 2 in the year 2006/&amp;lt;mar/25 sale $50, for the same Unit on 2007/Apr/19 I have sale say $250&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I would like to calculate a field on Date which will give me&amp;nbsp; First 2Month, 4monts, 6Month, .....&amp;gt;24Month.&lt;/P&gt;&lt;P&gt;if I select on first 2Months I would like to see&lt;/P&gt;&lt;P&gt;for Unit number 1&amp;nbsp; Sale 300&lt;/P&gt;&lt;P&gt;for Unit number 2&amp;nbsp; Sale 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the sample data on attachment.&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>Wed, 27 Jan 2016 10:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082044#M360475</guid>
      <dc:creator />
      <dc:date>2016-01-27T10:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082045#M360476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not see any reference to Departmen number in your attached Excel file. Is that the same thing as Unit Number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082045#M360476</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T12:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082046#M360477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my mistake, yes your correct that is Unit Number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082046#M360477</guid>
      <dc:creator />
      <dc:date>2016-01-27T12:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082047#M360478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another questions, I don't see Unit Number 1 and 2. I see them starting from 6 and the next one is 7511. Also you want to see sales for Dec-2015 and Jan-2016 when you are looking for a 2-Month view?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082047#M360478</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T12:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082048#M360479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sunny for your response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have provided different test data in the excel, however to describe the problem I have taken two units as dummy data and provided expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the Excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Unit 7511&amp;nbsp; for 2 Month View expected result would be 34808&lt;/P&gt;&lt;P&gt;For Unit 12420 for 2 Month View expected result would be 116.&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>Wed, 27 Jan 2016 12:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082048#M360479</guid>
      <dc:creator />
      <dc:date>2016-01-27T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082049#M360480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh okay. That makes sense. Now the question still remains, which months would you want to see for First 2 month view? Dec-2015 and Jan-2016?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082049#M360480</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T12:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082050#M360481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Sunny , the requirement is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a filter&amp;nbsp; which contains&amp;nbsp; 2Month, 4months, 6 Months.....&amp;gt;48Months as values, when i click on 2Months it has two show the first 2 months data from its minimum date [minimum date is different for each Unit].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 7511&amp;nbsp; Sep, Oct 2014&lt;/P&gt;&lt;P&gt;for 12420 Dec 2013, Jan 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear, if not please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082050#M360481</guid>
      <dc:creator />
      <dc:date>2016-01-27T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082051#M360482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the attached application. I created flag in the script to determine the First 2, 4, 6, 24 months and then I am using an inline table for selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112678_Capture.PNG" style="height: 259px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 13:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082051#M360482</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T13:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082052#M360483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Sunny Wrong results.&lt;/P&gt;&lt;P&gt;for the Months view&lt;/P&gt;&lt;P&gt;For Unit 7511&amp;nbsp; for 2 Month View expected result would be 34808&lt;/P&gt;&lt;P&gt;For Unit 12420 for 2 Month View expected result would be 116.&lt;/P&gt;&lt;P&gt;Thanks for the Response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 13:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082052#M360483</guid>
      <dc:creator />
      <dc:date>2016-01-27T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082053#M360484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Unit 12420, I am seeing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112684_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is it going to Sum to 4?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 13:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082053#M360484</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T13:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082054#M360485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Your Correct, sum would be 116.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 13:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082054#M360485</guid>
      <dc:creator />
      <dc:date>2016-01-27T13:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082055#M360486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112688_Capture.PNG" style="height: 199px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 13:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082055#M360486</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082056#M360487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sunny ,it seems working, however this functionality I want to implement with out these flags, just I need one field which contains&amp;nbsp; first 1 Month, first 2 Months ..........up to today whatever the month it is, ideallyy autonumber(MonthName(Date),'MN');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate a field which gives me a distinct number for each month through out all the years up to today for all the units.&lt;/P&gt;&lt;P&gt;then if I click on that field I would like to see those many months of data for each unit from its minimum date.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082056#M360487</guid>
      <dc:creator />
      <dc:date>2016-01-27T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082057#M360488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attachment, it might be helpful for you.... it is similar to &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I have add crosstable, to convert all the period fields into into one field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082057#M360488</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-01-27T14:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082058#M360489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082058#M360489</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-27T16:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082059#M360490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Expression,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum(if(Date&amp;gt;=MonthStart(mindate)and Date&amp;lt;=MonthEnd(AddMonths(mindate, vMax)),&amp;nbsp; Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA for details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 03:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082059#M360490</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-01-28T03:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082060#M360491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny in the above attachment&amp;nbsp; 1st Month Results are not populating.&amp;nbsp; also there are some Year month values also missing .&lt;/P&gt;&lt;P&gt;here I am attaching a work around ,please find it , there is a bug on it I am getting values individually for every period, however when we are not selecting the period the amounts are showing huge for every unit. also please kingly let me know can I do it in more optimal way? actually the file size is 2.7 MB but now it has moved to 77 MB so some where I did mistake please kindly provide me a thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco‌&lt;/A&gt;&lt;A href="https://community.qlik.com/qlik-users/10670"&gt;maxgro&lt;/A&gt;&lt;A href="https://community.qlik.com/qlik-users/26418"&gt;‌&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&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>Thu, 28 Jan 2016 04:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082060#M360491</guid>
      <dc:creator />
      <dc:date>2016-01-28T04:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082061#M360492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that you are using CrossTable() in the script. What exactly are you trying to do there? Are you using the solution proposed by Pradeep? He might be able to help you better if you are using his way of doing it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082061#M360492</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-28T10:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082062#M360493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You had 435,278 observations in your Excel File and after your script ended the number of observation increased to 33,081,128 (which equals the number of observations * No. of Period you have created). This is the reason the file size increased from 2.7 MB to 77 MB here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082062#M360493</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-28T10:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Total sales</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082063#M360494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes , there is the problem. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales/m-p/1082063#M360494</guid>
      <dc:creator />
      <dc:date>2016-01-28T10:57:37Z</dc:date>
    </item>
  </channel>
</rss>

