Call Us Today! 1-800-895-3254
[email protected]
Microsoft Training
Integent offers a comprehensive portfolio of training services, with an ideal fit for every organization. Ranging from general courses to custom solutions, we have you covered.
Learn About TrainingSee Full list of Courses
Microsoft Consulting
Integent provides consulting services for a variety of Microsoft applications including Microsoft Project, Project Online, Project for the Web, Dynamics 365, and Microsoft SharePoint.
Learn About Consulting
Microsoft Support
Microsoft technologies set the standard for project portfolio management, business applications, collaboration, and more. Integent has flexible solutions to support every customer.
Learn About Support
Microsoft Project
Integent has the knowledge and experience to help design and deploy a solution to help your organization manage projects and resources more effectively
Learn More About Microsoft Project
Microsoft Dynamics 365
Integent can help you nsure business continuity with a custom cloud solution that connects sales, service, finance, and operations teams to deliver results.
Learn More About Dynamics 365
Microsoft SharePoint
SharePoint is Microsoft’s collaboration platform that is a place where team members can communicate, exchange data, share files and much more.
Learn More About Microsoft SharePoint
Microsoft Power Platform
Consisting of Power BI, Power Apps, Power Automate and Power Virtual Agents, the Microsoft Power Platform helps streamline and improve business functions.
Learn More About The Power Platform
About Integent
Integent was founded in 2009 on the principles of building long-lasting relationships with customers, exceeding expectations, and providing outstanding customer service. 

We’re dedicated to providing a customized solution backed by our knowledgeable team of Microsoft experts.
Discover What Makes Us Different
GSA Schedule
Integent is GSA Schedule Contract holder. A GSA schedule helps simplify selling our services to government customers.
Read More Here
News
Stay informed on Integent’s latest company updates and other important industry information. Our passion is customer success.
Read The Latest News
Videos
Learning new software doesn’t have to be difficult with our library of dozens of free training videos. Our video training always has something new.
Browse Our Training Video Library
Blog
Our industry experts share best practices and common pitfalls to avoid, in order to get the most out of your technology solutions.
Discover More

February 9, 2010

How to: Calculate Resource Availability in OLAP Cubes

Posted from Microsoft Technet

To be well planned, resource capacity and availability reports must meet the needs of your entire organization. Microsoft Office Project Server 2007 gives you the flexibility to define how to calculate resource availability according to your organization's work model. This article shows how to add custom availability measures using Multidimensional Expressions (MDX) scripts in the Project Server OLAP cubes. (The content of this article was contributed by Lidiane Souza, Microsoft Corporation.)

Calculating Availability

By default, when Project Server builds the cubes, several resource measures support the creation of different resource usage reports. For example, the Resource Timephased cube contains timephased resource capacity and base capacity (also known as baseline capacity). The Assignment Timephased cube contains all task work, actual work, and overtime work, among other measures. Both cubes contain the resource list dimension that enables you to create separate reports on work accomplished, work planned, and resource capacity.

A common report requirement is to combine data in the Resource Timephased and Assignment Timephased cubes, and show resource availability across multiple projects and teams in your organization. If this is one of your requirements, use the Portfolio Analyzer cube (MSP_Portfolio_Analyzer), which includes all of the Assignment Timephased and Resource Timephased cube data.

Unlike Microsoft Office Project Server 2003, the MSP_Portfolio_Analyzer cube in Project Server 2007 does not have an availability measure by default. Because availability is calculated differently in each organization, Project Server 2007 gives you the flexibility to define how to calculate resource availability by using Project Web Access to configure the cube.

Finding the Best Formula   You can use MDX scripts in SQL Server Analysis Services to exactly define the resource availability calculation that works best for your organization. The following three MDX scripts are examples that show different ways to calculate resource availability.

Following is the most basic formula for calculating resource availability:

 

Copy Code

 

Availability = [Capacity] - [Work]

The rest of this article refers to the previous formula as temporary availability. The result of the temporary availability calculation includes both active and inactive resources in your organization, regardless of whether or not they have assigned work.

Note:

You must enter the MDX formulas all on one line in Project Web Access, or they do not work correctly. Here, they are broken into multiple lines only for readability.

If the entire pool of resources is too extensive, you can restrict the results to return only the availability of resources who have assigned work, as follows.

 

Copy Code

 

Availability = iif(IsEmpty(Sum([Time].[Year].members,[Measures].[Work])), 
    null, [Measures].[Temporary Capacity])

In some cases, the previous formula filters out too many resources. For example, if your organization has new resources who are not yet assigned any work, the availability view or report does not show the new resources.

To include new resources in the calculation, use the following formula:

 

Copy Code

 

Availability = iif(IsEmpty(([Resource List].[All Resource List], 
    [Time].[All Time], [Measures].[Work])) AND 
    IsEmpty(([Resource List].[All Resource List], [Time].[All Time], 
        [Measures].[Temporary Capacity])), 
        null, [Measures].[Temporary Capacity])

The IIF function evaluates to false only if the value of the expression is zero. For any other expression value, IIF evaluates to true. The IsEmpty function returns true if the evaluated expression is an empty cell value. Otherwise, IsEmpty returns false. The IIF and IsEmpty MDX functions help to evaluate resource and time data, and to filter the data.

Validating MDX Syntax   If you modify the examples or write your own MDX formula to calculate resource availability, ensure that the MDX syntax is correct.

Important:

If you enter an invalid formula for any of the Project Server cubes, the cube build process fails. Be sure the formulas do not contain line breaks.

In SQL Server Analysis Services 2000, you can use the MDX Sample application to validate the syntax. In Analysis Services 2005, you can use the Enterprise Manager to select an MDX query, recreate the query, and then validate the syntax.

In addition to validating the MDX syntax, it is also good practice to verify that the measure behaves the way you want in a test cube before you add the query and measure to the production cube. You can make modifications before you make the cube available to the rest of the organization.

After you write and validate the MDX formula, use the following procedure to add it to the appropriate cube.

To add an MDX formula to the cube:
  1. Start the Project Web Access instance you need to add the resource availability formula to.

  2. Open the Server Settings page, in the Cube section, click Configuration.

  3. In the Calculated Measures section of the Cube Configuration page, select MSP_Portfolio_Analyzer in the Cube drop-down list, and then click Insert.

    Note:

    MSP_Portfolio_Analyzer is the only cube that contains work and capacity measures.

  4. In the Member Name column, type Availability (or another name you want). Do not type brackets aro

© Copyright 2023 | Integent.com | All Rights Reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram