[英]SSAS: How to design my cube
I'm quite new to SSAS and have problem designing a cube. 我对SSAS还是很陌生,在设计多维数据集时遇到问题。
How do I design the cube to get the amount of tickets a user has closed while he was a member of a specified group? 我如何设计多维数据集以获取用户在指定组中时已关闭的门票数量? I have no clue how to tell SSAS
to select the group when the selected date is between assigned_date and left_date. 我不知道如何在所选日期介于Assigned_date和left_date之间的情况下告诉SSAS
选择该组。
You need to denormalize the data to allow this to be handled intuitively. 您需要对数据进行规范化处理,以使其能够直观地进行处理。
I would handle this in a transformation when populating your TicketsMEasure in either your datawarehouse or SSAS cube. 当在数据仓库或SSAS多维数据集中填充TicketsMEasure时,我将通过转换来处理。 Joining tickets with users with group members ship, using ticket.closeddatetime between group start/end as criteria. 使用组开始/结束之间的ticket.closeddatetime作为条件,可以将与具有组成员的用户的票合并在一起。 This will denormalize your tickets such that you can now have the group ID that the user was a member of when the ticket was closed 这将使您的票证不规范化,以便您现在可以拥有关闭票证时用户所属的组ID。
ClosedTicketsMeasure
TicketId, UserId, GroupId, DateKey
Now you can easily slice/dice on Groups/Users/Months/Weeks to get counts of the number of tickets closed in those combinations. 现在,您可以轻松地对组/用户/月/周进行切片/切块,以获取这些组合中关闭的票数的计数。
Using MSFT's SSAS with SSDT, you must follow the steps below: 将MSFT的SSAS与SSDT一起使用,必须遵循以下步骤:
After you do there's steps and make the necessary hierarchies and partitioning for efficiency improvement then you can deploy your cube on your server by pressing the start button and use the browser of SSDT using drag and drop objects like dimensions and measures to built your report. 完成步骤并进行必要的层次结构和分区以提高效率后,您可以通过按开始按钮将多维数据集部署在服务器上,并使用SSDT的浏览器,通过拖放对象(如尺寸和度量)来构建报表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.