<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" --><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Kirix Strata Blog</title>
	<link>http://www.kirix.com/stratablog</link>
	<description>Application Spotlight</description>
	<pubDate>Thu, 04 Feb 2010 18:03:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.kirix.com/stratablog" /><feedburner:info uri="stratablog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Excel Date Conversion (Days from 1900)</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/WU6CPazEq6U/excel-date-conversion-days-from-1900</link>
		<comments>http://www.kirix.com/stratablog/excel-date-conversion-days-from-1900#comments</comments>
		<pubDate>Thu, 04 Feb 2010 18:03:57 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[dates]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/excel-date-conversion-days-from-1900</guid>
		<description><![CDATA[Dates tend to always be tricky things to convert, since there are so many different formats used in different software packages.  Today we received a support request about converting Excel dates.  This should have been straightforward, as Excel simply provides the number of days since January 1, 1900.  So, for example:
20    - [...]]]></description>
			<content:encoded><![CDATA[<p>Dates tend to always be tricky things to convert, since there are so many different formats used in different software packages.  Today we received a support request about converting Excel dates.  This should have been straightforward, as <a href="http://support.microsoft.com/kb/180162" title="Excel Date Format">Excel simply provides the number of days since January 1, 1900</a>.  So, for example:</p>
<pre>20    - January 20, 1900
35981 - July 5, 1998
39341 - September 16, 2007</pre>
<p>So, as we saw with the <a href="http://www.kirix.com/stratablog/jd-edwards-date-conversions-cyyddd" title="JD Edwards Date Conversion">JD Edwards Conversion</a>, we should simply need to use the following formula to convert it:</p>
<pre>date(1900,1,1) + fieldname - 1</pre>
<p>However, it turns out that <a href="http://support.microsoft.com/kb/214326" title="Excel Date Bug">Excel has a date bug from its very early days</a>, due to an even earlier date bug in Lotus 1-2-3:</p>
<blockquote><p>&#8220;When Lotus 1-2-3 was first released, the program assumed that the year 1900 was a leap year, even though it actually was not a leap year. This made it easier for the program to handle leap years and caused no harm to almost all date calculations in Lotus 1-2-3.</p>
<p>When Microsoft Multiplan and Microsoft Excel were released, they also assumed that 1900 was a leap year. This assumption allowed Microsoft Multiplan and Microsoft Excel to use the same serial date system used by Lotus 1-2-3 and provide greater compatibility with Lotus 1-2-3. Treating 1900 as a leap year also made it easier for users to move worksheets from one program to the other.&#8221;</p></blockquote>
<p>So, in order to properly convert, we need to account for this extra day.  And, we get the final formula:</p>
<pre>date(1900,1,1) + fieldname - 2</pre>
<p>For further information on dates, <a href="http://www.kirix.com/stratablog/category/dates" title="Kirix Strata Blog Date Conversions">please take a look at the other posts we&#8217;ve done on this topic in the past</a>.</p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/WU6CPazEq6U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/excel-date-conversion-days-from-1900/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/excel-date-conversion-days-from-1900</feedburner:origLink></item>
		<item>
		<title>JD Edwards Date Conversions (CYYDDD)</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/PTjGwFWIkOY/jd-edwards-date-conversions-cyyddd</link>
		<comments>http://www.kirix.com/stratablog/jd-edwards-date-conversions-cyyddd#comments</comments>
		<pubDate>Thu, 16 Apr 2009 14:35:09 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[calculated fields]]></category>

		<category><![CDATA[dates]]></category>

		<category><![CDATA[tips &amp; tricks]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/jd-edwards-date-conversions-cyyddd</guid>
		<description><![CDATA[In the last post, we talked about Julian dates and Unix Timestamp conversion.  We recently received a support request regarding another type of date conversion and, since it might be applicable to others, we thought it would be a good idea to show how you can convert it in Strata.  The format is C-YY-DDD, which [...]]]></description>
			<content:encoded><![CDATA[<p>In the last post, we talked about <a href="http://www.kirix.com/stratablog/converting-julian-dates-and-unix-timestamps" title="Strata Blog - Julian Dates and Unix timestamps">Julian dates and Unix Timestamp</a> conversion.  We recently received a support request regarding another type of date conversion and, since it might be applicable to others, we thought it would be a good idea to show how you can convert it in Strata.  The format is C-YY-DDD, which is used by JD Edwards software: the century after 1900, the year in that century and the Julian date within that year.  Here are a few examples:</p>
<pre>
105031 - January 31, 2005
107263 - September 20, 2007
98129 - May 9, 1998</pre>
<p>To convert the dates we first want to get the string into the proper year and then we&#8217;ll add the Julian date to get the proper day/month (which will also take into account leap years).  So, let&#8217;s take the example &#8220;107263&#8243; (we&#8217;ll assume that it is in Numeric format in your field).  Here is the full expression you can use in a <a href="http://www.kirix.com/help/docs/creating_and_managing_calculat.htm" title="Creating calculated fields">calculated field</a>:</p>
<pre>date(1900+(field1/1000),1,1)+val(right(str(field1),3))-1</pre>
<h3>Getting the Year</h3>
<pre>date(1900+(field/1000),1,1)</pre>
<p>The first part of the formula takes the string and divides by 1000, which, when rounded, will provide the first three digits (&#8221;107).  It then adds 1900 to the 107 to give us &#8220;2007&#8243;.  Then the normal <a href="http://www.kirix.com/help/docs/date.htm" title="DATE() function">date conversion</a> applies and we end up with &#8220;01/01/2007.&#8221;</p>
<h3>Getting the Day and Month</h3>
<pre>val(right(str(field1),3))-1</pre>
<p>Here we are adding the Julian days for the year to the date we created above &#8220;01/01/2007&#8243; &#8212; so, if we added &#8220;1&#8243; to this date, we would get 01/02/2007, and so on.  Here we are using the <a href="http://www.kirix.com/help/docs/right.htm" title="RIGHT() function">RIGHT() function</a> to pull out the 3 digits on the right side of the field, in this case &#8220;263.&#8221;  Because it was numeric, we needed to first convert it to a string using the <a href="http://www.kirix.com/help/docs/str.htm" title="STR() function">STR() function</a> and then we converted the result back to a numeric value using the <a href="http://www.kirix.com/help/docs/val.htm" title="Val() function">VAL() function</a>.  This gives us &#8220;09/21/2007.&#8221;  Because we started at &#8220;1&#8243; (January 1st) instead of &#8220;0&#8243;, we simply need to subtract 1 from our date to obtain the correct date of &#8220;09/20/2007.&#8221;</p>
<p>NOTE:  If your JDE date was a character field instead of a numeric field to begin with, you could change the structure or just convert manually in your expression with the VAL() function as follows:</p>
<pre>date(1900+(val(field3)/1000),1,1)+val(right(str(val(field3)),3))-1</pre>
<p>If anyone has other date conversions they&#8217;re having trouble with, please let us know and we&#8217;ll see if we can help.</p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/PTjGwFWIkOY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/jd-edwards-date-conversions-cyyddd/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/jd-edwards-date-conversions-cyyddd</feedburner:origLink></item>
		<item>
		<title>Converting Julian dates and Unix timestamps</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/0ezWs9262N8/converting-julian-dates-and-unix-timestamps</link>
		<comments>http://www.kirix.com/stratablog/converting-julian-dates-and-unix-timestamps#comments</comments>
		<pubDate>Thu, 26 Mar 2009 17:29:25 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[dates]]></category>

		<category><![CDATA[tips &amp; tricks]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/converting-julian-dates-and-unix-timestamps</guid>
		<description><![CDATA[Converting date formats can be a tricky thing.  Two of the more cryptic formats that come up in our support questions relate to Julian dates and Unix timestamps.  Here&#8217;s how you convert them in Strata:
Julian Dates
A Julian date is the number of days since January 1, 4713 BC GMT.  To convert a Julian date to [...]]]></description>
			<content:encoded><![CDATA[<p>Converting date formats can be a tricky thing.  Two of the more cryptic formats that come up in our support questions relate to Julian dates and Unix timestamps.  Here&#8217;s how you convert them in Strata:</p>
<h3>Julian Dates</h3>
<p>A <a href="http://en.wikipedia.org/wiki/Julian_day" title="Wikipedia - Julian date">Julian date</a> is the number of days since January 1, 4713 BC GMT.  To convert a Julian date to the current date, you can simply use DATE(0,0,0) + &lt;number&gt;, where &lt;number&gt; is the Julian date.  For for example, if the number appears as &#8220;2454917&#8243;, the formula in Strata would be:</p>
<p><code>date(0,0,0) +  2454917  [the result would be March, 26, 2009]</code></p>
<h3>Unix Timestamps</h3>
<p>A <a href="http://en.wikipedia.org/wiki/Unix_time" title="Wikipedia - Unix timestamp">unix timestamp</a> is the number of seconds since 1970.  To convert a unix timestamp to the current date, use DATE(&lt;number&gt;), where &lt;number&gt; is the number of milliseconds since 1970.  If the timestamp is given in seconds, multiply by 1000:  DATE(&lt;number&gt;*1000).  So, for example, if you the number appears as &#8220;1237657172&#8243;, the formula in Strata would be:</p>
<p><code>date(1238088021 * 1000)  [the result would be March, 26, 2009]</code></p>
<p>As a side note,  sometimes one might mistake a Julian or Unix date for a different custom format.  For instance, dates could be stored in the format YYDDD or YYYYDDD where YY/YYYY is the year, and DDD is the number of days since the beginning of that year.  So 2001003 would be January 3, 2001</p>
<p>For further information on Strata date conversion, <a href="http://www.kirix.com/help/docs/date.htm" title="Kirix Help - Date Conversion">please see this help page</a>.</p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/0ezWs9262N8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/converting-julian-dates-and-unix-timestamps/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/converting-julian-dates-and-unix-timestamps</feedburner:origLink></item>
		<item>
		<title>Setting Table Structure Prior to Import</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/20MwliTzJ5k/setting-table-structure-prior-to-import</link>
		<comments>http://www.kirix.com/stratablog/setting-table-structure-prior-to-import#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:34:53 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[import/export]]></category>

		<category><![CDATA[scripts]]></category>

		<category><![CDATA[structure/design]]></category>

		<category><![CDATA[tips &amp; tricks]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/setting-table-structure-prior-to-import</guid>
		<description><![CDATA[
Strata can work directly with fixed-length or delimited text files.  Let&#8217;s say we need to change the structure of a text-delimited file &#8212; say, making a field with smaller to truncate unnecessary values and reduce our files size.  We can do this using two methods, either by manually changing our values or by changing the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.kirix.com/stratablog/files/2009/02/script_import.png" alt="Script Snippet Image" vspace="20" /></p>
<p>Strata can work directly with fixed-length or delimited text files.  Let&#8217;s say we need to change the structure of a text-delimited file &#8212; say, making a field with smaller to truncate unnecessary values and reduce our files size.  We can do this using two methods, either by manually changing our values or by changing the values programmatically prior to import.  (As an example, we may have wanted to reduce our <a href="http://www.kirix.com/blog/2007/08/24/embedded-phpbb-search-terms-within-apache-web-logs/" title="parsing apache web logs">web log field width size in this example</a>).</p>
<h3> <a href="http://www.kirix.com/stratablog/setting-table-structure-prior-to-import#more-54" class="more-link">(more&#8230;)</a></p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/20MwliTzJ5k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/setting-table-structure-prior-to-import/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/setting-table-structure-prior-to-import</feedburner:origLink></item>
		<item>
		<title>Tutorial: Opening/Importing and Saving/Exporting Data</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/vq00tkF_ksg/tutorial-openingimporting-and-savingexporting-data</link>
		<comments>http://www.kirix.com/stratablog/tutorial-openingimporting-and-savingexporting-data#comments</comments>
		<pubDate>Fri, 06 Feb 2009 22:33:06 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[import/export]]></category>

		<category><![CDATA[screencast]]></category>

		<category><![CDATA[tutorials]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/tutorial-openingimporting-and-savingexporting-data</guid>
		<description><![CDATA[We&#8217;ve got another tutorial video which we think you&#8217;ll find useful.  The first thing anyone ever wants to do after installing Strata is to get some of their data in.  This video will quickly show you the various ways to get data in and out (hint &#8212; it&#8217;s easier than just using the Import/Export functionality):

Also, [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve got another tutorial video which we think you&#8217;ll find useful.  The first thing anyone ever wants to do after installing Strata is to get some of their data in.  This video will quickly show you the various ways to get data in and out (hint &#8212; it&#8217;s easier than just using the Import/Export functionality):</p>
<p><a href="http://videos.kirix.com/tutorials/2008-12-11-tutorial-opening-and-saving/2008-12-11-tutorial-opening-and-saving.htm" title="Play Video" rel="mediabox 700 545"><img src="http://www.kirix.com/stratablog/files/2009/02/vid_import1.png" alt="Play Opening and Saving Video Tutorial" border="0" /></a></p>
<p>Also, for future reference, all of our tutorial videos can now be found in a single location:  <a href="http://www.kirix.com/strata/portal" title="Kirix Strata Online Tutorial Portal">http://www.kirix.com/strata/portal<br />
</a></p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/vq00tkF_ksg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/tutorial-openingimporting-and-savingexporting-data/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/tutorial-openingimporting-and-savingexporting-data</feedburner:origLink></item>
		<item>
		<title>Tutorial: Creating Calculations and Cleaning up Dirty Data</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/5bHKPabG6vs/tutorial-creating-calculations-and-cleaning-up-dirty-data</link>
		<comments>http://www.kirix.com/stratablog/tutorial-creating-calculations-and-cleaning-up-dirty-data#comments</comments>
		<pubDate>Wed, 17 Dec 2008 00:45:28 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[calculated fields]]></category>

		<category><![CDATA[dirty data]]></category>

		<category><![CDATA[screencast]]></category>

		<category><![CDATA[tips &amp; tricks]]></category>

		<category><![CDATA[tutorials]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/tutorial-creating-calculations-and-cleaning-up-dirty-data</guid>
		<description><![CDATA[Continuing with our video tutorial series, here&#8217;s one on creating calculations and using formulas.  This one briefly looks at how to create calculated fields, but quickly delves into more complex formulas and functions.  This one would be worth watching, even if you&#8217;re an expert &#8212; it may give you a few new ideas.

]]></description>
			<content:encoded><![CDATA[<p>Continuing with our video tutorial series, here&#8217;s one on creating calculations and using formulas.  This one briefly looks at how to create calculated fields, but quickly delves into more complex formulas and functions.  This one would be worth watching, even if you&#8217;re an expert &#8212; it may give you a few new ideas.</p>
<p><a href="http://videos.kirix.com/tutorials/2008-12-02-tutorial-calculations/2008-12-02-tutorial-calculations.htm" title="Play Video" rel="mediabox 700 545"><img src="http://www.kirix.com/stratablog/files/2008/12/vid_calculations.png" alt="Play Calculations Video Tutorial" border="0" /></a></p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/5bHKPabG6vs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/tutorial-creating-calculations-and-cleaning-up-dirty-data/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/tutorial-creating-calculations-and-cleaning-up-dirty-data</feedburner:origLink></item>
		<item>
		<title>More Tutorials Videos:  Sorting and Filtering</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/0DBAp6Y87X8/more-tutorials-videos-sorting-and-filtering</link>
		<comments>http://www.kirix.com/stratablog/more-tutorials-videos-sorting-and-filtering#comments</comments>
		<pubDate>Fri, 12 Dec 2008 00:10:17 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[screencast]]></category>

		<category><![CDATA[tips &amp; tricks]]></category>

		<category><![CDATA[tutorials]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/more-tutorials-videos-sorting-and-filtering</guid>
		<description><![CDATA[Just wanted to get out a couple more tutorial blogs to everyone before the final page gets published:
Sorting:

Filtering:

Enjoy!
]]></description>
			<content:encoded><![CDATA[<p>Just wanted to get out a couple more tutorial blogs to everyone before the final page gets published:</p>
<p><strong>Sorting:</strong></p>
<p><a href="http://videos.kirix.com/tutorials/2008-11-19-tutorial-sorting/2008-11-19-tutorial-sorting.htm" title="Play Video" rel="mediabox 700 545"><img src="http://www.kirix.com/stratablog/files/2008/12/vid_sort.png" alt="Play Video" border="0" /></a></p>
<p><strong>Filtering:</strong></p>
<p><a href="http://videos.kirix.com/tutorials/2008-11-20-tutorial-filtering/2008-11-20-tutorial-filtering.htm" title="Play Video" rel="mediabox 700 545"><img src="http://www.kirix.com/stratablog/files/2008/12/vid_filter.png" alt="Play Video" border="0" /></a></p>
<p>Enjoy!</p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/0DBAp6Y87X8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/more-tutorials-videos-sorting-and-filtering/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/more-tutorials-videos-sorting-and-filtering</feedburner:origLink></item>
		<item>
		<title>Tutorial:  Getting Started with Strata’s User Interface</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/SslXGNwG9OU/tutorial-getting-started-with-stratas-user-interface</link>
		<comments>http://www.kirix.com/stratablog/tutorial-getting-started-with-stratas-user-interface#comments</comments>
		<pubDate>Wed, 19 Nov 2008 23:56:39 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[screencast]]></category>

		<category><![CDATA[tips &amp; tricks]]></category>

		<category><![CDATA[tutorials]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/tutorial-getting-started-with-stratas-user-interface</guid>
		<description><![CDATA[We&#8217;re in the midst of putting together video tutorials that cover each of Strata&#8217;s main features.  I figure I&#8217;d leak some of these ahead of time on this blog, as many may find them useful.
This first video is sort of a basic &#8220;rules of the road&#8221; for getting around the Strata interface.  It&#8217;s a little [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re in the midst of putting together video tutorials that cover each of Strata&#8217;s main features.  I figure I&#8217;d leak some of these ahead of time on this blog, as many may find them useful.</p>
<p>This first video is sort of a basic &#8220;rules of the road&#8221; for getting around the Strata interface.  It&#8217;s a little over 3 minutes long and covers things like using tabs, panels, various views, and controls in the table view like moving columns and editing.</p>
<p>If you&#8217;re an expert Strata user, you&#8217;ve probably already got these bases covered.  However,  there&#8217;s a good shot that many people will probably pick up at least one thing new.</p>
<p><a href="http://videos.kirix.com/tutorials/2008-11-18-tutorial-getting-started/2008-11-18-tutorial-getting-started.htm" title="Play Video" rel="mediabox 700 545"><img src="http://www.kirix.com/stratablog/files/2008/12/vid_gettingstarted.png" alt="Play Video" border="0" /></a></p>
<p>More rogue tutorial videos to be posted soon&#8230;</p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/SslXGNwG9OU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/tutorial-getting-started-with-stratas-user-interface/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/tutorial-getting-started-with-stratas-user-interface</feedburner:origLink></item>
		<item>
		<title>Exploring Calculated Fields: Part 2 - Extracting Data Values with STRPART()</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/mf6cUaesqpw/exploring-calculated-fields-part-2-extracting-data-values-with-strpart</link>
		<comments>http://www.kirix.com/stratablog/exploring-calculated-fields-part-2-extracting-data-values-with-strpart#comments</comments>
		<pubDate>Thu, 14 Aug 2008 22:45:46 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[calculated fields]]></category>

		<category><![CDATA[formulas]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/exploring-calculated-fields-part-2-extracting-data-values-with-strpart</guid>
		<description><![CDATA[In part 1 of this series, we looked at the basics of using calculated fields, including referencing fields and using functions.
In this installment, we&#8217;ll look at how you can use calculated fields to extract data values from a column with &#8220;dirty&#8221; data.  This happens more than one might think:  if you’ve ever “cleaned” a list [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kirix.com/stratablog/exploring-calculated-fields-part-i-the-basics" title="calculated fields, part I">In part 1 of this series</a>, we looked at the basics of using calculated fields, including referencing fields and using functions.</p>
<p>In this installment, we&#8217;ll look at how you can use <a href="http://www.kirix.com/help/docs/creating_calculations.htm" title="Calculated Fields">calculated fields</a> to extract data values from a column with &#8220;dirty&#8221; data.  This happens more than one might think:  if you’ve ever “cleaned” a list of contact information or migrated databases, you know that you often have to take a column and break it up into multiple parts.  Calculated fields make this task very easy.</p>
<p>Let’s look at an example.  Suppose we have a table that contains raw contact information smashed together in a single field:</p>
<p><img src="http://www.kirix.com/stratablog/files/2008/08/calcfield_ii_1.png" alt="Calc Fields, Part II - img 1" /></p>
<p>Let&#8217;s extract each of these parts &#8212; first name, last name and email address &#8212; from the single column into multiple columns.  We&#8217;ll do this by using a calculated field with a function that parses the string, based on a delimiter (such as a space), and returns the relevant portion of the string. <a href="http://www.kirix.com/stratablog/exploring-calculated-fields-part-2-extracting-data-values-with-strpart#more-41" class="more-link">(more&#8230;)</a></p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/mf6cUaesqpw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/exploring-calculated-fields-part-2-extracting-data-values-with-strpart/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/exploring-calculated-fields-part-2-extracting-data-values-with-strpart</feedburner:origLink></item>
		<item>
		<title>Exploring Calculated Fields:  Part I - The Basics</title>
		<link>http://feeds.kirix.com/~r/stratablog/~3/yvtnVoD6a4Q/exploring-calculated-fields-part-i-the-basics</link>
		<comments>http://www.kirix.com/stratablog/exploring-calculated-fields-part-i-the-basics#comments</comments>
		<pubDate>Wed, 06 Aug 2008 22:58:24 +0000</pubDate>
		<dc:creator>Ken Kaczmarek</dc:creator>
		
		<category><![CDATA[calculated fields]]></category>

		<category><![CDATA[formulas]]></category>

		<category><![CDATA[screencast]]></category>

		<category><![CDATA[tips &amp; tricks]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.kirix.com/stratablog/exploring-calculated-fields-part-i-the-basics</guid>
		<description><![CDATA[Calculated fields are one of the cornerstones of data analysis.  It&#8217;s just one of those tools that you end up using again and again.  And, if you can master the functions and formulas and make them do your bidding, you&#8217;ll be well on your way to becoming a data Jedi.  This article begins a multi-part [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.kirix.com/stratablog/files/2008/08/calculated-field-thumb.png" alt="Screenshot Thumbnail - Calculated Field" align="left" border="0" />Calculated fields are one of the cornerstones of data analysis.  It&#8217;s just one of those tools that you end up using again and again.  And, if you can master the functions and formulas and make them do your bidding, you&#8217;ll be well on your way to becoming a data <a href="http://en.wikipedia.org/wiki/Jedi" title="Wikipedia - Jedi">Jedi</a>.  This article begins a multi-part blog series on using calculated fields in your projects.</p>
<p>Calculated fields are nothing more than a way to apply a formula to existing columns or fields.  (As a quick aside, spreadsheets use the terms row/column, whereas databases use the terms record/field &#8212; there are some technical differences, but for our purposes here, they are very similar).  A poor man&#8217;s calculated field is found in a spreadsheet; you create a formula in a blank cell and then drag the cell down to apply it to the other rows.  The more traditional calculated field is found in the database world.  Here you create a new field that encapsulates a calculation and then you run it across the entire table.</p>
<p>With <a href="http://www.kirix.com/" title="Kirix Strata Home">Kirix Strata</a>, you get a calculated field like that found in the database world, but with the dynamic/instant properties you get in the spreadsheet world.  So, when you create a calculated field in Strata, you get a calculation that applies to the entire data set instantly &#8212; whether its 10 rows or 10 million.  In addition, these fields behave like regular ol&#8217; fields, so you can reference them in other calculated fields or use them in your sorts, filters, groups, relationships, queries and other operations.  Of course, the actual data can&#8217;t be edited like in a regular field, but the underlying formula can be tweaked &#8212; with the results showing up in your view in real-time.</p>
<p>Let&#8217;s create some simple examples to show how calculated fields work.  We&#8217;ll look at the <a href="http://finance.yahoo.com/q/hp?s=AAPL" title="APPL historic prices">historic stock prices of Apple Computer</a> (to try this yourself, just click the &#8220;<a href="http://ichart.finance.yahoo.com/table.csv?s=AAPL&amp;d=7&amp;e=6&amp;f=2008&amp;g=d&amp;a=8&amp;b=7&amp;c=1984&amp;ignore=.csv" title="Yahoo APPL Download to Spreadsheet">Download to Spreadsheet</a>&#8221; at the bottom of the web page and it will open up into a table in Strata):</p>
<p><img src="http://www.kirix.com/stratablog/files/2008/08/stocks_1.png" alt="APPL stock data" /></p>
<p> <a href="http://www.kirix.com/stratablog/exploring-calculated-fields-part-i-the-basics#more-32" class="more-link">(more&#8230;)</a></p>
<img src="http://feeds.feedburner.com/~r/stratablog/~4/yvtnVoD6a4Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.kirix.com/stratablog/exploring-calculated-fields-part-i-the-basics/feed</wfw:commentRss>
		<feedburner:origLink>http://www.kirix.com/stratablog/exploring-calculated-fields-part-i-the-basics</feedburner:origLink></item>
	</channel>
</rss>

