mdx

调试.NET的MDX存储过程

拜拜、爱过 提交于 2019-12-31 04:57:19
  在Visual Studio中调试MDX存储过程非常简单,只要几步设置就可以实现。对于Visual Studio 2010(与VS2005和VS2008的设置方法相同)。在Visual Studio中将存储过程项目附加到分析服务器进程(msmdsrv.exe进程),附加进程之后它会自动加载程序集,分析服务器就会加载指定的存储过程。在开始之前还要在存储过程代码中设置断点。在调试的时候只要在MDX编辑器中运行带有相应存储过程引用的代码,当运行到存储过程的时候,流程就会自动转到Visual Studio中设置的断点处停下,然后就可以对存储过程代码进行跟踪调试了。要想进行MDX存储过程的调试,需要在Visual Studio中将存储过程项目的调试属性中的Enable SQL Server debugging(启用SQL Server调试)选中。如下图: English Edition of this article 来源: https://www.cnblogs.com/SmartBizSoft/archive/2009/05/26/1490398.html

MDX: how to get dimension values as columns

痞子三分冷 提交于 2019-12-25 14:46:15
问题 firstly i apologize because i'm most certainly using the wrong terms here. My problem is that i have the query below that contains a dimension that has always two values (MONTH VALIDATION) as shown on the query and image below: SELECT NON EMPTY { [Measures].[00 - Costs €] } ON COLUMNS, NON EMPTY {( [Project Platoon].[Platoon].[Platoon].ALLMEMBERS , [Financial Data Month Validation].[Month Validation Status].[Month Validation Status].ALLMEMBERS )} DIMENSION PROPERTIES MEMBER_CAPTION,MEMBER

MDX: how to get dimension values as columns

夙愿已清 提交于 2019-12-25 14:45:13
问题 firstly i apologize because i'm most certainly using the wrong terms here. My problem is that i have the query below that contains a dimension that has always two values (MONTH VALIDATION) as shown on the query and image below: SELECT NON EMPTY { [Measures].[00 - Costs €] } ON COLUMNS, NON EMPTY {( [Project Platoon].[Platoon].[Platoon].ALLMEMBERS , [Financial Data Month Validation].[Month Validation Status].[Month Validation Status].ALLMEMBERS )} DIMENSION PROPERTIES MEMBER_CAPTION,MEMBER

New Column with numbers

橙三吉。 提交于 2019-12-25 09:36:00
问题 Goal: Create a new column, named test , containing numbers in SSAS only inside of DSV design view. If StatePrinceCode's column has value NSW it shall have value 1 etc. StateProvinceCode test ------------------------------ NSW 1 QLD 2 SA 3 Problem: How should I enable to do it? I tried using IIF and case statement but it doesn't want to do it due to text value. It only works with numbers only. Information: - I strongly believe that you need to create a named calculation as a extra column to

The STRTOSET function expects a string or numeric expression for the 1 argument. A tuple set expression was used

时光总嘲笑我的痴心妄想 提交于 2019-12-25 09:02:38
问题 I am very new to this whole MDX query thing. I have the following query which I am trying to execute but keep getting the following error: Executing the query ... Query (19, 16) The STRTOSET function expects a string or numeric expression for the 1 argument. A tuple set expression was used. Execution complete My query looks as follows: SELECT NON EMPTY { [Measures].[Effective Duration] } ON COLUMNS, NON EMPTY { ( [Dim Cause Code].[Cause].[Cause].ALLMEMBERS * [Dim Classification].

Use of 'median' function in calculated field in SSRS

若如初见. 提交于 2019-12-25 08:49:55
问题 According to this it looks like you can use an aggregate function in a calculated field, but if I try and use the median command, I get an error "the value expression for the field =Median( ...what I wrote below..) contains an error: BC30451 Name 'Median' is not declared. I have tried =Median(Fields!name_of_field_I_want_median_from.Value,"dsTheDatasetFieldIsIn") and =Median(Fields!name_of_field_I_want_median_from.Value) neither work N.B. Dataset is derived from MDX 回答1: maybe I didn't

MDX (SSRS) Parameter subset

喜你入骨 提交于 2019-12-25 08:19:33
问题 I need a bit of help with my SSRS parameter code in MDX context I'm trying to return Country locations with and type = matter and a house count (not used as a parameter) for the drop down list I'm using the caption, uniqueName and level.ordinal method WITH MEMBER [Measures].[ParameterCaption] AS [Country].[Location].CurrentMember.Member_Caption MEMBER [Measures].[ParameterCaption2] AS [Type].[Type].CurrentMember.Member_Caption MEMBER [Measures].[ParameterValue] AS [Country].[Location]

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

Mdx Using a member property as an argument for a strtomember

时光总嘲笑我的痴心妄想 提交于 2019-12-25 05:06:33
问题 I'm working on a cube that has two date dimensions, with the same structure, but measuring different behaviours: one measures the stay date, and the other one the reservation date. So I need to create a set that will isolate all reservations made for a specific date, until 1 year prior that specific date. I need the set to be dynamic, so it changes when the stay date changes... Now, I am blowing my mind off trying to undertand why this works fine: SET [D365] AS {NULL: [Creation Date].

Get hierarchies valuesName mdx

匆匆过客 提交于 2019-12-25 04:34:14
问题 I created a hierarchies like this photo below: http://i.stack.imgur.com/ErOXQ.png On MDX query Select [AccSetting].[UserN].[UserN] ON 1 FROM [Olap_report] Where [AccSetting].[AgID].[115] This query return all UserN are children of AgID 115 . but I want to return exactly UserN of AgID =115 ? 回答1: Think I understand now - the name is is a property of the member. Create a custom measure that returns the property. WITH MEMBER [Measures].[NameColumn] AS [AccSetting].[AgID].CURRENTMEMBER.Member