<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BEKK Open &#187; cfd</title>
	<atom:link href="http://open.bekk.no/tag/cfd/feed/" rel="self" type="application/rss+xml" />
	<link>http://open.bekk.no</link>
	<description>Et innblikk i hva som skjer i BEKK</description>
	<lastBuildDate>Fri, 10 Sep 2010 16:43:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cumulative Flow Diagrams with Google Spreadsheets</title>
		<link>http://open.bekk.no/2009/11/03/cumulative-flow-diagrams-with-google-spreadsheets/</link>
		<comments>http://open.bekk.no/2009/11/03/cumulative-flow-diagrams-with-google-spreadsheets/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 08:05:33 +0000</pubDate>
		<dc:creator>Aslak Hellesøy</dc:creator>
				<category><![CDATA[BEKK]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[cfd]]></category>
		<category><![CDATA[conwip]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[kanban]]></category>

		<guid isPermaLink="false">http://open.bekk.no/?p=1524</guid>
		<description><![CDATA[Jan 12 2010: UPDATE &#8211; a new version of the spreadsheet with bugfixes is here.
Let&#8217;s face it: Most project stakeholders care more about time to market than preposterous &#8220;agile&#8221; metrics such as velocity and burndown charts. Teams that only use these tools to report progress completely conceal information about how quickly a team can deliver [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">Jan 12 2010: UPDATE &#8211; a new version of the spreadsheet with bugfixes <a title="CFD v2" href="http://spreadsheets.google.com/ccc?key=0ArGwt1TE9pirdEdmaldqMHR0MFNIWTRIXzRNYVRyMmc&amp;hl=en">is here</a>.</span></p>
<p>Let&#8217;s face it: Most project stakeholders care more about time to market than preposterous &#8220;agile&#8221; metrics such as <a id="g8yy" title="velocity" href="http://www.scrumalliance.org/articles/39-glossary-of-scrum-terms#1110">velocity</a> and <a id="l-0t" title="burndown charts" href="http://www.scrumalliance.org/articles/39-glossary-of-scrum-terms#1116">burndown charts</a>. Teams that only use these tools to report progress completely conceal information about how <em>quickly</em> a team can deliver new features. This is because velocity and burndown charts ignore the time to market aspect and provide zero quantitative information about how to improve it.</p>
<p>A Cumulative Flow Diagram (CFD) is a visual tool that communicates a team&#8217;s ability to deliver working software in a timely manner, showing a detailed picture of the entire process. Its primary purpose is to improve the current process, and not to predict the future (although it can be used for that too).</p>
<p>If you know Scrum, think of a CFD as a burndown chart that goes beyond showing when <em>work items</em> (<a id="buw4" title="user stories" href="http://en.wikipedia.org/wiki/User_story">user stories</a>, <a id="e4om" title="MMFs" href="http://www.softwarebynumbers.org/">MMFs</a> or even <a id="u502" title="tasks" href="http://www.scrumalliance.org/articles/39-glossary-of-scrum-terms#1129">tasks</a>) are moved to the last column on the story board. A CFD shows when work items are moved in <em>all</em> the columns of your story board, making it painfully visible where there are bottlenecks. -And more importantly &#8211; the devastating effect unfinished work in progress has on a team&#8217;s ability to deliver working functionality fast.</p>
<p>The knowledge you get from a CFD can be used to improve the process so the team can deliver software faster. It lets you make informed decisions about what to fix instead of the dim-witted &#8220;add more people&#8221; that happens on many projects.</p>
<p>In this article I will show you how to interpret a CFD and how you can create one with very little effort. As a bonus you&#8217;ll get some additional charts that may also be useful to you. You&#8217;ll be using Google Spreadsheets for all of this. And best of all &#8211; you can use this tool regardless of what kind of process you&#8217;re using today, whether it&#8217;s iterative, incremental, waterfall, cowboy or whac-a-mole. A CFD doesn&#8217;t change your process, it just provides you with disgnostics about it.</p>
<p>Are you ready? Let&#8217;s start with a little queueing theory.</p>
<h2>Lead time</h2>
<p>The term <em><a id="t85k" title="Lead time" href="http://en.wikipedia.org/wiki/Lead_time">lead time</a></em> (LT) is just a fancy way to say <em>time to market</em>. It&#8217;s essentially the time that elapses (on the calendar) from something is ordered until it is received. In software development, a feature is <em>ordered</em> when someone (like the product owner) asks someone else (the team) to implement it. The same feature is<em> received</em> when it is deployed to the production system and ready to be used by end users.</p>
<p>Many teams don&#8217;t measure lead time, and as a result, don&#8217;t know how to reduce it. A CFD shows you what your lead time is and also gives you hints about what you can do to shorten it. Let&#8217;s look at a sample CFD:</p>
<p><a href="http://spreadsheets.google.com/ccc?key=0ArGwt1TE9pirdGE1SHl0ODI3NmlmMHBZVlMycGpLVmc&amp;hl=en"><img class="alignnone size-full wp-image-1570" title="Cumulative Flow Diagram" src="http://open.bekk.no/wp-content/uploads/2009/11/CFD-annotated.001.png" alt="Cumulative Flow Diagram" width="750" height="582" /></a></p>
<p>The first thing you need to know about a CFD is how to read the lead time. At any point in time (the X axis), the lead time is the horizontal distance between the top left area and the bottom right one.</p>
<p>For example, in week 18 the lead time was 13 weeks. Just find the Y point on the <em>Specify</em> line (82 items), draw a horizontal line forward in time until you hit the <em>Deployed</em> line (week 31). The length of this line is the lead time. This means that in week 18 the average time to market for a single feature was 13 weeks.</p>
<p>Note that starting from week 33 we don&#8217;t yet know what the lead time is &#8211; since the <em>Deployed</em> line hasn&#8217;t yet reached the same level.</p>
<h2>Work in progress</h2>
<p>The Y axis on a CFD is the number of work items (typically user stories) at any given station. (Estimates are not interesting on a CFD, we just count how many work items we have). The CFD is a stacked area chart where each area represents a station in the development process. Some people like to think of it as a story board tilted on the side and dragged out over time.</p>
<p><em>Nov 3 edit : I wasn&#8217;t comparing the right interval.<br />
</em></p>
<p>During the 13 weeks between week 18 and week 31 the team deployed 69 new features. This is an average <em>throughput rate</em> of 5.3 features per week (69 features/13 weeks). The inverse of throughput is called <em>cycle time</em>, and that was 0.19 weeks per feature &#8211; or approximately 1 day per feature. Despite this the average lead time for 1 feature is 13 weeks. How come the lead time is so much longer than the cycle time?</p>
<p><span style="text-decoration: line-through;">By week 18 we had deployed 24 features to our production system. Not bad! On average we delivered 2 features per week between week 6 and week 12, which means we had a velocity (using Scrum terms) of 2 features/week. This does not mean that it takes 1/2 week to deliver a single feature. The lead time is 13 weeks even if a single feature pops out every half week. How come?</span></p>
<p>There is another factor that comes into play here, and that&#8217;s <em>work in progress</em>, commonly called <em>WIP</em>. The relationship between <em>lead time</em>, <em>WIP</em> and <em>arrival rate</em> can be explained with <a id="t6yt" title="Little's law" href="http://en.wikipedia.org/wiki/Little%27s_law">Little&#8217;s law</a>. Translated to our terminology this can be expressed as follows:</p>
<p style="text-align: center;"><strong>WIP = Arrival Rate * Lead Time</strong></p>
<p>Let&#8217;s assume that we want to keep the arrival rate constant, i.e. how many items are moved from <em>Backlog</em> to <em>Specify</em> per week. How can we reduce the lead time so that we get a shorter time to market? It should be obvious from Little&#8217;s law (and from the CFD) that reducing WIP will also reduce the lead time.</p>
<p>On the CFD, the WIP at any given moment is the height between the top left area (<em>Backlog</em>) and the bottom right one (<em>Deployed</em>). WIP can only effectively be reduced if the team agrees to never work on more than a certain limited number of items at any given time. <a id="hw5c" title="Kanban" href="http://en.wikipedia.org/wiki/Kanban">Kanban</a>, <a id="n4mu" title="CONWIP" href="http://en.wikipedia.org/wiki/CONWIP">CONWIP</a> and <a id="luft" title="Scrum-ban" href="http://leansoftwareengineering.com/ksse/scrum-ban/">Scrum-ban</a> are similar techniques to achieve this. I won&#8217;t go into detail about these techniques in this article. Instead, I&#8217;ll give you a very simple tool that you can use to create a CFD that you can use to communicte visually where in the process you have too much WIP, and how it (negatively) impacts lead time.</p>
<p>After using this for a couple of weeks I&#8217;m sure your team will be discussing how to reduce WIP and maybe head over to <a id="szo1" title="Limited WIP Society" href="http://www.limitedwipsociety.org/">Limited WIP Society</a> to learn more.</p>
<h2>Google Spreadsheets</h2>
<p>Once a week (or at a shorter or longer interval if you want) you&#8217;ll count the number of items in each station (including the backlog station and the deployed station &#8211; i.e. items that are <em>completely</em> done). Then you&#8217;ll enter a new row in the spreadsheet with these values. <strong>That&#8217;s it</strong>. The charts that are embedded in the spreadsheet will update automatically, and you can easily export them if you want. If it was harder than this you wouldn&#8217;t do it. Boring tasks should be simple.</p>
<p>In order to make the wonders of CFD easily available for as many as possible I have created a template <a id="v331" title="CFD Google Spreadsheet" href="http://spreadsheets.google.com/ccc?key=0ArGwt1TE9pirdGE1SHl0ODI3NmlmMHBZVlMycGpLVmc&amp;hl=en" target="_blank">CFD Google Spreadsheet</a> document that you can copy and use in your own project. The document consists of 6 sheets. I&#8217;ll explain what they are.</p>
<h3>Input sheet</h3>
<p>This is where you enter numbers at these regular intervals.</p>
<p>The first column in this sheet is your timeline. It&#8217;s entirely up to you how granular you want to make this. I went with a week. Some teams may want to use days, other 2 weeks. If you follow some kind of iterative development process I recommend you chose an interval that is 20-25% of your iteration length.</p>
<p>After the timeline column there is one column for each station in your value stream, workflow, story wall or whatever you call it. For technical reasons with Google Spreadsheets, the columns must be listed from right to left, having the earliest column to the right and the last one to the left.</p>
<p>The remaining columns are calculated and used for the charts. Don&#8217;t edit these. There are also some hidden columns for intermediate results. Don&#8217;t be scared about the formulas &#8211; they are rather simple.</p>
<h3>CFD sheet</h3>
<p>The 2nd sheet in the document is your CFD. I already explained what this is.</p>
<h3>WIP sheet</h3>
<p>The 3rd sheet shows WIP over time. In the example we start with little WIP, then it increases. Then the team decides to lower the WIP (maybe they read this article), and we see that it goes down over time. This directly affects the lead time.</p>
<h3>Lead Time sheet</h3>
<p>The 4th sheet shows lead time (time to market) over time. Notice how the team has reduced the lead time from 20 weeks(!) to 5 weeks just by reducing WIP.</p>
<h3>WIP and Lead Time sheet</h3>
<p>The 5th sheet shows WIP and Lead time together. It is interesting to observe how the shapes of the WIP chart and the Lead Time chart are similar.</p>
<p><a href="http://spreadsheets.google.com/ccc?key=0ArGwt1TE9pirdGE1SHl0ODI3NmlmMHBZVlMycGpLVmc&amp;hl=en"><img class="alignnone" title="WIP and LT" src="http://spreadsheets.google.com/oimg?key=0ArGwt1TE9pirdGE1SHl0ODI3NmlmMHBZVlMycGpLVmc&amp;oid=15&amp;v=1257211864046" alt="" width="280" height="180" /></a></p>
<p>WIP and Lead Time don&#8217;t have the same units, which explains why they don&#8217;t have the same height, but you can easily see that they are somewhat proportional in shape. Use it to convince the sceptics that juggling fewer balls means quicker delivery.</p>
<h3>Throughput sheet</h3>
<p>The 6th sheet shows throughput over time. This is roughly the same as velocity when all the work items have the same size. (Velocity accounts for varying size, throughput does not).</p>
<p><a href="http://spreadsheets.google.com/ccc?key=0ArGwt1TE9pirdGE1SHl0ODI3NmlmMHBZVlMycGpLVmc&amp;hl=en"><img title="WIP and LT" src="http://spreadsheets.google.com/oimg?key=0ArGwt1TE9pirdGE1SHl0ODI3NmlmMHBZVlMycGpLVmc&amp;oid=17&amp;v=1257211933785" alt="" width="280" height="180" /></a></p>
<p>Throughput is the rate at which work items leave our process. In our example it can be measured in deployed work items per week. In our example you can see that it increases until week 20 and then decreases again. An increasing throughput can mean several things, for example that the work items have become smaller, or that the team is working more efficiently. It&#8217;s not the most interesting metric.</p>
<h2>Creating your own copy</h2>
<p>You can create a copy of the Google Spreadsheet with <span style="font-family: Courier New;">File-&gt;Make a copy&#8230;</span> This will copy all the data, formulas and charts to your own spreadsheet that you can protect and share with whomever you want.</p>
<p>I&#8217;m sure your project has a different workflow than mine, so you want to add, remove or rename some of the columns. If you do this, just make sure that the formula in the WIP column adds up all the columns between the first and last station. This should be adjusted automatically, but check it to be sure. I also recommend you double-check the datasets for the charts when you modify things.</p>
<h2>Adding/removing rows</h2>
<p>When you start up with a fresh copy of this sheet you may not have historical data to fill in &#8211; only the status quo. If your chart looks very wide without data, just delete some rows and update the range of all of the charts. (On each chart sheet you can <span style="font-family: Courier New;">Edit Chart</span>).</p>
<p>Likewise, when you add rows, you have to manually adjust the range in the charts. You <em>could</em> let the charts&#8217; ranges go from the start until eternity so you don&#8217;t have to do this, but this would result in very narrow charts with nothing on the right.</p>
<h2>Conclusion</h2>
<p>Teams that have achieved a rapid, smooth flow don&#8217;t really need CFDs. This is because the only way to achieve rapid smooth flow is by actively limiting WIP. And a CFD with small WIP limits looks really boring &#8211; the whole WIP section is just a narrow, straight band. However, if your project is struggling with long time to market (or if you don&#8217;t even know what your time to market is), it is a wonderful tool to visualise where the process needs to improve. Put the CFD up on a monitor in your project room for everyone to see &#8211; maybe with a little explanation about how to interpret it. WIP is the vertical and time to market is the horizontal. The latter can only be shortened by reducing the former.</p>
<p>I also hope you will consider dropping your traditional velocity and burndown charts altogether. A CFD contains all of the same information &#8211; plus more. The interesting things to observe about a project isn&#8217;t the last column on your board, but all of the columns before it. This is where you can optimise the flow, and that&#8217;s what you should observe.</p>
<p>Good luck!</p>
<h2>Credits</h2>
<p>Thanks to <a href="http://twitter.com/OlavMaassen">Olav Maassen</a> for help with lead time calculation in Google Spreadsheets and pointing out some wrong conclusions in the first draft.</p>
<p>Thanks to <a href="http://twitter.com/kristofd">Kristoffer Dyrkorn</a> for pointing out some unclear formulations and encouraging me to focus on <em>why</em> people should consider using CFDs.</p>
<p>And finally to everybody on the <a href="http://finance.groups.yahoo.com/group/kanbandev/">Kanban Development</a> Group for great discussions in general.</p>
<h2>Further reading</h2>
<p>Here are a few links you may want to check out to learn more about CFD</p>
<ul>
<li>http://www.agilemanagement.net/Articles/Papers/BorConManagingwithCumulat.html</li>
<li>http://ourfounder.typepad.com/leblog/2009/08/the-cumulative-flow-diagram-high-performance-monitoring.html</li>
<li>http://leadinganswers.typepad.com/leading_answers/files/creating_and_interpreting_cumulative_flow_diagrams.pdf</li>
<li>http://agileanalysis.blogspot.com/2008/12/finger-charts.html</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://open.bekk.no/2009/11/03/cumulative-flow-diagrams-with-google-spreadsheets/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
