<?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: Last Month Values to Current Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Month-Values-to-Current-Month/m-p/1691952#M726350</link>
    <description>&lt;P&gt;Hi, add one month to date can work?:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//Add previous month data to next month
Concatenate(tmp_currency) 
LOAD Date(AddMonths(Date#(Datefield,'YYMMDD'),1),'YYYY-MM-DD') as Datefield,
Data as DataLastMonth
FROM ....
(biff, embedded labels, table is Sheet1);&lt;/LI-CODE&gt;&lt;P&gt;You can add a 'Where' clause to limit to one month and also to not add rows "after AddMonths(Today(), -1)" to not create future data.&lt;/P&gt;&lt;P&gt;You can also do a group by to keep Data and DataLastMonth in one row per Datefield.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 10:47:59 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-04-08T10:47:59Z</dc:date>
    <item>
      <title>Last Month Values to Current Month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Values-to-Current-Month/m-p/1691622#M726349</link>
      <description>&lt;P&gt;How can I take previous month (current year) of data and add it to the current month (current year)?&lt;/P&gt;&lt;P&gt;//Code for loading previous years of data&lt;BR /&gt;......&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//Code below is current year january to last month (march as of now). When a new month has passed the data is added into the file.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Concatenate(tmp_currency)&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;LOAD Date(Date#(Datefield,'YYMMDD'),'YYYY-MM-DD') as Datefield,&lt;BR /&gt;Data&lt;BR /&gt;FROM ....&lt;BR /&gt;(biff, embedded labels, table is Sheet1);&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Values-to-Current-Month/m-p/1691622#M726349</guid>
      <dc:creator>sfloberg</dc:creator>
      <dc:date>2024-11-16T00:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Values to Current Month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Values-to-Current-Month/m-p/1691952#M726350</link>
      <description>&lt;P&gt;Hi, add one month to date can work?:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//Add previous month data to next month
Concatenate(tmp_currency) 
LOAD Date(AddMonths(Date#(Datefield,'YYMMDD'),1),'YYYY-MM-DD') as Datefield,
Data as DataLastMonth
FROM ....
(biff, embedded labels, table is Sheet1);&lt;/LI-CODE&gt;&lt;P&gt;You can add a 'Where' clause to limit to one month and also to not add rows "after AddMonths(Today(), -1)" to not create future data.&lt;/P&gt;&lt;P&gt;You can also do a group by to keep Data and DataLastMonth in one row per Datefield.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 10:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Values-to-Current-Month/m-p/1691952#M726350</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-04-08T10:47:59Z</dc:date>
    </item>
  </channel>
</rss>

