EPM Team

The Catapult EPM team is responsible for delivering Microsoft project and portfolio management solutions. Their blog reflects team insights and real-world experiences developing world-class EPM solutions.
RSS Feed

Creating a Dynamic Project Timeline Using Visio Services

Continuing with the BI thread, I was demoing dynamic reporting using SharePoint 2010 Visio Services during a recent Project Server BI spiel in Houston.  What struck me with the crowd, which was primarily from the oil and gas industry, was the interest in the Visio timeline.  I must admit, having used Microsoft Project for so long, I kinda forgot how many folks still use the Visio timeline view for reporting and scheduling purposes.  So it seemed to me that this would be a great example for a post on Visio Services in SharePoint 2010. 

That being said, I must admit that much of this would work in 2007.  The difference in 2007 is that the ODC file is not out of the box, and to display the Visio document in SharePoint, you will need either a third party tool – or deploy a custom webpart (here).  Note that in theory you could also apply the same principles to a SharePoint list synchronized with Microsoft Project Professional 2010, or Microsoft Project Professional 2007 using a third party add-in such as Project Publisher.

Note that the screenshots will all be using the 2010 Beta versions of the Microsoft Office product line.

Credit to David Parker’s Visio blog (here) for getting me most of the way there.

Usage Scenario

This is a generic example of Visio Reports, of which there are a number of potential use cases.  This particular example is built around the Visio Timeline view which is used in many companies to present high level schedules.  The 2010 MPP timeline function serves much the same purpose, although currently I am not aware of any way to programmatically take the timeline view from a Microsoft Project file and present it via a Web interface.

Instructions

1) Prepare your ODC file.  (instructions here) The main thing that will help in this scenario is to filter on a specific project, and on all of the top level tasks/milestones in the project.  Note that you can include all fields from the ODC file in the results, as we will go back in Visio and filter out the fields we don’t need.

2) Create a blank timeline view in Microsoft Visio.

image

image 

3) Here we have several options.  You could opt to create the Visio timeline from scratch, and then link the data.  On the other hand, if you’re lazy like me, you might just take a copy of the MPP file and import it directly into the Visio diagram, thereby populating all of the key elements and naming them correctly – in which case all you need to do is Auto-Link the elements from the ODC file and you’re off to the races.  We’ll opt for the latter option.

4) If you’re using Microsoft Project desktop, save a copy of the file to your desktop and work with that.  If you’re working with Microsoft Office Project Server, save a copy of the file offline to your desktop, then use that as the base file.

5) Select the timeline menu in the Ribbon.  Import data from the MPP file saved to your desktop. 

image

6) Configure the options to generate a look and feel appropriate to your needs.

image

7) The result should look something like this.  Don’t worry about the formatting now.  We can adjust that later.  Note that all of the elements have the correct names – which we can now use to Auto-Link the ODC data.

image

8) Now add the Data Link to the ODC file prepared already.

image

9) You’ll see the top level data appear in the External Data Window at the bottom of the screen.

image

10) Now we need to configure the columns that we would like to use.  Right click on the data link view at the bottom of the screen.  Choose Column Settings.

image

11) Check or uncheck the fields that you would like to include as part of the shape data.

image

12) Change the names of the key fields to map to the shape field names (further instructions here).  By doing so, the Auto-Link function will import the ODC data to the correct parameters in the Visio diagram.  The key fields to be changed will be as follows:

TaskStartDate > Start

TaskFinishDate > Finish

TaskPercentCompleted > Percent Complete

image

13) Set the data to Auto-Link using the Task Name as the unique identifier. 

image

14) Since the items were named during the import from the MPP file, the names should be the same as the elements in the ODC file.

image

15) You’ll now see that the data from the ODC file has all been linked to the shapes.

image

…and that’s about it…feel free to format the timeline any way you would like – or to add Data Graphics tied to specific Reporting Database level fields.

Displaying the Data

With SharePoint 2010, we can now publish the data to Visio Services through functionality in the Backstage View.  (Note that I have blurred the Web folders that show up by default on my laptop as they may give away sensitive client information.)

image

And now the timeline is displayed dynamically using Visio Services – and can be surfaced using a Visio Services Webpart.

image

I can also select an element, and expose whatever fields I would like in the Shape Information Pane – in the browser.

image

And there you are….dynamic Visio timelines using Visio Services and ODC connectors.

Posted by Andrew Lavinsky on Thursday, 21 Jan 2010 01:12
6 Comments | Filed under: Business Intelligence, Project Server 2010
Bookmark this post with:        

Links to this post

Comments

On 04 Feb 2010 02:53, Valarie Wood said:

Hey, Thanks for this blog. I have learned a lot. Official Visio 2007 Website - http://visiotoolbox.com/

On 11 Feb 2010 01:25, Bettycarson said:

Microsoft Visio toolbox is a great software for IT Professionals manage to help execute a broad range of tasks that are critical to the success of their enterprises.

On 22 Feb 2010 11:32, Betty Carson said:

Microsoft Visio Add-in such as the Disk Space Monitoring tool employs the radical Data Graphics feature of Visio 2007 to display the results of server monitoring. Another add in is the Visio for SQL Server Add-In, a tool for IT administrators who require to continually interact with users during SQL server installations in any IT infrastructure.

On 24 Feb 2010 11:46, Joe said:

Cool trick. I have a question though: Doesn't this mean that the visio is only linked to the file you saved locally? I'm guessing that you'd have to continually download the updated project file and overwrite the old one in order to keep the visio up to date.

On 27 Feb 2010 03:28, payday loans toronto said:

I want to thank the blogger very much not only for this post but also for his all previous efforts. I found blogs.catapultsystems.com to be extremely interesting. I will be coming back to blogs.catapultsystems.com for more information.

On 03 Mar 2010 09:48, Andrew said:

Hey Joe - no I actually link it to live Server data. The first step is to create the Visio chart with all of the elements. I could do that by hand, but it's easier to import the local MPP file. That creates the initial chart with all of the correct elements. Once that is done, I link each element to it's server-side counterpart. Then, it's linked back to the Server.

Leave a comment

Name (required)

Url

Email

Comments

Complete this section to post your comment