SQL Server 2005 Analysis Service

Slides:



Advertisements
Similar presentations
Web Role 的每台虚机运行有 IIS ,用于处理 Web 请求 Worker Role 用于运行后台进程 Cloud Service 是什么? 支持多层架构的应用容器 由多个 Windows 虚拟机集群构成 集群有两种类型: Web 和 Worker Cloud Service 做什么 进行应用的自动化部署.
Advertisements

应用技术 陕西华辉科技有限公司.
泛舆情管理平台 ——助力媒体业务创新 新模式 新格局 创新盈利增长点 2/26/2017 1:59 AM 屈伟: 创始人,总裁
中国银行业前置端操作系统移植研究.
3/3/ :01 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
请点击以下链接下载WinHEC的演讲材料
借助公有云实现游戏的弹性运营 Shaun Fang (方兴) Azure开发技术顾问
请点击以下链接下载WinHEC的演讲材料
Eliyas Yakub 首席开发经理 US-Device & Storage
1. 设定愿景,确定业务场景 Microsoft Corporation
广东省广州市花都区教育局教研室 汤少冰 优化评估方式, 促进中学英语的教与学 广东省广州市花都区教育局教研室 汤少冰
張書源 Microsoft MVP MCT 趨勢科技 技術經理 網酷科技 資深顧問 集英信誠 資深顧問
Office 2013 全新功能介紹 台灣微軟 Office 大使 楊承恩 Marcus Microsoft Office
講師姓名:黃信嘉、黃振宇 職稱:微軟技術支援副理 公司名稱:台灣微軟 課程代碼:WCL305
四川省集体林权流转平台 中国西部林权交易网
全国信息技术标准化技术委员会 (SAC/TC28)工作交流
Windows 10 混合现实 Mingfei Yan 高级项目经理
Benjamin Armstrong 高级项目经理 微软
W371 如何使网络设备更好的和Windows Vista工作
MBL 340 Tablet PC SDK:在您的应用程序中使用数字墨水
線上分析處理、 資料採礦與 Analysis Services
今天很高兴能够利用Web Cast和大家讲解嵌入式XP的新增功能。
什麼是電子軟體下載 Electronic Software Download (ESD).
OFC 302 InfoPath2007新特性及解决方案.
最新 Windows Server 徽标 要求和计划
Windows Mobile 轻松接轨GPS
Microsoft Office SharePoint Server 2007 事件追蹤與專案管理
SOLUTIONACCELERATORS Windows Vista Hardware Assessment 1
MSG 321 统一消息架构和PBX集成.
朝雲端專業DBA邁進: 深入剖析 Windows Azure SQL Database 完整資料庫管理、雲端報表建立、建置分散式雲端資料庫
利用最新Hyper-V Replica 功能達成Hyper-V 災難備援機制
Windows Server 2008 NAP整合802.1x網路安全控管
互聯網安全資訊 助您達至更安全的網上體驗.
服務啟用、導入流程、 郵件移轉步驟簡介 Microsoft Office 12/2/2018
MBL 325 开发跨平台的 Windows Mobile应用程序
MBL 327 Windows Mobile开发中的异构系统集成
Cameron Brodeur Program Manager US-Device & Storage PM
构建 Windows TV Tuner 产业 生态环境的重要观点
微软新一代云计算 面向企业的 Office 365 客户培训大纲
1/2/ :39 PM 讀經 以弗所書 4:31-32 © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may.
使徒行傳 21:17-23章「保羅的見證(一)」 引言 預言保羅為主的名受許多的苦難的實現
超完美整合 SQL Server 2008 MOSS 2007 及 Excel 2007 打造好用又省錢的 企業商業智慧解決方案
2/24/2019 5:40 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Exchange 2007 系統部署 -- 儲存預測與測試
教师课堂教学能力提升培训 ---“互联网+教育”考勤小测验 Plickers 洛阳理工学院
Microsoft SQL Server 2008 報表服務_設計
利用 ASP.NET MVC 提升您的 Web 應用程式


橫跨電腦、手機與軟體的全方位端點管控解決方案
请点击以下链接下载WinHEC的演讲材料
CON223 UDDI:服务的发现和搜索.
呂政周 精誠恆逸教育訓練處 資深講師 Windows PowerShell 呂政周 精誠恆逸教育訓練處 資深講師
4/30/2019 7:40 AM 約翰福音 15:9;17:20-23 加拉太書 6:1-2 © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
光輪2000升級 升級SQL Server Analysis Services 2005
DEV 343 VS2005超快速开发方案/EEP2006控件包.
5/4/2019 4:42 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
使徒行傳 24-26章 [ 保羅的見證(二)] 徒9:15 “  主 對 亞 拿 尼 亞 說 、 你 只 管 去 . 他 是 我 所 揀 選 的 器 皿 、 要 在 外 邦 人 和 君 王 並 以 色 列 人 面 前 、 宣 揚 我 的 名 。 ”]
TechEd /6/ :36 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Windows 徽标计划工具:综述与发展趋势
5/5/2019 7:06 PM 两跨框架梁截面配筋图的绘制 © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may.
顧武雄 台灣微軟特約資深講師 Exchange 2007 管理工具活用秘訣 Entry Slide
百万亿次超级计算机诞生记 姓名 Xiangyu Ye 职务 微软中国技术中心资深HPC顾问 公司 微软中国
5/15/2019 姓名: 公司名称: 云赛空间BP模板 Now let’s take a look at who we are, what we’re doing and why we’re doing it in China... This is an image of a technology.
DEV 343 VS2005超快速开发方案/EEP2006控件包.
MGT 213 System Management Server的昨天,今天和明天
Bob Combs Lead Program Manager Microsoft Corporation
Ron Jacobs 高级技术专员 Microsoft
高擴充高穩定高安全 企業級資料管理平台 Report Builder概論 錢曉明 資策會 資深講師 台灣微軟 資深講師.
Windows Workflow Foundation CON 230
Presentation transcript:

SQL Server 2005 Analysis Service 錢曉明 資策會 資深講師

Agenda SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions) 儲存設定與效能 權限設定

Agenda SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions) 儲存設定與效能 權限設定

Analysis Services Architecture Server Component是一個 Windows Service SQL 2005 Analysis Service 可支援多個Instance Clients Component透過 XML for Analysis (XMLA) 與Server溝通

Server Component Server Component 即是 msmdsvr.exe 其中包含 XML/A listener 元件及其他許多內部元件,負責下列工作: Parse clients 端傳來的 Query statements 管理 meta data 處理 transactions Process calculations 儲存 dimension and cell data Create aggregations Schedule queries Caching objects Manage server resources

Client Architecture

Agenda SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions) 儲存設定與效能 權限設定

統一維度模型 (Unified Dimensional Model (UDM) ) 二○一八年十二月三日 統一維度模型 (Unified Dimensional Model (UDM) ) Analysis Services Spreadsheets XML/A or ODBO SQL Server Datamart BI Front Ends UDM Teradata DW Ad-Hoc Reports Cache Rich Reports Oracle DB2 LOB Dashboards 8 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

UDM的好處 不必維護個別資料模型,所有資料採礦演算法均支援資料倉儲及多維度分析作為資料來源 整合異質資料來源(如SQL,Oracle),透過資料來源檢視並可定義異質資料表間的關聯 前端工具可透過OLE DB Provider及XML/A共通介面存取資料 可使用Friendly Name,可使用前端使用者熟悉的產業專用術語進行分析 即時分析,透過不同等級的快取模式,同時兼顧即時性及存取效率

Agenda 使用Cube auto-build精靈 資料分割(Partitions)與儲存設定 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions)與儲存設定 權限設定

建立Analysis Service Solution Data Source 資料來源可不只一個 異質型資料來源中至少要有一個是來自SQL Server Data Source View 不只一個資料來源時要先加一個Primary Data Source Fact Table – 包含Foreign Key 與 Measure(如金額,數量) Dimension Table – 包含Primary Key及與Measure相關資訊

使用Cube auto-build精靈 啟動Cube Wizard 自動判斷Fact table與Dimension table Star Schema—透過Primary Key/Foreign Key 與Fact table有直接關聯的 SnowFlake Schema —透過另一個Table 與Fact table 有間接關聯的 設定時間維度 自動偵測量值與量值群組 自動偵測階層 命名與發佈

量值群組(Measure Group) 一個Cube可以支援多個Fact Table 存在於同一個Fact Table 裡面的量值構成一個集合,稱之為「量值群組」 全新彙總函數Aggregate Function

Attribute Hierarchies 由 Source Database 欄位產生 為方便瀏覽可結合多個Attribute形成Hierarchy 可將欄位直接放在報表上,而不需透過Member properties and virtual dimensions

Agenda 使用Cube auto-build精靈 資料分割(Partitions)與儲存設定 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions)與儲存設定 權限設定

導出成員(Calculated Member) 導出成員係客製化之量值或維度成員

Agenda 使用Cube auto-build精靈 資料分割(Partitions)與儲存設定 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions)與儲存設定 權限設定

關鍵績效指標 (Key Performance Indicator (KPI)) 一系列財務與非財務性的數值 用以定義企業組織的目標 反映執行目標過程的績效 與一般量值最大的差異在於,KPI 提供比較性的資訊,如目標值,達成率,成長率,可提供決策管理人快速掌握企業營運的狀況

關鍵績效指標 (Key Performance Indicator (KPI)) KPI -- 必須至少與一個Measure Group 相關聯 亦可同時與所有Measure Group 相關聯 KPI包含下列元素: Value Expression(實際量值),如Sales, Profit,可透過MDX 運算式產生 Goal Expression(目標值),可透過MDX 運算式產生 Status Expression(狀態值),以實際量值與目標值比較,將業績達成率轉換成+/-1之間的值,可以圖形顯示 Trend Expression(趨勢值),以實際量值與目標值比較,是往好的還是壞的發展,可以圖形顯示

Status Expression範例(一) Case When [Measures].[Sales Amount - Fact Reseller Sales] > [Measures].[Sales Amount Quota] Then 1 When [Measures].[Sales Amount - Fact Reseller Sales] >= .90 * ( [Measures].[Sales Amount Quota] ) Then .5 When [Measures].[Sales Amount - Fact Reseller Sales]>= .80 * ( [Measures].[Sales Amount Quota] ) Then 0 .70 * ( [Measures].[Sales Amount Quota] ) Then -.5 Else -1 End

Trend Expression範例(一) Case When IsEmpty([Dim Time].[CalendarYear].PrevMember) Then 1 When [Measures].[Sales Amount - Fact Reseller Sales] > ( [Dim Time].[CalendarYear].PrevMember, [Measures].[Sales Amount Quota] ) When [Measures].[Sales Amount - Fact Reseller Sales] >= .95 * ( [Dim Time].[CalendarYear].PrevMember, Then .5 When [Measures].[Sales Amount - Fact Reseller Sales]>= .90 * ( [Dim Time].[CalendarYear].PrevMember, Then 0 .85 * ( [Dim Time].[CalendarYear].PrevMember, Then -.5 Else -1 End

Goal Expression範例(一) 較去年同期成長一成 1.1*([Measures].[Sales Amount], ParallelPeriod([Order Date].[CalendarYear],1, [Order Date].[CalendarYear]. [CalendarYear].CurrentMember))

Status Expression範例(二) case when KpiValue("Internet Sales")/ KpiGoal("Internet Sales")>=1 then 1 KpiGoal("Internet Sales")>=0.8 then 0 else -1 end

Status Expression範例(三) Case When [Measures].[Total GPM] <=.18 Then -1 When [Measures].[Total GPM] >=.19 And [Measures].[Total GPM] <=.24 Then -.5 When [Measures].[Total GPM] >=.25 And [Measures].[Total GPM] <=.28 Then 0 When [Measures].[Total GPM] >=.28 And [Measures].[Total GPM] <=.32 Then .5 Else 1 End

Trend Expression範例(三) Case When IsEmpty([Date].[Fiscal Time].PrevMember) Then 1 When [Measures].[Total GPM] > ([Date].[Fiscal Time].PrevMember, [Measures].[Total GPM]) When [Measures].[Total GPM] = Then 0 Else -1 End

Agenda 使用Cube auto-build精靈 資料分割(Partitions)與儲存設定 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions)與儲存設定 權限設定

商業智慧範本 透過範本修改Cube或Dimension進階設定 可由Cube Designer上方工具列加入或 定義時間智慧 年初至今 12個月移動平均 年成長% 年成長 自動產生時間維度導出成員 透過MDX Script 撰寫

Agenda 使用Cube auto-build精靈 資料分割(Partitions)與儲存設定 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions)與儲存設定 權限設定

動作 (Action) 可在所點選的項目上,觸發Analysis Service產生對應的指令,以執行其他應用程式 有下列選項: URL 開啟另一個網頁 Statement 執行 OLE DB command. Dataset 傳回一個資料集 to a client application. Rowset 傳回一個資料列集 to a client application. Drillthrough 傳回細部資訊 Reporting 傳送一個帶參數的 URL 給 report server 傳回一份報表 to a client application. Proprietary 使用上述方式以外的作業操作

動作 (Action) URL 範例 – Google 搜尋 http://www.google.com.tw/search?hl=zh-TW&q=Road+Bikes&meta= "http://www.google.com.tw/search?hl=zh-TW&q="+[Dim Product].[English Product Name].currentMember.Properties("Caption")+"&meta="

Agenda 使用Cube auto-build精靈 資料分割(Partitions)與儲存設定 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions)與儲存設定 權限設定

構面 針對特定目的,簡化User看到的內容

Agenda 使用Cube auto-build精靈 資料分割(Partitions) 儲存設定與效能 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions) 儲存設定與效能 權限設定

支援多國語言 (Translation) 可定義Cube Object 與Dimension Object 對應到資料庫中資料表所提供的翻譯語言

Agenda 使用Cube auto-build精靈 資料分割(Partitions) 儲存設定與效能 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions) 儲存設定與效能 權限設定

資料分割(Partitions) 預設以個別FactTable 為基本資料分割 資料分割優點: 可減少單一分割資料量,加速查詢效能 可平行處理,縮短process時間 可儲存於不同空間 可設計不同彙總比例 分割方式: 多個FactTable 單一FactTable,用where條件篩選

設定篩選條件 需注意資料不要重疊,亦不要遺漏

資料分割儲存位置 可選擇儲存本機或遠端Server

Agenda 使用Cube auto-build精靈 資料分割(Partitions) 儲存設定與效能 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions) 儲存設定與效能 權限設定

儲存設定與效能 進階的快取(Proactive Cache):不同等級的快取,區隔不同資料瀏覽的需求,取大量資料與效率間的平衡 MOLAP—效能最佳,不會主動通知更新,不會自動重新 Process Scheduled MOLAP--不會主動通知更新,24小時自動重新 Process Automatic MOLAP--會主動通知更新,會保留Cache,資料更新延遲最長兩小時 Medium Latency MOLAP --會主動通知更新,當Process Cache時,會切到Real Time ROLAP, 資料更新延遲最長四小時 Low Latency MOLAP --會主動通知更新,當Process Cache時,會切到Real Time ROLAP, 資料更新延遲最長30分鐘 Real Time HOLAP Real Time ROLAP—效能最差,資料最新

Agenda 使用Cube auto-build精靈 資料分割(Partitions) 儲存設定與效能 SQL Server Analysis Services Architecture 統一維度模型(UDM) 使用Cube auto-build精靈 導出成員(Calculated Member) 關鍵績效指標KPI設計與管理 商業智慧範本 動作 (Action) 構面 (Perspectives) 支援多國語言 (Translations) 資料分割(Partitions) 儲存設定與效能 權限設定

權限設定 預設所有Administrators群組的成員即為Analysis Service成員,可執行任何工作 可透過Server Level 的Server Role或Database Level 的群組設定Process Database 或View Definition 權限