<?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: Grouping Data by Month based on Base Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556635#M743314</link>
    <description>&lt;P&gt;I have a colleague who was able to do it in R. No need to solve in QV.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2019 15:27:28 GMT</pubDate>
    <dc:creator>proctors</dc:creator>
    <dc:date>2019-03-14T15:27:28Z</dc:date>
    <item>
      <title>Grouping Data by Month based on Base Date</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556230#M743311</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;We have data that is collected on a per patient level at varying time points from the Baseline date (CGI_Rank in file 1 = baseline date). What I'd like to do is "normalize" the data such that no matter what the Baseline date is, each future data point is grouped based on a certain time period (e.g., Months) from the Baseline date.&lt;/P&gt;&lt;P&gt;Thus, if Patient A has a data point on 8/1/18, a second point on 9/5/18, and a third on 10/29/18, the base date of 8/1/18 is used as the initial date, and each point is not the exact month, but instead the number of months from the base date. Thus, second point is saved on M+2, then M+3 and so on. If there are two data points within the same month, the data should be averaged, if there is no data, then it is null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556230#M743311</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2024-11-16T04:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping Data by Month based on Base Date</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556253#M743312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not clear if you want to try to script something here or do in a visualisation.&lt;/P&gt;&lt;P&gt;If you want to script a possible step 1 (if I've understood you right) would be to join back the date to itself where CGI_RANK=1;&lt;/P&gt;&lt;PRE&gt;data:
LOAD ID, 
     Date, 
     CGI_RANK, 
     IMPROVEMENT, 
     SEVERITY
FROM
[SAMPLE DATA FOR QV Group.xls]
(biff, embedded labels, table is Sheet1$);

left join (data)
Load
	ID,
	Date AS CGI_RANK1_Date
Resident data
where CGI_RANK=1;&lt;/PRE&gt;&lt;P&gt;Which gives the following;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190313_1.png" style="width: 666px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7962i0D6A75ADD9F8D575/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190313_1.png" alt="20190313_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Step 2 would involve doing a load processing the two dates (Date &amp;amp; CGI_RANK1_Date) … but does the above look like a step to what you want to do?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 20:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556253#M743312</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-03-13T20:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping Data by Month based on Base Date</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556262#M743313</link>
      <description>&lt;P&gt;The columns should be as follows in a Table Chart for just the Severity Scores.&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="0" border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;CGI_RANK&lt;/TD&gt;&lt;TD&gt;Severity&lt;/TD&gt;&lt;TD&gt;30_Day_Grouping&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;51821&lt;/TD&gt;&lt;TD&gt;11/10/2016&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;51821&lt;/TD&gt;&lt;TD&gt;2/14/2017&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;51821&lt;/TD&gt;&lt;TD&gt;8/14/2017&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;51821&lt;/TD&gt;&lt;TD&gt;7/5/2018&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;The basedate (CGI_RANK = 1) would be the indicator for benchmarking the start of the period and the subsequent 30 day increments.&lt;BR /&gt;&lt;BR /&gt;the 30 day values are essentially showing how many 30 day intervals that current Date is from the basedate.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 12:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556262#M743313</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2019-03-14T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping Data by Month based on Base Date</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556635#M743314</link>
      <description>&lt;P&gt;I have a colleague who was able to do it in R. No need to solve in QV.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 15:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-Data-by-Month-based-on-Base-Date/m-p/1556635#M743314</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2019-03-14T15:27:28Z</dc:date>
    </item>
  </channel>
</rss>

