<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.catglobe.com/index.php?action=history&amp;feed=atom&amp;title=Historic_data_collection_on_Resource_Data</id>
	<title>Historic data collection on Resource Data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.catglobe.com/index.php?action=history&amp;feed=atom&amp;title=Historic_data_collection_on_Resource_Data"/>
	<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=Historic_data_collection_on_Resource_Data&amp;action=history"/>
	<updated>2026-04-20T10:06:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.catglobe.com/index.php?title=Historic_data_collection_on_Resource_Data&amp;diff=24748&amp;oldid=prev</id>
		<title>Wikicatglobe at 03:02, 18 October 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=Historic_data_collection_on_Resource_Data&amp;diff=24748&amp;oldid=prev"/>
		<updated>2013-10-18T03:02:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:02, 18 October 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;accesscontrol&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Administrators,,Cem,,Maysunshine&lt;/del&gt;&amp;lt;/accesscontrol&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;accesscontrol&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Main:MyGroup&lt;/ins&gt;&amp;lt;/accesscontrol&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every once in a while you not only need to have some data extracted from the state of the system, you also want to collect the historic data over time.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every once in a while you not only need to have some data extracted from the state of the system, you also want to collect the historic data over time.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-19444:rev-24748:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Wikicatglobe</name></author>
	</entry>
	<entry>
		<id>https://wiki.catglobe.com/index.php?title=Historic_data_collection_on_Resource_Data&amp;diff=19444&amp;oldid=prev</id>
		<title>Cg_pham at 09:13, 4 October 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=Historic_data_collection_on_Resource_Data&amp;diff=19444&amp;oldid=prev"/>
		<updated>2011-10-04T09:13:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:13, 4 October 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;accesscontrol&amp;gt;Administrators,,Cem,,Maysunshine&amp;lt;/accesscontrol&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every once in a while you not only need to have some data extracted from the state of the system, you also want to collect the historic data over time.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every once in a while you not only need to have some data extracted from the state of the system, you also want to collect the historic data over time.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-6691:rev-19444:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Cg_pham</name></author>
	</entry>
	<entry>
		<id>https://wiki.catglobe.com/index.php?title=Historic_data_collection_on_Resource_Data&amp;diff=6691&amp;oldid=prev</id>
		<title>Catglobe: New page: Every once in a while you not only need to have some data extracted from the state of the system, you also want to collect the historic data over time.  An example could be outstanding iss...</title>
		<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=Historic_data_collection_on_Resource_Data&amp;diff=6691&amp;oldid=prev"/>
		<updated>2009-06-17T07:05:28Z</updated>

		<summary type="html">&lt;p&gt;New page: Every once in a while you not only need to have some data extracted from the state of the system, you also want to collect the historic data over time.  An example could be outstanding iss...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Every once in a while you not only need to have some data extracted from the state of the system, you also want to collect the historic data over time.&lt;br /&gt;
&lt;br /&gt;
An example could be outstanding issues, like the below graph shows.&lt;br /&gt;
&lt;br /&gt;
[[Image:exampleHistoricData.png]]&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
First thing is to create the RCS on the data you actually need to view. Lets call it &amp;quot;Current Outstanding Issues&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Next thing to do is make a Tabulation script. This script should be setup to run with the &amp;quot;Current Outstanding Issues&amp;quot; data cache.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
//Make sure that the DCS is up to date&amp;lt;br/&amp;gt;&lt;br /&gt;
DCS_rebuild();&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
//Calculate whatever numbers we need&amp;lt;br/&amp;gt;&lt;br /&gt;
number all_t1 = sum(Property_150) where (Completed);&amp;lt;br/&amp;gt;&lt;br /&gt;
number all_t2 = sum(Property_150) where (!Completed &amp;amp;&amp;amp; Parameter_42 &amp;gt; 88);&amp;lt;br/&amp;gt;&lt;br /&gt;
number all_t3 = sum(Property_120) where (!Completed);&amp;lt;br/&amp;gt;&lt;br /&gt;
number all_Total = sum(Property_150) where (true);&amp;lt;br/&amp;gt;&lt;br /&gt;
number all_pct_done = 1 - (all_t1 + all_t3)/all_Total;&amp;lt;br/&amp;gt;&lt;br /&gt;
number all_pct_if_all_done_now = 1 - (all_t1 + all_t2)/all_Total;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
//Go into RPQ context&amp;lt;br/&amp;gt;&lt;br /&gt;
setRPQId(1);&amp;lt;br/&amp;gt;&lt;br /&gt;
//Replace this with the id of the questionnaire you create below&amp;lt;br/&amp;gt;&lt;br /&gt;
number pqID = 719;&amp;lt;br/&amp;gt;&lt;br /&gt;
//Create a new Answer Sheet&amp;lt;br/&amp;gt;&lt;br /&gt;
number rpqId = createResourceProjectQuestionnaire(pqID);&amp;lt;br/&amp;gt;&lt;br /&gt;
//And make that the current one&amp;lt;br/&amp;gt;&lt;br /&gt;
setRPQId(rpqId);&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
//Store the data in the questionnaire&amp;lt;br/&amp;gt;&lt;br /&gt;
q_all_Total = all_Total;&amp;lt;br/&amp;gt;&lt;br /&gt;
q_all_pct_done = all_pct_done;&amp;lt;br/&amp;gt;&lt;br /&gt;
q_all_pct_if_all_done_now = all_pct_if_all_done_now;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
setRPQCompleted(true);&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will read all the current data, calculate some number we are interested in keeping. All we need to do is create a questionnaire that will hold these data.&lt;br /&gt;
&lt;br /&gt;
This we accomplish using QSL. With the very simple script below we can easily create a questionnaire to contain all the data we need.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
QUESTIONNAIRE&amp;lt;br/&amp;gt;&lt;br /&gt;
QUESTION q_all_Total NUMBER [DUMMY=true;]&amp;lt;br/&amp;gt;&lt;br /&gt;
QUESTION q_all_pct_done NUMBER [DUMMY=true;]&amp;lt;br/&amp;gt;&lt;br /&gt;
QUESTION q_all_pct_if_all_done_now NUMBER [DUMMY=true;]&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then edit the tabulation script again, with the ID of the questionnaire, and setup a schedule to run it. This schedule should match the time periods you want to sample your data in.&lt;br /&gt;
&lt;br /&gt;
Then create another data cache which just includes all questions from the questionnaire, and you will have a data cache containing the historic data from the reports of a what is otherwise a temporary view of the resources.&lt;br /&gt;
&lt;br /&gt;
 [[category:Production guidelines]]&lt;/div&gt;</summary>
		<author><name>Catglobe</name></author>
	</entry>
</feed>