How to use the current visitor's account in SSAS query? [MOSS + PPS + SSAS]

别说谁变了你拦得住时间么 提交于 2019-12-24 21:06:37

问题


I'm using MOSS2010 + Performance Point + Analysis services. Here's the questions:

  1. How to get the current visitor's account in PPS report?
  2. How to use the current visitor's account in SSAS query?

回答1:


This post may help: http://blogs.msdn.com/b/performancepoint/archive/2010/03/25/passing-filter-values-on-the-url-to-performancepoint-services-web-parts.aspx




回答2:


Another option is to configure your PerformanePoint 2010 data source to use Per-User Identity.

Then access the UserName MDX function:

WITH MEMBER Measures.x AS UserName
SELECT Measures.x ON COLUMNS
FROM [Adventure Works]

References:

http://blogs.msdn.com/b/performancepoint/archive/2010/01/05/new-authentication-options-for-data-sources.aspx




回答3:


As far as I know, you can only customize scorecards with the custom scorecards transformations. The reports cannot be customized.

You can perform 4 types of scorecards transformation : PerUser, PreQuery, PostQuery and PreRender. From there, it's C#, so do whatever you like.

To create a Scorecard transformation, you will need to inherit from IGridViewTransform. You will need to include references to Microsoft.PerformancePoint.Scorecards.Client and Microsoft.SharePoint.

See the following link for a tutorial on how to achieve this : http://msdn.microsoft.com/en-us/library/ff606776.aspx

For your information, since there's not much documentation on the subject, I found that it is a good idea to XML Serialize your "viewData" object to take a closer look at what's inside and understand the general feel of it. The "Cells" objects are pretty strange, starting from the end of the scorecard and getting backward.

Good luck!



来源:https://stackoverflow.com/questions/4273512/how-to-use-the-current-visitors-account-in-ssas-query-moss-pps-ssas

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!