惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Palo Alto Networks Blog
Martin Fowler
Martin Fowler
T
Threatpost
D
Docker
S
Schneier on Security
M
MIT News - Artificial intelligence
G
Google Developers Blog
L
LINUX DO - 热门话题
J
Java Code Geeks
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
博客园 - Franky
C
Cyber Attacks, Cyber Crime and Cyber Security
K
Kaspersky official blog
Google DeepMind News
Google DeepMind News
N
News and Events Feed by Topic
V
Vulnerabilities – Threatpost
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
人人都是产品经理
人人都是产品经理
Spread Privacy
Spread Privacy
T
Tailwind CSS Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
C
CERT Recently Published Vulnerability Notes
The GitHub Blog
The GitHub Blog
Simon Willison's Weblog
Simon Willison's Weblog
NISL@THU
NISL@THU
MongoDB | Blog
MongoDB | Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
H
Heimdal Security Blog
Recorded Future
Recorded Future
云风的 BLOG
云风的 BLOG
SecWiki News
SecWiki News
P
Privacy International News Feed
P
Proofpoint News Feed
O
OpenAI News
B
Blog
腾讯CDC
F
Full Disclosure
Apple Machine Learning Research
Apple Machine Learning Research
T
Tor Project blog
H
Hacker News: Front Page
Project Zero
Project Zero
Hugging Face - Blog
Hugging Face - Blog
C
Cisco Blogs
S
Security Affairs

博客园 - Love Fendi

性能优化系列---查询高cup的sql State模式学习 8.17--8.24积累 sql server 2005 analysis service step by step(三):创建父子维度 sql serve 2005 analysis service step by step(一):创建标准维度 算法练习五:求数组中第k大的数 算法练习四:求N!不溢出 算法练习三:奇偶分割 算法练习二:二分查找 数据库锁 算法练习一:最大公约数与最小公倍数 索引优化 生成验证码,同时异步获取加密后的验证码 自定义控件中与脚本资源集成的若干处理方式 一条语句删除表中某字段重复的数据 动态按需异步加载js文件 在Nhibernate中使用Json.net中出现Self referencing loop的错误的处理 JQuery学习笔记 c#委托事件 入门
sql server 2005 analysis service step by step(二):创建时间维度
Love Fendi · 2009-04-26 · via 博客园 - Love Fendi

1. In Solution Explorer, right-click the Dimensions folder, click New Dimension, and then
click Next.
2. Clear the Auto Build check box, and then click Next.
3. Click the SSAS Step by Step DW DSV, and then click Next.
4. On the Select the Dimension Type page of the wizard, click Time Dimension, and then
click dbo_DimTime in the corresponding drop-down list.
All tables in the DSV are available in the drop-down list. Since the wizard is unable to
identify which table is the time dimension, you must select the appropriate table here.
5. Click Next.

6.On the Define Time Periods page, click the drop-down list for Year in the Time Table
Columns, scroll through the list of columns, and then click CalendarYear to assign this
column to the Year time property.
7. Repeat the previous step to assign table columns to specific time properties, as shown in
the following table:
8. Click Next.
The Review New Hierarchies page of the wizard shows you the user hierarchies that will
be created based on your selection of time properties on the previous page of the wizard.
You’ll learn more about user hierarchies in Chapter 7. You have the option here to
remove the autogenerated hierarchies or to remove levels from a hierarchy. For now,
you’ll leave the hierarchies as they are.
9. Click Next, change the dimension name from Dim Time to Time, and then click Finish
to complete the wizard.

10.In the Attributes list, right-click Date, click Properties, and then, in the Properties window,
scroll to the NameColumn property, click (new) in the property’s drop-down list,
click FullDateAlternateKey, and then click OK.
The key column for this attribute is still TimeKey, which is used to join the dimension to
related fact tables, but the key has no meaning to users. Instead, you can use the Name-
Column property to display the name of an attribute member. In this case, users will see
the value from the FullDateAlternateKey column of the DimTime table, which is a date
value in a mm/dd/yy format.

注意一个问题:就是按时间排序,普通月份是按拼音字母排序的,如何让他按月份排序呢?

16. Click the Dimension Structure tab, right-click Month, click Properties, and then, in the
Properties window, scroll to the KeyColumns property.
17. Click the ellipsis button (…) in the property’s list box, and then click the ellipsis button
in the Source property in the DataItem Collection Editor dialog box.

Click MonthNumberOfYear in the Source Columns list, and then click OK

19. Click OK to close the DataItem Collection Editor dialog box.
20. Right-click the SSAS Step by Step project in the Solution Explorer window, and then
click Deploy.

基于角色的维度 role-playing dimension

在一个事实表中也许有几个字段都引用到了时间维,比如说,order date ,ship date,due date ,the corresponding role-playing dimensions are automatically added to the cube.而且,Notice also there are no corresponding
.dim files for these dimensions in the Dimensions folder of Solution Explorer. All that
you see is the Time Dimension that you added previously. That is because the three new
dimensions are role-playing dimensions for time.