Constructing Construction Statistics<br />Available through SSAS<br /><ul><li>* * *</li></ul>Author: John Stires<br />Octo...
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
MS BI SSAS Project Portfolio
Upcoming SlideShare
Loading in …5
×

MS BI SSAS Project Portfolio

548 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
548
On SlideShare
0
From Embeds
0
Number of Embeds
28
Actions
Shares
0
Downloads
45
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

MS BI SSAS Project Portfolio

  1. 1. Constructing Construction Statistics<br />Available through SSAS<br /><ul><li>* * *</li></ul>Author: John Stires<br />October 10, 2008<br />Table of Contents TOC o " 1-3" h z u f I.Overview PAGEREF _Toc211525246 h 3II.Component Parts PAGEREF _Toc211525247 h 3A.Creating the Cube PAGEREF _Toc211525249 h 31.Setting up the Data Source Connection to the Database. PAGEREF _Toc211525251 h 32.Build the cube PAGEREF _Toc211525253 h 33.Created Dimensions PAGEREF _Toc211525255 h 3B.MDX Querie PAGEREF _Toc211525257 h 51.Job Summaries PAGEREF _Toc211525259 h 52.Overhead Summaries PAGEREF _Toc211525261 h 61.Materials Summaries PAGEREF _Toc211525263 h 72.Labor Summaries PAGEREF _Toc211525265 h 7C.Key Performance Indicators ( KPIs). PAGEREF _Toc211525267 h 81.% Open Receivables PAGEREF _Toc211525269 h 82.Increase in the Number of Jobs PAGEREF _Toc211525271 h 83.Percent Overhead PAGEREF _Toc211525273 h 84.Percent Profit. PAGEREF _Toc211525275 h 95.Increase in Percent of Overhead by Category. PAGEREF _Toc211525277 h 9Appendix A - All Works DS Data Source View PAGEREF _Toc211525279 h 11Appendix B - All Works Cube Design View PAGEREF _Toc211525280 h 12Appendix C MDX Job Master Queries PAGEREF _Toc211525281 h 13Appendix D MDX Overhead Queries PAGEREF _Toc211525282 h 25Appendix E MDX Materials Queries PAGEREF _Toc211525283 h 28Appendix F MDX Labor Queries PAGEREF _Toc211525284 h 32Appendix G KPIs (Key Performance Indicators PAGEREF _Toc211525285 h 37<br />Overview TC " Overview" f C l " 1" This project creates the Cubes and Dimensions necessary to generate MDX Queries and Key Performance Indicators (KPIs) for a simulated Construction company. The focus of the data for this project is on data for labor, materials, overhead, and summarized job information. The data was loaded from a zipped database and a cube and its associated dimension and hierarchies. The Data Source and Data Source Views were defined. Once this was done, the cube was created and then dimensions were created in order to organize the data in such a way as to enable the MDX queries and KPIs to perform their functions efficiently.The net result was a collection of MDX queries and KPIs showing critical business information in a way that it can be quickly analyzed.<br />Component Parts TC " Component Parts" f C l " 1" There were three main component parts to this project: Creating the cube Creating the MDX Queries Creating the KPIs<br />Creating the Cube TC " Creating the Cube" f C l " 2" In creating the cube a data base was supplied containing all of the necessary data to carry this project forward. The database name was SSASStudentProject.<br />Setting up the Data Source Connection to the Database TC " Setting up the Data Source Connection to the Database" f C l " 3" .<br />The connection was set to the SSASStudentProject database located in the folder: C:SetFocusBIProjectsStudentVersionSSASStudentProjectSSASStudentProjectin<br />A Data Source View was set up to design the chart showing the data relationships and establishing the Fact Tables (Measures) and the Dimensions. This chart can be viewed in Appendix A.<br />Build the cube TC " Build the cube" f C l " 3" once the database connect had been established and the Data Source View created, the Cube, AllWorks Cube was created. As this was accomplished, a basic chart was created showing the relationships of the data within the cube. The wizard was used to create the cube and then the individual elements were adjusted as necessary for producing the desired queries and KPIs. This Cube Design chart can be seen in Appendix B.<br />Created Dimensions TC " Created Dimensions" f C l " 3" <br />Measures Fact Tables.<br />Job Labor Facts<br />Hoursworked<br />Job Labor Facts<br />Total Labor<br />Job Material Facts<br />Job Material Facts Count<br />Purchase Amount<br />Job Overhead Summary Facts<br />Job Overhead Summary Facts Count<br />Weekly Over Head<br />Job Summary Facts<br />Additional Labor Profit<br />Amount Received<br />Hours Worked<br />Invoice Amount<br />Job Summary Facts Count<br />Total Labor Cost<br />Total Labor Profit<br />Total Material Cost<br />Total Material Profit<br />Total Overhead<br />Dimensions<br />All Works Calendar<br />Qtr<br />Weekend Date<br />Year<br />Calendar (Hierachy)<br />Year<br />Qtr<br />Weekend Date<br />Client Groupings<br />Client Groupings<br />Grouping Name<br />Clients<br />Clients.Account No<br />Clients.Client Image<br />Clients.Client Name<br />Clients.Clients<br />Clients.Project Manager<br />Clients.Hierarchy<br />Clients<br />Clients – County PK<br />Clients – County PK.Coutny<br />Clients – County PK.County Name<br />County<br />County.County<br />County.County Name<br />Division<br />Division<br />Division Name<br />Employees<br />Cell Phone<br />Employee Flag<br />Employees<br />First Name<br />Full Name<br />Last name<br />Job Master<br />Additional Overhead Pct<br />Client Job<br />Description<br />Job Closed<br />Job Closed Date<br />Job master<br />Material Markup Pct<br />Job Master – Client PK<br />Job Master – Client PK.Account No<br />Job Master – Client PK.Client Image<br />Job Master – Client PK.Client Name<br />Job Master – Client PK.Clients<br />Job Master – Client PK.Project manger<br />Job Master – Client PK.Hierarchy (Hierarchy)<br />Job Master – Client PK.Clients<br />Job Master – Client PK – County PK<br />Job Master – Client PK – County PK.County<br />Job Master – Client PK – County PK.County Name<br />Material Types<br />Description<br />Material Types<br />Overhead<br />Description<br />Overhead<br />HierarchiesTwo dimensions had hierarchies.<br />All Works CalendarThree hierarchies were created for the calendar based on:<br />Year<br />Qtr<br />Weekend Date<br />ClientsA single hierarchy based on the Client ID.<br />Job Master – Client PKA single hierarchy based on Job Master – Client PK.Clients<br />MDX Queries TC " MDX Queries" f C l " 2" The MDX queries are grouped in to several categories. They will be presented in those groupings. An example of the display of each can be found in the appendixes as indicated in the description for each query.<br />Job Summaries TC " Job Summaries" f C l " 3" Screen prints for this group can be found in Appendix C.<br />JobSummary01.mdxRetrieve total labor costs by Client<br />JobSummary02.mdxRetrieves total labor costs by Client, and filters out any NULL values<br />JobSummary03.mdxRetrieve total labor costs by County<br />JobSummary04.mdxRetrieve total labor costs by Division<br />JobSummary05.mdxRetrieve total labor costs by Client Account grouping<br />JobSummary06.mdxBy client, retrieve total labor cost, total material cost, and total overhead.<br />JobSummary07.mdxDo the same (retrieve 3 measures) and add a 4th measure, a calculated measure, that adds all three costs.<br />JobSummary08.mdxRetrieve and calculate the total costs, the total profit, and total profit %, for each individual job. The three re calculated as follows: Total costs=total labor cost + total material cost+ total overhead cost Total profit=labor profit+ material profit+ additional labor overhead profit Total profit %= (total profit / (total cost + total profit))*100<br />JobSummary09.mdxBy client, retrieves and calculate the total costs, the total profit, and total profit %, for each individual job. The three re calculated as follows: Total costs=total labor cost + total material cost+ total overhead cost Total profit=labor profit+ material profit+ additional labor overhead profit Total profit %= (total profit / (total cost + total profit) )*100<br />JobSummary10.mdxBy client, displays a count of Jobs.<br />JobSummary11.mdxRetrieve all Clients with a Total Labor cost to date greater than 5,000, and the word 'INC' appears in the client name<br />JobSummary12.mdxList the jobs that make up the top 30% of total invoice amount.<br />Overhead Summaries TC " Overhead Summaries" f C l " 3" <br />JobOverHead01.mdxShows Overhead by Overhead Category for Q3 and Q4 2005 (hint, use the FY Qtr as a dimension).<br />JobOverHead02.mdxShows Overhead by Overhead Category for Q3 and Q4 2005, and also show the % of change between the two.<br />JobOverHead03.mdxShows Overhead by Overhead Category for all of 2005, order by Overhead Dollar amount descending.<br />Materials Summaries TC " Materials Summaries " f C l " 3" <br />The result set should have 1 column for the purchase amounts for Fuel, Materials, and petty Cash.<br />JobOverMaterials02.mdxShows Material purchase amounts for 2005, broken out by Material Purchase type and client.<br />JobOverMaterials03.mdxShows a list of total client material purchases for 2005, in descending purchase amount order. The result set should show at the top which client required the most materials.<br />JobOverMaterials04.mdxShows jobs in order of purchase amount and then show the breakdown in each job of material type (for instance, Job A, total purchase amount, amount for fuel, amount for materials, amount for petty cash, etc.). The general order should be by total purchase amount, so that the top of the result set shows the jobs that required the highest purchase amounts.<br />Labor Summaries TC " Labor Summaries" f C l " 3" <br />JobOverLabor01.mdxLists Hours Worked and Total Labor for each employee for 2005, along with the labor rate (Total labor / Hours worked).<br />JobOverLabor02.mdxLists Hours Worked and Total Labor for each employee for 2005, along with the labor rate (Total labor / Hours worked). The listing will sort the employees by labor rate descending, to see the employees with the highest labor rate at the top.<br />JobOverLabor03.mdxFor 2005, show Total Hours worked, total labor dollars, and total labor rate for contractors (employee flag is false) and employees (employee flag is true).<br />JobOverLabor04.mdxFor 2005, this shows the job and the top three employees who worked the most hours. Show the jobs in job order, and within the job show the employees in hours worked order.<br />JobOverLabor04.mdxShows All employees for 2005 Q4, and four periods ago, for total hours worked in the Quarter.<br />Key Performance Indicators ( KPIs) TC " Key Performance Indicators ( KPIs)" f C l " 2" Five KPIs were created using the Allworks Cube and its associated dimensions. They are briefly described below. Where possible, when a division provides that possibility for the potential of a “divde by zero” condition, checks are made and steps taken to avoid output errors. If the denominator turn out to be a zero, the out is converted to 100%.<br />% Open Receivables TC " % Open Receivables" f C l " 3" This KPI shows, by client, the persent of receivable that are outstanding. The staus display displays the values and status by client. See Appendix G to see a screen print of this KPI.<br />Measures and Dimensions<br />Measures<br />Invoice Amount<br />Amount Received<br />DimensionN/A<br />Basic formulaOpen Receivables=Invoice Amount / Amount Received<br />Status Indicator is the Traffic Light. The status values are:<br />Good=0 to 10%<br />Warning=>10% to 20%<br />Bad= >20%<br />Increase in the Number of Jobs TC " Increase in the Number of Jobs" f C l " 3" This KPI displays the change in the number of jobs by client for the time period of the 2nd quarter of 2006 from the previous quarter.<br />Measures and Dimensions<br />Measures<br />Job Summary Facts Count<br />Dimension(s)<br />All Works Calendar<br />Basic formulaChange in number of Jobs=Job Summary Facts Count of the current quarter -Job Summary Facts Count of the previous quarter<br />FilterThere is a filter in the Excel spreadsheet to select for the 2nd quarter of 2006.<br />Status Indicator is the Traffic Light. The status values are:<br />Good=Greater than 0<br />Okay=0 - No Change on the job count<br />Bad= >less than 0 (jobs lost)<br />Percent Overhead TC " Percent Overhead" f C l " 3" This KPI displays the percent of overhead by job for all jobs.<br />Measures and Dimensions<br />MeasuresA calculated member is used for the sum of the Measures for Total Cost.<br />Total Overhead<br />Total Material<br />Total Labor Cost<br />Dimension(s)N/A<br />Basic formulaPercent Overhead=Total Overhead / Total Cost<br />Status Indicator is the Traffic Light.. The status values are:<br />Good=0 to 10%<br />Warning=Greater than 10% to 15%<br />Bad=Greater than 15%<br />Percent Profit TC " Percent Profit" f C l " 3" This KPI displays the percent of profit for all clients..<br />Measures and Dimensions<br />MeasuresA calculated member is used for the sum of the Measures for Total Cost.<br />Total Overhead<br />Total Material<br />Total Labor Cost<br />Dimension(s)N/A<br />Basic formulaPercent Overhead=Total Overhead / Total Cost<br />Status Indicator is the Traffic Light.. The status values are:<br />Good=0 to 10%<br />Warning=Greater than 10% to 15%<br />Bad=Greater than 15%<br />Increase in Percent of Overhead by Category TC " Increase in Percent of Overhead by Category" f C l " 3" This KPI displays the change in the persent of Overheadt for the time period of the 2nd quarter of 2006 from the previous quarter.<br />Measures and Dimensions<br />Measures<br />[Job Overhead Summary Facts].[Weekly Over Head]<br />Dimension(s)<br />All Works Calendar<br />Basic formulaFor clarity and ease of reading a calculated member was created to represent the Weekly Overhead for the previous quarter.Change in Percent Overhead=(Weekly Overhead for the current quarter - Weekly Overhead for the previous quarter) -/Weekly Overhead for the previous quarter<br />FilterThere is a filter in the Excel spreadsheet to select for the 2nd quarter of 2006.<br />Status Indicator is the Traffic Light. The status values are:<br />Good=Less than 10%<br />Okay=10% - 15%<br />Bad= >Greater than 15%<br />Appendix A - All Works DS Data Source View TC " Appendix A - All Works DS Data Source View" f C l " 1" <br />Appendix B - All Works Cube Design View TC " Appendix B - All Works Cube Design View" f C l " 1" <br />Appendix C MDX Job Master Queries TC " Appendix C MDX Job Master Queries" f C l " 1" <br />1-1Total Labor Costs by Client<br />1-2Labor Costs by Client with filtering out the Nulls<br />1-3Total Labor Costs by County<br />1-4Total Labor Costs by Division<br />1-5Total LaborCosts by Client Account Grouping<br />1-6Labor, Material, and Overhead Costs by Client<br />1-7Labor, Material, and Overhead Costs and then Total Costs by Client<br />1-8Total Costs, Profit and Percent Profit by Job<br />1-9Total Costs, Profit and Percent Profit by Client<br />1-10Job Counts by Client<br />1-11Clients with Greater than $5,000 and “INC” in Their Name<br />1-12Top 30% Jobs by Invoice Amount<br />Appendix D MDX Overhead Queries TC " Appendix D MDX Overhead Queries" f C l " 1" <br />2-1Overhead by Category for the Last Two Quarters of 2005<br />2-2Overhead by Category and the Percent Change for the Last Two Quarters of 2005<br />2-3Overhead by Category for 2005 - Highest to Lowest<br />Appendix E MDX Materials Queries TC " Appendix E MDX Materials Queries" f C l " 1" <br />3-1Material Purchases for Fuel, Materials, Petty Cash and Total<br />3-2Purchase Amounts by Material Type and by Client<br />3-3Total Material Purchases By Material Type by Client Starting with the <br />Client with the Highest Total Purchase Amount First<br />3-4Material Costs Ordered for Each Job<br />Appendix F MDX Labor Queries TC " Appendix F MDX Labor Queries" f C l " 1" <br />4-1Labor Hours Worked, Total Cost and the Labor Rate for 2005<br />4-2Labor Hours Worked, Total Cost and the Labor Rate, Highest to Lowest <br />by Rate for 2005<br />4-3Total Labor Hours Worked and Labor Costs by Employees and Contractors for 2005<br />4-4Jobs with the Most Labor Hours and the Top Three Employees within Each Job<br />4-5Total hours Worked for Q4 2005 and the Quarter One year Prior<br />Appendix G KPIs (Key Performance Indicators TC " Appendix G KPIs (Key Performance Indicators" f C l " 1" <br />KPI-1Percent Open Receivables By Client<br />KPI-2Change in the Number of Jobs by Client<br />KPI-3Percent overhead by Job<br />KPI-4Percent Change in Profit by Client<br />KPI-5<br />

×