Business Intelligence Portfolio
description
Transcript of Business Intelligence Portfolio
Contents
Data Modeling 3T-SQL Programming 4SQL Server Integration Services (SSIS)5SQL Server Analysis Services (SSAS) 8SQL Server Analysis Services (SSAS)12Performance Point Server (PPS) 15
Data Modeling
Model for aBook Sales
Data Warehouse
T-SQL Programming⌂ SELECT *,⌂ CASE WHEN EXISTS (⌂ SELECT g.giftid⌂ FROM V_gift_fiscal_year AS fy⌂ INNER JOIN gifts AS g⌂ ON fy.giftkey = g.giftkey⌂ WHERE fy.giftid = idnum⌂ AND giftprocdt BETWEEN '7/1/02' AND '4/21/03'⌂ AND g.gifttype IN ('g', 'y') )⌂ THEN 1⌂ WHEN EXISTS (⌂ SELECT g.giftid⌂ FROM V_gift_fiscal_year AS fy⌂ INNER JOIN gifts AS g⌂ ON fy.giftkey = g.giftkey⌂ INNER JOIN relation⌂ ON fy.giftid = relid⌂ WHERE relrelatid = idnum⌂ and relisa IN ('sp', 'dsp', 'spnm', 'lp', 'lpnm')⌂ AND giftprocdt BETWEEN '7/1/02' AND '4/21/03'⌂ AND g.gifttype IN ('g', 'y') )⌂ THEN 1⌂ ELSE 0 END AS Donor⌂ INTO #grad⌂ FROM #alums⌂ INNER JOIN #fy⌂ ON GradYear < fy
⌂ SELECT fy, Cast(table_val AS char(25) ) AS School, Count(DISTINCT idnum) AS Alums, Sum(Donor) AS Donors
⌂ FROM #grad⌂ INNER JOIN school_names⌂ ON coreprfsch = table_code⌂ GROUP BY fy, table_val⌂ ORDER BY fy DESC, table_val⌂ COMPUTE Sum(Count(DISTINCT idnum)), Sum(Sum(Donor)) BY fy
Checks for AlumniParticipation rates foreach school and collegeincluding gifts from bothconstituents and theirspouses/significant others.
SQL ServerIntegration Services (SSIS)
Master Package thatcontrols the execution ofsubsidiary packages forimporting data into astaging database for aconstruction company.
SQL ServerIntegration Services (SSIS)
Details for the Data Flowfor importing Employeetimesheets.
SQL ServerIntegration Services (SSIS)
VB.Net Script to update theinsert, update, and errorcounts for the current filebeing processed and for thegrand totals.
⌂ Imports System⌂ Imports System.Data⌂ Imports System.Math⌂ Imports Microsoft.SqlServer.Dts.Runtime
⌂ Public Class ScriptMain
⌂ ' Updates the body of the results email.
⌂ Public Sub Main()⌂ ' Displays counts for each file.⌂ Dts.Variables("EmailBody").Value = Dts.Variables("EmailBody").Value.ToString _⌂ + Dts.Variables("TimesheetFile").Value.ToString + ": " _⌂ + Dts.Variables("FELInsertCount").Value.ToString + " inserts, " _⌂ + Dts.Variables("FELUpdateCount").Value.ToString + " updates, and " _⌂ + Dts.Variables("FELErrorCount").Value.ToString + " errors." + vbCrLf
⌂ ' Updates the total counts.⌂ Dts.Variables("ErrorCount").Value = CInt(Dts.Variables("ErrorCount").Value) + CInt(Dts.Variables("FELErrorCount").Value)⌂ Dts.Variables("InsertCount").Value = CInt(Dts.Variables("InsertCount").Value) + CInt(Dts.Variables("FELInsertCount").Value)⌂ Dts.Variables("UpdateCount").Value = CInt(Dts.Variables("UpdateCount").Value) +
CInt(Dts.Variables("FELUpdateCount").Value)
⌂ Dts.TaskResult = Dts.Results.Success
⌂ End Sub
⌂ End Class
SQL ServerAnalysis Services (SSAS)
Cube Structure showing the fact tables and the dimensions.
SQL ServerAnalysis Services (SSAS)
Dimension based on a Snowflake schema.
Two sets of independent hierarchies• Geographical• Sales Structure
SQL ServerAnalysis Services (SSAS)
Setting up a KPI
SQL ServerAnalysis Services (SSAS)
Showing KPIs in Excel
SQL ServerReporting Services (SSRS)
SSRS Report Deployed to Sharepoint• The report prompts for the year• You can drill down on the product
category
SQL ServerReporting Services (SSRS)
Drilldown Details
SQL ServerReporting Services (SSRS)
Report with Document Map
PerformancePoint Server (PPS)
Chart with a multi-select parameter