如何通过Power Pivot在Excel中使用SQL Server Analysis Services(SSAS)查询结果

本文介绍了如何通过Power Pivot在Excel中使用SQL Server Analysis Services(SSAS)的查询结果。首先,文章阐述了使用Power Pivot的前提条件,包括需要SQL Server 2014及以上版本,安装SSAS Tabular实例和Power Pivot加载项。接着,详细步骤展示了如何创建Power Pivot工作簿,将SSAS Tabular模型作为数据源,并用MDX查询获取数据。最后,将处理后的多维数据集复制到普通Excel工作簿中,以便进行进一步分析和定制。
摘要由CSDN通过智能技术生成

Prerequisites for using query results from any Analysis Services model database in Excel through Power Pivot add-in are SQL Server 2014 or higher with installed Analysis Services Tabular instance (Multidimensional is installed by default), deployed Multidimensional or Tabular model database (for data source) and Power Pivot add-in for Excel 2010 or higher (Power Pivot is native add-in in Excel 2016).

通过Power Pivot加载项在Excel中使用来自任何Analysis Services模型数据库的查询结果的先决条件是SQL Server 2014或更高版本,并已安装Analysis Services Tabular实例(默认情况下安装了多维),已部署的多维或表格模型数据库(用于数据源)和Excel 2010或更高版本的Power Pivot加载项(Power Pivot是Excel 2016中的本机加载项)。

In this article, the custom SSAS Tabular model database will be used (“AW Tabular”) as an external data source.

在本文中,将使用自定义 SSAS表格模型数据库(“ AW表格”)作为外部数据源。

Power Pivot概述 (Power Pivot overview)

Being a link between the SQL Server and Excel, Power Pivot is the Excel analytical feature which relies is built on SQL Server Analysis Services. Even though it is still an Excel add-in, and uses pivot tables, as a main form, Power Pivot is acting like a localized instance of SSAS, incorporating ROLAP (Relational OLAP) storage mode, which includes in-memory data processing and using DAX as the query language, similar to the SSAS Tabular instance characteristics.

作为SQL Server和Excel之间的链接, Power Pivot是依赖于SQL Server Analysis Services构建的Excel分析功能。 尽管它仍然是Excel加载项,并使用数据透视表作为主要形式,但Power Pivot的行为类似于SSAS的本地化实例,并结合了ROLAP( 关系OLAP )存储模式,其中包括内存数据处理和使用DAX作为查询语言,类似于SSAS表格实例的特征。

Furthermore, with these similarities, SSAS query results can be easily replicated and used in Excel.

此外,由于具有这些相似性,因此可以轻松复制SSAS查询结果并在Excel中使用。

准备Power Pivot工作簿 (Preparing Power Pivot workbook)

Create an empty Excel workbook, and select Add to Data Model feature in Power Pivot tab, like in picture below:

创建一个空的Excel工作簿,然后在Power Pivot选项卡中选择“ 添加到数据模型”功能 ,如下图所示:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值