12
BUSINESS INTELLIGENCE PORTFOLIO SSAS PROJECT Aaron Moffat [email protected] 704.614.0471

Business Intelligence Portfolio SSAS

  • Upload
    amoffat

  • View
    353

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Business Intelligence Portfolio SSAS

BUSINESS INTELLIGENCE

PORTFOLIO SSAS PROJECT

Aaron Moffat

[email protected]

704.614.0471

Page 2: Business Intelligence Portfolio SSAS

PROJECT DESCRIPTION

• Build analysis package solutions using Analysis Services, setting the SQL database as the data source. 

• From the SQL Server database, build several custom views into the database, and set up a series of cubes, dimensions and key point indicators (KPIs) to analyze and measure AllWorks profitability and costs.

• Write MDX queries and display the results in Excel.

Page 3: Business Intelligence Portfolio SSAS

Data Source View

Page 4: Business Intelligence Portfolio SSAS

Created Calculate Members

Page 5: Business Intelligence Portfolio SSAS

KPI Requirements

KPI 1Project (“Job”) Master Cube Open Receivables as a % of

Invoice Amount Open Receivables = Invoice Amount minus Amount Received

0 – 10% OK Greater than 10%, less than or equal to 20% , warning Greater than 20% – bad Use Traffic Light

Run for all Clients to Excel, save the spreadsheet, indicate in a note on the spreadsheet any clients who are either at the warning status or bad status

KPI 2

Project (“Job”) Master Cube Increase in number of Jobs from the previous quarter to the current quarter (hint: use PrevMember)

0 or more is good (meaning we’ve done at least one more Job for this quarter than for the last quarter….a zero means we’ve done at least the same # of Jobs)  -1 is bad (we’ve done less Jobs for the client in the current qtr, versus the previous quarter Use Traffic Light

Run for all Clients to Excel for the 2nd Qtr of 2006, save the spreadsheet, indicate in a note on the spreadsheet any clients who are at the bad status.

KPI 3

Project (“Job”) Master Cube Overhead as a % of Total Cost (where total cost = Total Overhead + Total material Cost + Total Labor Cost)

0 – 10% OK Greater than 10%, less than or equal to 15%, Warning Greater than 15% - bad Use Traffic Light

Run For all Jobs to ExcelSave spreadsheet  

KPI 4

Project (“Job”) Master Cube Determine % increase in Overhead category from one quarter to another

Less than 10% increase is goodBetween 10% and 15%, warningGreater than 15%, bad

Run for each Overhead Category, save the spreadsheet to Excel

Page 6: Business Intelligence Portfolio SSAS

KPI Percent Increase

Page 7: Business Intelligence Portfolio SSAS

KPI Results

Page 8: Business Intelligence Portfolio SSAS

-- Show Overhead by Overhead Category for Q3 and Q4 2005

WITH

MEMBER [2004 Q4] AS

( [All Works Calendar].[Fy Qtr].[2004 Q4]

,[Measures].[Weekly Over Head] )

,Format_String = "Currency"

MEMBER [2005 Q4] AS

( [All Works Calendar].[Fy Qtr].[2005 Q4]

,[Measures].[Weekly Over Head])

,Format_String = "Currency"

SELECT

{

[2004 Q4]

,[2005 Q4]

} ON 0

,[Overhead].[Description].MEMBERS ON 1

FROM [All Works];

MDX Queries

Page 9: Business Intelligence Portfolio SSAS

-- Show 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.)

WITH

MEMBER [Material Purchases] AS

[Measures].[Purchase Amount]

,Format_String = "Currency"

SELECT

[Material Purchases] ON 0

,NON EMPTY

Order

([Job Master].[Description].Children

,[Material Purchases]

,bdesc)

*

[Material Types].[Description].MEMBERS ON 1

FROM [All Works];

MDX Queries

Page 10: Business Intelligence Portfolio SSAS

-- For 2005, show 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

SELECT [Measures].[Hoursworked] ON COLUMNS ,NON EMPTY Generate ([Job Master].[Description].Children ,TopCount ([Job Master].[Description].CurrentMember * [Employees].[Full Name].Children ,3 ,[Measures].[Hoursworked] )) ON ROWSFROM [All Works]WHERE [All Works Calendar].[2005];

MDX Queries

Page 11: Business Intelligence Portfolio SSAS

-- Show All employees for 2005 Q4, and four periods ago, for total hours worked in the Quarter

WITH MEMBER [All Works Calendar].[Fy Qtr].[2005 Q4] AS [All Works Calendar].[Fy Year - Fy Qtr].[Fy Qtr].&[2005 Q4] MEMBER [All Works Calendar].[Fy Qtr].[2004 Q4] AS ParallelPeriod ( [All Works Calendar].[Fy Year - Fy Qtr].[Fy Qtr] ,4 ,[All Works Calendar].[Fy Year - Fy Qtr].[Fy Qtr].&[2005 Q4] ) SELECT { [2004 Q4] ,[2005 Q4] } ON 0 ,[Employees].[Full Name].Children ON 1FROM [All Works]WHERE [Measures].[Hoursworked];

MDX Queries

Page 12: Business Intelligence Portfolio SSAS