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

推荐订阅源

G
GRAHAM CLULEY
T
Tenable Blog
Know Your Adversary
Know Your Adversary
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy International News Feed
S
Security Affairs
NISL@THU
NISL@THU
O
OpenAI News
Attack and Defense Labs
Attack and Defense Labs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Schneier on Security
Schneier on Security
S
SegmentFault 最新的问题
S
Schneier on Security
G
Google Developers Blog
V
V2EX
C
Check Point Blog
U
Unit 42
Google DeepMind News
Google DeepMind News
T
Threatpost
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
S
Secure Thoughts
博客园 - 司徒正美
Recorded Future
Recorded Future
P
Proofpoint News Feed
Spread Privacy
Spread Privacy
K
Kaspersky official blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
AI
AI
博客园 - 聂微东
N
News and Events Feed by Topic
SecWiki News
SecWiki News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Vulnerabilities – Threatpost
P
Palo Alto Networks Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
Recent Commits to openclaw:main
Recent Commits to openclaw:main
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
Project Zero
Project Zero
W
WeLiveSecurity
博客园 - Franky

博客园 - 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.