ssas

MDX Allow member set only siblings in Roles-Dimension Data

谁说我不能喝 提交于 2020-01-05 17:49:33
问题 Is it possbile to restrict a Role in Dimension Data by allowing him to see only siblings in the parent-child Hierarchy? Example Hierarchy: EMEA 100 UK 50 London 30 Southampton 20 France 50 Paris 10 Lyon 40 To see only: EMEA 100 UK 50 France 50 回答1: I've received the expected result with the following MDX statement NONEMPTY( descendants( [Dim Branch Hierarchies].[Branch Hierarchy] ,,leaves ) , ( [Measures].[GrantedHi] ,StrtoMember( "([Dim Users].[Account Name].[Account Name].["+ Username()+ "]

MDX Allow member set only siblings in Roles-Dimension Data

寵の児 提交于 2020-01-05 17:49:25
问题 Is it possbile to restrict a Role in Dimension Data by allowing him to see only siblings in the parent-child Hierarchy? Example Hierarchy: EMEA 100 UK 50 London 30 Southampton 20 France 50 Paris 10 Lyon 40 To see only: EMEA 100 UK 50 France 50 回答1: I've received the expected result with the following MDX statement NONEMPTY( descendants( [Dim Branch Hierarchies].[Branch Hierarchy] ,,leaves ) , ( [Measures].[GrantedHi] ,StrtoMember( "([Dim Users].[Account Name].[Account Name].["+ Username()+ "]

Ordering a complex set

◇◆丶佛笑我妖孽 提交于 2020-01-05 09:33:02
问题 I've been playing with a script of Chris Webb's found here: http://cwebbbi.wordpress.com/2007/06/25/advanced-ranking-and-dynamically-generated-named-sets-in-mdx/ The adapted script is this: WITH SET MyMonths AS TopPercent ( [Date].[Calendar].[Month].MEMBERS ,20 ,[Measures].[Reseller Sales Amount] ) SET MyEmployees AS [Employee].[Employee].[Employee].MEMBERS SET MyMonthsWithEmployeesSets AS Generate ( MyMonths ,Union ( {[Date].[Calendar].CurrentMember} ,StrToSet (" Intersect({}, {TopCount

“The restrictions imposed by the CONSTRAINED flag … were violated”

南笙酒味 提交于 2020-01-05 07:58:35
问题 I am new to ssrs .i am creating report which query on cube and provides the result i have used parameter for choosing to and from date and its giving error like "the restriction imposed by constrained flag is violated". what should i do ?i can not remove constrained because production server does not accepts mdx query without constrained. MDX Query is like this:- select {[Measures].[Customers],[Measures].[Contacted Customers], [Measures].[No of Bets], [Measures].[Stakes GBP], [Measures].

MDX - active in current period, and not active in previous period

吃可爱长大的小学妹 提交于 2020-01-04 09:17:30
问题 What is the most efficient way to do this in MDX? I know you can create 2 calculated measures, having active with the time dimension current period selected, and another having the previous period, and then do a filter with a complex condition. However what about other functions which may be more efficient? Any recommendations? My goal is to create a set of calculated measures, which would help customer analysts. The main 2 dimensions, for these are [Calendar], and obviously [Customer]. I

Get SSAS cube last process time

心不动则不痛 提交于 2020-01-02 08:45:15
问题 In Excel I make an Analysis Services connection to a data cube. I would like to be able to show a user how current the data is by showing them when the last cube processing time occurred. Making an analysis services connection to the cube in SQL Server Management Studio (SSMS), I can right click on the cube and see the property of the last cube processing time exists. I can also create an MDX query as follows to return the last process time: SELECT LAST_DATA_UPDATE FROM $system.mdschema_cubes

WHERE clause in calculated member

泪湿孤枕 提交于 2020-01-02 07:25:11
问题 I am facing some problem to calculate values from comparing dimension's value. I have 3 dimensions (Datatype, Customer, Product) and one measure (GrossSales). What would be the MDX query if I want GrossSales for ProductID = 1,2,3 and Dataype = 4,5,6? Here Datatype has relationship with GrossSales, Customer has relationship with GrossSales and Product has relationship with Customer. I am trying this but doesn't work CREATE MEMBER CURRENTCUBE.[Measures].Forecast_Gross_Sales AS ( SELECT NON

What is the best approach to get from relational OLTP database to OLAP cube?

这一生的挚爱 提交于 2019-12-31 09:03:09
问题 I have a fairly standard OLTP normalised database and I have realised that I need to do some complex queries, averages, standard deviations across different dimensions in the data. So I have turned to SSAS and the creation of OLAP cubes. However to create the cubes I believe my data source structure needs to be in a 'star' or 'snowflake' configuration (which I don't think it is right now). Is the normal procedure to use SSIS to do some sort of ETL process on my primary OLTP DB into another

Sql Server Services - Overview anyone?

狂风中的少年 提交于 2019-12-31 08:44:19
问题 In Short I am thoroughly confused by the array of SQL Server services available, and am having a hard time finding a brief primer. The Scoop I am a long time ASP.Net developer who has happily been churning out ASP.Net applications for years. These have usually been based on SQL server and a range of custom tables and views. Just recently I have had the need to do some reporting that goes a little beyond the straight forward, and so I have started to look into SQL Server Reporting Services

SSAS Aggregation on Distinct ID

蓝咒 提交于 2019-12-31 07:13:18
问题 I wish to change the default aggregation from SUM to SUM on Distinct ID Values. This is the current behaviour ID Amount 1 $10 1 $10 2 $20 3 $30 3 $30 Sum Total = $90 By default, I am getting a sum of $90. I wish to do the sum on distinct ids and get a value of $60. How would I modify the default Aggregation Behavior to achieve this result? 回答1: Design your data as a many-to-many relationship: create one table/view having one record per ID and the amount column from the data shown in your