<?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 sales aggregation from multiple excel files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sales-aggregation-from-multiple-excel-files/m-p/1054501#M938170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/57428"&gt;Kush141087&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in my project. It would be really great if you could help me with this. I have multiple files and each file contains sales information for three products A, B, C. And I need to aggregate the sales information monthly, quarterly and annually based on month selection which a user would do, for that UI should have a month list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sales should be shown in a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say when a user selects Feb 2015 the sales information for "Feb" month from 2015&lt;SPAN style="font-size: 13.3333px;"&gt;Feb&lt;/SPAN&gt; file should be pulled for MTD but for YTD and QTD the info for Jan should come from 2015&lt;SPAN style="font-size: 13.3333px;"&gt;Jan&lt;/SPAN&gt; file and info for Feb month should come from Feb2015 file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say if a user selects May 2015,&lt;/P&gt;&lt;P&gt;Then for MTD the sales data for May should come from 2015May file.&lt;/P&gt;&lt;P&gt;But for QTD, the April data should come from 2015April file and May data from 2015May file.&lt;/P&gt;&lt;P&gt;For YTD:&lt;/P&gt;&lt;P&gt;Jan data from 2015Jan file.&lt;/P&gt;&lt;P&gt;Feb data from 2015Feb file.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mar data from 2015Mar file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Apr data from 2015Apr file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;May data from 2015May file.&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;Hope this makes sense.&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;A sample code is greatly appreciated.&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;Thanks for all the help in the past and for this in advance. Your help means a lot.&lt;BR /&gt;&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;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sachin&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Feb 2016 01:17:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-05T01:17:09Z</dc:date>
    <item>
      <title>sales aggregation from multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/sales-aggregation-from-multiple-excel-files/m-p/1054501#M938170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/57428"&gt;Kush141087&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in my project. It would be really great if you could help me with this. I have multiple files and each file contains sales information for three products A, B, C. And I need to aggregate the sales information monthly, quarterly and annually based on month selection which a user would do, for that UI should have a month list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sales should be shown in a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say when a user selects Feb 2015 the sales information for "Feb" month from 2015&lt;SPAN style="font-size: 13.3333px;"&gt;Feb&lt;/SPAN&gt; file should be pulled for MTD but for YTD and QTD the info for Jan should come from 2015&lt;SPAN style="font-size: 13.3333px;"&gt;Jan&lt;/SPAN&gt; file and info for Feb month should come from Feb2015 file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say if a user selects May 2015,&lt;/P&gt;&lt;P&gt;Then for MTD the sales data for May should come from 2015May file.&lt;/P&gt;&lt;P&gt;But for QTD, the April data should come from 2015April file and May data from 2015May file.&lt;/P&gt;&lt;P&gt;For YTD:&lt;/P&gt;&lt;P&gt;Jan data from 2015Jan file.&lt;/P&gt;&lt;P&gt;Feb data from 2015Feb file.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mar data from 2015Mar file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Apr data from 2015Apr file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;May data from 2015May file.&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;Hope this makes sense.&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;A sample code is greatly appreciated.&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;Thanks for all the help in the past and for this in advance. Your help means a lot.&lt;BR /&gt;&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;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sachin&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-aggregation-from-multiple-excel-files/m-p/1054501#M938170</guid>
      <dc:creator />
      <dc:date>2016-02-05T01:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: sales aggregation from multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/sales-aggregation-from-multiple-excel-files/m-p/1054502#M938171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for sample expressions&amp;nbsp; YTD,MTD &amp;amp; QTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="9162" data-objecttype="102" href="https://community.qlik.com/docs/DOC-9162" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Set Analysis for certain Point in Time&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="9144" data-objecttype="102" href="https://community.qlik.com/docs/DOC-9144" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Set Analysis for Rolling Periods&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #3778c7;"&gt;Calendar with flags making set analysis so very simple&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-aggregation-from-multiple-excel-files/m-p/1054502#M938171</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-05T01:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: sales aggregation from multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/sales-aggregation-from-multiple-excel-files/m-p/1054503#M938172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script:&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 Metric, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName() as File,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42005], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42036], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42064], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42095], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42125], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42156], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42186], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42217], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42248], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42278], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42309], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [42339]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;[*.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Data);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NewTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CrossTable (Date, Value, 3)&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;Resident Table;&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;/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; If(File_MonthYear = MonthYear, 1, 0) as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Metric,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Region,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(MonthStart(Date#(Left(File, 7), 'YYYYMMM')), 'MMM YYYY') AS File_MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(MonthStart(Num#(Date, '##')), 'MMM YYYY') as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident NewTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table NewTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Metric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;MTD: &lt;STRONG&gt;Sum({&amp;lt;Flag = {1}, File_MonthYear = {"$(=MonthName(Max(File_MonthYear)))"}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;QTD: &lt;STRONG&gt;Sum({&amp;lt;Flag = {1}, File_MonthYear = {"$(='&amp;gt;=' &amp;amp; MonthName(QuarterStart(Max(File_MonthYear))) &amp;amp; '&amp;lt;=' &amp;amp; MonthName(Max(File_MonthYear)))"}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;YTD: &lt;STRONG&gt;Sum({&amp;lt;Flag = {1}, File_MonthYear = {"$(='&amp;gt;=' &amp;amp; MonthName(YearStart(Max(File_MonthYear))) &amp;amp; '&amp;lt;=' &amp;amp; MonthName(Max(File_MonthYear)))"}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Numbers for YTD are not matching with May selection, are you sure the number in the images are absolutely correct?&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/113642_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-aggregation-from-multiple-excel-files/m-p/1054503#M938172</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-05T01:50:21Z</dc:date>
    </item>
  </channel>
</rss>

