mdx

View MDX query generated while browsing a cube in SSMS

蓝咒 提交于 2020-01-12 12:54:44
问题 In Sql Server Management Studio once I browse a cube I can drop column fields, row fields and filter fields. This displays the required data. I want to know if there is a way to view the MDX query being generated behind the scenes to display the data? Thanks. 回答1: SQL Server Profiler works on SSAS servers. Select Analysis Services for the Server type in the Connection dialog when initiating a Profiler connection. Select your Analysis Services server and connect. You can use the Standard

View MDX query generated while browsing a cube in SSMS

不问归期 提交于 2020-01-12 12:52:10
问题 In Sql Server Management Studio once I browse a cube I can drop column fields, row fields and filter fields. This displays the required data. I want to know if there is a way to view the MDX query being generated behind the scenes to display the data? Thanks. 回答1: SQL Server Profiler works on SSAS servers. Select Analysis Services for the Server type in the Connection dialog when initiating a Profiler connection. Select your Analysis Services server and connect. You can use the Standard

Trying to calculate quartiles in MDX

与世无争的帅哥 提交于 2020-01-11 13:32:53
问题 My data looks like this: ID |PersonID |CompanyID |DateID |Throughput |AmountType 33F467AC-F35B-4F24-A05B-FC35CF005981 |7 |53 |200802 |3 |0 04EE0FF0-511D-48F5-AA58-7600B3A69695 |18 |4 |201309 |5 |0 AB058AA5-6228-4E7C-9469-55827A5A34C3 |25 |69 |201108 |266 |0 with around a million rows. The columns names *ID refers to other tables, so they can be used as dimensions. I have an OLAP cube with the column Throughput as Measure and the rest as dimensions. I want to calculate Quartile 1 and 3 of the

Calculating a % rate based on two date dimension in one cube

混江龙づ霸主 提交于 2020-01-07 03:27:07
问题 Set up - SSAS 2012 with OLAP cubes (built by supplier) and MS Report Builder v3. No access to BIDS. I am building a report which needs to calculate a disposal rate based on data from a single cube. Historically this would have been calculated from two separate tables of data, giving a count by month of new items by date recorded and a count by month of items disposed by month of disposal. This can then be turned to a disposal rate using a lookup or similar. Blank disposal dates are fine (can

MDX Count over time (years - not within a year)

99封情书 提交于 2020-01-06 15:44:44
问题 I'd like to be able to rollup the count of commitments to a product over years - The data for new commitments in each year looks like this: Year | Count of new commitments | (What I'd like - count of new commitments to date) 1986 4 4 1987 22 26 1988 14 40 1989 1 41 I know that within a year you can do year to date, month to date etc, but I need to do it over multiple years. the mdx that gives me the first 2 columns is (really simple - but I don't know where to go from here): select [Measures]

MDX Count over time (years - not within a year)

泄露秘密 提交于 2020-01-06 15:44:20
问题 I'd like to be able to rollup the count of commitments to a product over years - The data for new commitments in each year looks like this: Year | Count of new commitments | (What I'd like - count of new commitments to date) 1986 4 4 1987 22 26 1988 14 40 1989 1 41 I know that within a year you can do year to date, month to date etc, but I need to do it over multiple years. the mdx that gives me the first 2 columns is (really simple - but I don't know where to go from here): select [Measures]

ssas mdx line quantity divided by SUM

走远了吗. 提交于 2020-01-06 13:29:31
问题 How do I create the new column in MDX? The dimensions selected are not important. I just want the line amount / sum for the data selected. I am not an mdx expert... Current code below : CREATE MEMBER CURRENTCUBE.[Measures].[Weight] AS IIF([Measures].[Sales Line Amount AC Budget hidden] <> 0, Divide([Measures].[Sales Line Amount AC Budget hidden] ,AGGREGATE(Root(),[Measures].[Sales Line Amount AC Budget hidden])),NULL), VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Sales Forecast' ; Hi they are

how to get latest date in mdx?

微笑、不失礼 提交于 2020-01-06 04:46:04
问题 if i pass my mdx like this i am get what i am expecting.. With Set [TimeLimit] as '{([CurrDate].[All CurrDate].[2010].[Q3].[Jul].[2010-07-21])}' select NON EMPTY {[Measures].[Balance], [Measures].[Peso Equiv]} ON COLUMNS, NON EMPTY { [PARTICULARS].[All Particulars], [PARTICULARS].[All Particulars].[RESIDENTS], [PARTICULARS].[All Particulars].[NON-RESIDENTS] } ON ROWS from [depositlib_22] where ([TimeLimit])" Question?:- i dont want hardcode this part "[2010].[Q3].[Jul].[2010-07-21]",i need to

SSRS mdx report: dimenstion on columns outputs nulls if not selected on rows also

a 夏天 提交于 2020-01-06 02:16:13
问题 (this question continues thread "SSRS mdx report: use dimension on columns", answered by @whytheq ) This correct code was built in the previouse thread: WITH MEMBER [Measures].[Contacts] AS IIF([Sales_step].CURRENTMEMBER IS [Sales_step].&[contact], [Measures].[Qnt], null) MEMBER [Measures].[Clients] AS IIF([Sales_step].CURRENTMEMBER IS [Sales_step].&[client], [Measures].[Qnt], null) MEMBER [Measures].[Funded] AS IIF([Sales_step].CURRENTMEMBER IS [Sales_step].&[funded], [Measures].[Qnt], null)

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()+ "]