当前位置:首页 > 办公设计 > Office教程 > X 服务器格式,翻译和成员属性

X 服务器格式,翻译和成员属性

2年前 (2025-05-24)Office教程1280

译者:hxhgxy  来源:http://blogs.msdn.com/excel
发表于:2006年7月7日

PivotTables X: Server formatting, translations, member properties
数据透视表 X:服务器格式,翻译,成员属性

In this post I’ll walk you through three Analysis Services features that we now support in Excel PivotTables – server formatting, translations, and member properties. One thing to keep in mind as you read is that since all these are defined in Analysis Services (i.e. on a server), every PivotTable created that pulls data from Analysis Services will get the benefit of these features without the PivotTable author or user needing to do anything.
在本文里,我将带领你浏览我们现在在Excel 数据透视表里支持的Analysis Services功能——服务器格式,翻译和成员属性。你在阅读的时候请牢记一件事,因此这些都是在Analysis Services(例如在服务器上)上定义的,从Analysis Services获得的数据而创建的每个数据透视表将会从中获益而不需要数据透视表作者或者用户去做任何事情。

Server formatting
When designing a model in Analysis Services, formatting can be associated with values. Excel PivotTables will display this formatting by default (you can control it in the connection properties dialog for the connection being used by the PivotTable, so if you want to turn off the formatting, you can).

服务器格式
在Analysis Services设计模型时,设计数据的同时也可以设置格式。Excel数据透视表将会默认地显示这些格式(你可以在连接属性对话框里控制它,因此如果你想要关闭格式的话,你可以做到)

Here is an example of a PivotTable displaying number formatting as defined on the server – in this case dollars with two decimals. As you add fields to the Values area of the PivotTable, the formatting is done automatically.
这里有个例子,数据透视表显示服务器上设计的数字格式——在本例中,为带两位小数位数的美元。当你添加字段到数据透视表的数值区域时,格式会自动完成。

The next screenshot illustrates fill color formatting defined on the server. In this case, the formatting is actually based on a rule (MDX expression), setting different fill colors based on the value in each cell. You can think of this as conditional formatting defined in Analysis Services. Again, the user didn’t have to do anything but add the fields to the PivotTable to get server defined conditional formatting based on centralized business rules. In the example, the rule colors cells with acceptable values green, cells with unacceptable values red and cells with values in between are colored yellow.
下一张截图示范在服务器上设计的填充色格式。在这种情形中,格式实际上是基于一个规则(MDX表达式)的,基于每个单元格的数值设置不同的填充颜色。你可以将其看作是定义在Analysis Services里的条件格式。同样,用户不必做任何事情,只是添加该字段到数据透视表,以获取服务器基于集中的业务规则定义的条件格式而已。在该例子里,颜色规则是,可接受的数值为绿色,不可接受的数值的单元格为红色,位于两者之间的数值单元格填充为黄色。

 

This is pretty powerful … business logic can be defined in an Analysis Services model, and everyone that views the data sees that business logic in their spreadsheet without having to do anything except add fields to their PivotTable.
这功能真是非常强大……业务逻辑可以在Analysis Services模型里定义,然后查看数据的每个人在他们的电子表格里都可以看到该业务逻辑,而不必做任何事情,除了添加字段到他们的数据透视表。

Translations
For global companies, it is important that employees and customers in different countries can access corporate data in their native language. Analysis Services 2005 offers a new “translations” feature that enables you to have multiple translations of the same model. For example, you might have you product catalog available in English, French, German and Spanish. Excel 12 PivotTables expose these translations in the report itself as well as in the field list. Based on the language settings on the machine where Excel is running, Excel will automatically pick the same language if it exists on the server. If that language does not exist, the default language specified on the server will be picked. You can override this automatic behavior by specifying a locale identifier in the connection information for the PivotTable and thereby force the use of a specific language.

翻译
对于一个全球性公司,不同国家的员工和客户能够用其母语访问公司数据是非常重要的。Analysis Services 2005提供了一个新功能“翻译”,让你可以使同一个模型有多种翻译。例如,你的产品目录可能有英语的,法语的,德语的和西班牙语的。Excel 12数据透视表不但将这些翻译出现在报表本身,而且也出现在字段列表里。基于Excel运行的机器上的语言设置,如果该语言在服务器上也存在的话,Excel将自动选择相同的语言。如果该语言不存在,那么服务器上指定的缺省语言就会被选上。你可以忽视该自动行为,为数据透视表在连接信息里指定一个当地标识符,强行要求使用指定的语言。

Let’s look at an example. Here is a PivotTable displaying the English translations of the server model, which is what you would see if you open the Excel file on a machine running English Excel 12.
我们来看一个示例。这里是一个显示从服务器模型来的英语版数据透视表,如果你在一个英语版的Excel 12运行的机器上打开Excel文件的话,这也是你想看到的。

Now, I’ll pick a different connection file pointing to the same server model. This connection file specifies that I want the Spanish translations.
现在,我将选择一个不同的文件连接到同一个服务器模型。该连接文件指定我需要西班牙版本。

 

In this case I chose a new connection, but the same thing would have happened had I opened the Excel file on a Spanish machine running Excel 12.
在本例中,我关闭了一个新连接,但是如果我在一个西班牙语机器运行的Excel 12中打开该Excel文件时,同样的事情也会发生。

Member properties
When analyzing data, it can be very helpful to get at additional information about an item to make better decisions. For example, if you’re looking at product sales, it might be very helpful to be able to quickly look up all the information on a specific product to better understand the sales amount for that product. Member properties in Analysis Services allow you to do just that. Excel 12 PivotTables expose member properties in tooltips, so all you have to do is to hover over the product that you want more information on, and this information will be displayed in a tooltip.

成员属性
在分析数据时,如果能获取某个项目的额外信息的话,那么对于做一个更好的决定是很有帮助的。例如,如果你正在查看产品销售情况,如果能够快速查看某个具体产品的所有信息,以更好地理解该产品的销售量,那么会很有帮助的。Analysis Services里的成员属性允许你实现这个。Excel 12数据透视表将成员属性显示在工具提示里面,因此你所有要做的事情只是将鼠标移到你需要更多信息的产品之上,该信息就会被显示在工具提示上。

The member properties can also be added inside the PivotTable itself when you need to print the information or just have it be visible all the time. Here is what that looks like.
成员属性也可以添加到数据透视表本身内部,当你需要打印该信息或者只是想让它时时可见。这是它的样子。

Finally, the Excel Object Model can be used to make member properties display instead of the members those properties pertain too. For example, if you have quarters represented as “First Quarter 2004”, “Second Quarter 2004”, etc., you can define a member property with abbreviated names like “Q1 04”, “Q2 04” etc. and set a flag to show the properties when the field is placed in the column area, making the report more readable (less wide).
最后,Excel对象模型可以用来显示成员属性,而不是拥有那些属性的成员。例如,如果你有一些季度,表现为“First Quarter 2004”,“Second Quarter 2004”,等等,那么你可以定义成员属性为一些缩写的名称如“Q1 04”,“Q2 04”等,并且当放置该字段到列区域时设置一个标志以显示该属性,这样可以使报表更易读(列宽窄一些)。

Published Thursday, January 05, 2006 5:40 PM by David Gainer

注:本文翻译自http://blogs.msdn.com/excel,原文作者为David Gainer(a Microsoft employee),Excel home授权转载。严禁任何人以任何形式转载,违者必究。

扫描二维码推送至手机访问。

欢迎转载或分享本篇文章。

本文链接:https://www.jcba123.com/article/1111

分享给朋友:

“X 服务器格式,翻译和成员属性” 的相关文章

在Excel中如何快速录入日期和时间,三种方法轻松搞定,值得学习

在Excel中如何快速录入日期和时间,三种方法轻松搞定,值得学习

我们在使用Excel制作表格时,经常会需要录入日期和时间。很多新手小伙伴对如何快速输入日期和时间的方法不太清楚,今天笔者就跟大家分享三种在Excel中快速录入日期和时间的方法,希望对大家有所帮助。 一、快捷键录入日期和时间 1、我们可以通过快捷键ctrl+;组合键,可以快速输入日期,...

Excel任意条件查数据,就这么简单

Excel任意条件查数据,就这么简单

先看数据源: 左侧是员工信息表,右侧是查询区域,希望在G4输入任意姓名或者任意部门,就能在右侧提取出符合条件的全部记录。 要实现这样的数据提取效果,其实很简单,接下来咱们就看看具体的操作步骤。 步骤1 在G4单元格输入要查询的内容,比如“销售部”。 步骤2 在第一行数据...

一次性搞懂Excel引用方式

一次性搞懂Excel引用方式

在说引用方式之前,有必要先说说公式的复制。 当咱们输入一个公式后,能够快速将公式复制到具有相同运算规则的其他单元格。 比如下图中,在D2单元格里使用公式“=B2*C2”计算出土豆的金额。 那底下的白菜、辣椒怎么算呢? 如果像下面这样操作,那肯定是二逼青年了: D3输入公式=B3*C3,回...

Excel逆向查询的3种方法,你都会了吗?

Excel逆向查询的3种方法,你都会了吗?

所谓逆向查询,就是关键字在数据表的右侧,而要得到内容在数据表的左侧。 如下图,希望根据E2单元格指定的客户名,从左侧的数据表中查询对应的客户等级。   方法1: =INDEX(A2:A8,MATCH(E2,B2:B8,0)) 该公式的模式化用法为: =IN...

带错误值的数据,要想求和怎么办

带错误值的数据,要想求和怎么办

如何对带有错误值的数据进行求和。 先来看数据源,C列是不同业务员的销量,有些单元格中是错误值: 现在需要在E2单元格计算出这些销量之和,如果直接使用SUM函数,会返回错误值,该怎么办呢? 普通青年公式是这样的,输入完成后,要按住SHift+ctrl不放,按回车。 =SUM(IFERROR(C2:C...

让你秒懂Word自动生成目录的操作方法

让你秒懂Word自动生成目录的操作方法

Word排版中自动生成目录一项是许多人的痛楚,特别是在制作长篇文档排版的时候,我们经常会生成目录,那么生成目录要满足哪些条件呢?又应该如何生成呢?今天,易老师就详细的为大家介绍讲解一下! 自动生成目录前提条件 首先,你要明白,不是什么样的长篇文档都适合生成目录的。我们需要满足一些基本条件,...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。