ssas-2008

MDX SSAS - Max Date in Measure

萝らか妹 提交于 2020-01-03 14:00:25
问题 Just need to get MAX date in ALL my Measures in the Cube. For instance, DateID is a Dimention , [Measure].[First Measure],...,...,[Second Measure] . How to get list of MAX(DateID) from all Measures in my Cube. 回答1: The following will get you the max date value associated with each measure...but you will have to manually create a calculated member corresponding to each measure. WITH MEMBER [Measures].[Max Date - Internet Sales Amount] AS TAIL( NONEMPTY( [Date].[Date].[Date] ,[Measures].

Ordering by a generic calculated measure results in infinite recursion? (MDX)

邮差的信 提交于 2019-12-25 07:39:41
问题 I need to write a calculated measure that would show a share of Measure1 comparing to the total sum by any given dimension. I managed to do it like this: CREATE MEMBER CURRENTCUBE.[Measures].[Test] AS [Measures].[Measure1] / ( AXIS( 1 ).ITEM( 0 ).DIMENSION.LEVELS( 0 ).ITEM( 0 ), [Measures].[Measure1] ) But due to the generic nature of [Test] , it is not possible to order a dimension by this measure. SELECT [Measures].[Measure1] ON 0, ORDER( [Dimension1].MEMBERS, [Measures].[Test] ) ON 1 FROM

Add new users in SSAS security

一曲冷凌霜 提交于 2019-12-20 02:36:12
问题 I want to add users in SSAS security using following XMLA script. DECLARE @CreateUserInSsasXMLA VARCHAR(MAX) = '<Batch AllowCreate="true" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" Transaction="true"> <Alter ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object /> <Object> <RoleID>Administrators</RoleID> </Object> <ObjectDefinition> <Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org

What cube deployment changes will force a reprocess?

梦想与她 提交于 2019-12-12 02:56:47
问题 Sometimes when I deploy a cube that has been changed (from BIDS), I can continue to browse the existing cube data. Other times, the engine insists I reprocess the data before I can browse the cube. I can't find a definitive resource showing which changes require a data reprocess and which do not. SSAS 2008. 回答1: In general, you need to process when adding or editing measures adding a dimension attribute editing dimension attribute relationships or order by properties A more complete list can

How market growth for each product under that particular market would be same?

会有一股神秘感。 提交于 2019-12-12 00:36:52
问题 I have All_Product hierarchy in All_product dimension. strength-->product-->market I want calculation for product growth and market growth on monthly basis((current-prev)/prev). I used scripts to calculate product growth (wrt product) and market growth (wrt market) which working fine but how to show for market growth with respect to each product. eg: market growth for each product under that particular market will be same example: I have market m1 and under market m1 having products p1,p2 and

SSAS Cube processing logs

谁都会走 提交于 2019-12-08 10:17:37
问题 Where are SSAS cube processing (not error, not flight recorder) logs stored? We have a SQL Agent Job running a SQL Server Analysis Services command. In there is some DMX which processes each dimension then processes the cube database (containing two cubes) I want to know how long each of the various queries are taking. There is one query per dimension and one query per measure group The cube was taking 20 minutes now it's taking 2 hours. We are using SSAS 2008 R2 I have searched long and hard

SSAS cube with multiple DB

让人想犯罪 __ 提交于 2019-12-07 00:37:41
问题 I have 3 databases with the same structure, but different data, since they are from different clients. Now, I have an existing SSAS project. Its Data Source Views, Cubes and Dimensions can only use or access one DB. What I want is to be able to use multiple databases with the same structure, and create a cube using them. Each client must also be able to use the cube, but they can only see their own data. Are these possible? Can you please provide insights and some useful references? 回答1: Easy

Add new users in SSAS security

﹥>﹥吖頭↗ 提交于 2019-12-01 20:58:45
I want to add users in SSAS security using following XMLA script. DECLARE @CreateUserInSsasXMLA VARCHAR(MAX) = '<Batch AllowCreate="true" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" Transaction="true"> <Alter ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object /> <Object> <RoleID>Administrators</RoleID> </Object> <ObjectDefinition> <Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns

Trying to process the cube but getting the error at impersonation information

时光总嘲笑我的痴心妄想 提交于 2019-12-01 03:41:23
I have built a cube in Business Development Intelligent Studio(BIDS) using some database with the name 'Test_cube' which consists of Products dimension table, customers dimension table and orders fact table. The products table attributes :prodID-primary key,prodname,prodtype,prodcost The customers table attributes :custID-primary key,custname,custloc The orders table attributes :orderID,prodID,custID,quantity,unitprice,totalprice-calculated query column where primary key was set to orderID,prodID,custID But I got some errors while trying to deploy the cube like Internal error : The operation

Trying to process the cube but getting the error at impersonation information

百般思念 提交于 2019-12-01 01:13:42
问题 I have built a cube in Business Development Intelligent Studio(BIDS) using some database with the name 'Test_cube' which consists of Products dimension table, customers dimension table and orders fact table. The products table attributes :prodID-primary key,prodname,prodtype,prodcost The customers table attributes :custID-primary key,custname,custloc The orders table attributes :orderID,prodID,custID,quantity,unitprice,totalprice-calculated query column where primary key was set to orderID