<?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: Calculating Last Month Same Day Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1558222#M441056</link>
    <description>&lt;P&gt;Assuming plan column as Sales, i have summed up the same in every new column created.&lt;/P&gt;&lt;P&gt;Let me know if any other column like sales need to be taken care of, anyway that also can be summed up to get a desired result.&lt;/P&gt;&lt;P&gt;For ref look into sample data in sheet2 of my attachment.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2019 06:49:13 GMT</pubDate>
    <dc:creator>HirisH_V7</dc:creator>
    <dc:date>2019-03-19T06:49:13Z</dc:date>
    <item>
      <title>Calculating Last Month Same Day Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557638#M441013</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wanted to calculate last month same day sales in the QlikView script.&lt;/P&gt;&lt;P&gt;Eg: If today 18th Mar 2018 then for the same set of combination of State, brand, depot&amp;nbsp; I want to get the sales for 18th Feb 2018 and 18th Jan 2018.&lt;/P&gt;&lt;P&gt;All the 3 values should come as a separate column in table.&lt;/P&gt;&lt;P&gt;I know we can achieve it using expressions in charts but I want to calculate it in the script and get it as two separate columns.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557638#M441013</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2024-11-16T04:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Last Month Same Day Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557640#M441014</link>
      <description>&lt;P&gt;Could you share a sample app with sample data set and explain the expected output?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 07:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557640#M441014</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-03-18T07:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Last Month Same Day Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557653#M441015</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attaching a sample output.&lt;/P&gt;&lt;P&gt;Consider the current date be 1st Aug&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 07:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557653#M441015</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2019-03-18T07:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Last Month Same Day Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557686#M441016</link>
      <description>&lt;P&gt;Hi Check out this code below,&lt;/P&gt;&lt;P&gt;As i can understand, your'e trying to compress the data set with every load. To load only required from your'e data.&lt;/P&gt;&lt;PRE&gt;Data:
LOAD [State Name], [State Cluster], GAP, [Depot Name], [Depot Code], Brand, [Brand Family], 
     [Brand Pack Code], [Size Pack Code] ,
     Sum(Current_Month_Today) as Current_Month_Today,
  	  Sum(Prior1_Month_Today) as Prior1_Month_Today,
      Sum(Prior2_Month_Today) as Prior2_Month_Today
      Group By [State Name], [State Cluster], GAP, [Depot Name], [Depot Code], Brand, [Brand Family], 
     [Brand Pack Code], [Size Pack Code];
LOAD [State Name], [State Cluster], GAP, [Depot Name], [Depot Code], Brand, [Brand Family], 
     [Brand Pack Code], [Size Pack Code], 
  If(Date=Date(Today()),Plan) as Current_Month_Today,
  If(Date=Date(AddMonths(Today(),-1)),Plan) as Prior1_Month_Today,
  If(Date=Date(AddMonths(Today(),-2)),Plan) as Prior2_Month_Today
  
FROM [Sample.xlsx]
(ooxml, embedded labels, table is Sheet2);&lt;/PRE&gt;&lt;P&gt;Hope this will get the required fields and aggregate in back end. To create a summarized view as required.&lt;/P&gt;&lt;P&gt;PFA For ref.&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 08:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557686#M441016</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-03-18T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Last Month Same Day Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557746#M441018</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this will only give me the date for last 2 months but not the sales on those days.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1557746#M441018</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2019-03-18T09:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Last Month Same Day Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1558222#M441056</link>
      <description>&lt;P&gt;Assuming plan column as Sales, i have summed up the same in every new column created.&lt;/P&gt;&lt;P&gt;Let me know if any other column like sales need to be taken care of, anyway that also can be summed up to get a desired result.&lt;/P&gt;&lt;P&gt;For ref look into sample data in sheet2 of my attachment.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 06:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Last-Month-Same-Day-Sales/m-p/1558222#M441056</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2019-03-19T06:49:13Z</dc:date>
    </item>
  </channel>
</rss>

