mdx

No such tuple on axis 0 error on iReport

余生长醉 提交于 2019-12-13 05:02:54
问题 How can I get measures value on iReport? select [Reg].[region].Children * { [measures].[mtot], [measures].[wtot] } on columns, [Title].[titlekhas].Children on rows from report1 There is my MDX query. I have try add fields on iReport. When I add the rows and cloumns with this expression it works <field name="Region" class="java.lang.String"> <fieldDescription><![CDATA[Columns[Reg][ListRegion]]]></fieldDescription> </field> <field name="Title" class="java.lang.String"> <fieldDescription><!

Calculation in SSAS Cube not working for zero data values

你说的曾经没有我的故事 提交于 2019-12-13 05:00:01
问题 I am working with a SSAS 2008 R2 cube and interrogating the data through Excel 2010. In the cube I have a calculation to conditionally format the data. The logic is if a measure contains a specific value for the fact being viewed, then the fact should be colored red, as follows: CALCULATE; SCOPE ( [Measures].[Data value] ); If([Fact Base].[Confidentiality Status].[Confidential]) Then Fore_Color(This) = 255 End If; END SCOPE; When I have a [Data value] of 0 (zero) the fore_color doesn't render

MDX - rewrite a query using scope

喜夏-厌秋 提交于 2019-12-13 04:58:31
问题 I have an MDX query IIF ( IsLeaf([PnL].[PnL_A].CurrentMember) , [Measures].[PnL - Plan] * [PnL].[Flag 5].CurrentMember.MemberValue ,Sum ( [PnL].[PnL_A].CurrentMember.Children ,[Measures].[PnL- Plan (signed)] ) ) What it does: The whole thing represents profit and loss. Unfortunately, it is constructed in a way that there are two columns: value of a profit or loss, and flag in the other column. So if the flag ( [PnL].[Flag 5] ) is set to -1 , the value ( [Measures].[PnL - Plan] ) is a loss, if

Slicing over a named set

心已入冬 提交于 2019-12-13 04:42:43
问题 This is a follow up question to this previous question I have the following working code: WITH SET NewIDs AS INTERSECT(NonEmpty([ID].Children, CROSSJOIN([Date].&[T-1], [Category].&[Old])) , NonEmpty([ID].Children, CROSSJOIN([Date].&[T], [Category].&[EOD])) ) SELECT NON EMPTY([Dim2].Children ) ON 0 , NON EMPTY([NewIDs] ) ON 1 FROM [MyCube] WHERE [Measures].[Value] However I would like to have another dimension on rows, not the ID (let's call it Dim1) I have tried the below, but it does not

How to always find the parent of a calculated member

99封情书 提交于 2019-12-13 04:39:11
问题 This seems pretty logical: WITH MEMBER [Date].[Date - Calendar Month].[Calendar Year].&[2013].[LastMth] AS IIF( Day(Now()) = 1, TAIL([Date].[Date - Calendar Month].[Calendar Month],2).Item(1), TAIL([Date].[Date - Calendar Month].[Calendar Month],2).Item(0) ) SELECT NON EMPTY { [Date].[Date - Calendar Month].[LastMth], [Date].[Date - Calendar Month].[LastMth].PARENT } ON COLUMNS, NON EMPTY [Measures].[BillableIncome] ON ROWS FROM [ourCube] I specify the parent of the calculated member in the

Apply RANK function to a set according to alphabetical order

杀马特。学长 韩版系。学妹 提交于 2019-12-13 04:35:22
问题 Is it possible to create a measure that produces the rank of a set according to their alphabetical order i.e. Aleen should be 1 .... Zebedie should be ranked 101 (set has 101 items) This does not work: MEMBER [Measures].[Alphabetic_Rank] AS RANK( [CustomerName].CurrentMember, ORDER( [CustomerName], [CustomerName], ASC ) ) EDIT A further example of trying to apply this is the following which also does not work: WITH SET [orderedSet] AS ORDER( [Operator].members, [Operator].currentmember.name,

MDX: generate 2 members 'old clients' & 'new cliends' and show sales stats for them

余生颓废 提交于 2019-12-13 04:31:55
问题 First of all, I need to split all clients in 2 categories: 'new client' - came in 2015 year 'old client' - came in 2000-2014 years To do this - I push them into unrelated dimension 'Calendar'. And it works fine (while pushing them to original [Client] dimension - would raize error, I've checked it). But then, after these calculated members are raized, I fail to get sales stats for them. Here is my code: WITH MEMBER [Calendar].[Year].[new clients] AS ([Calendar].[All], {[Client].[Year come].&

Convert MDX Query to SQL Query

被刻印的时光 ゝ 提交于 2019-12-13 04:09:20
问题 I am not able to convert MDX Query to SQL Query. Can anyone help me find any online converter maybe, or convert the code below?. I can't find one. As I'm new to MDX Query, I find hard time trying to convert to SQL Query and was wondering if there's some resource that does it in easier way? WITH SET [~ROWS_RRE Information_Reporting Period] AS {[RRE Information].[Reporting Period].&[7]} SET [~ROWS_Basic Claim Info_Data Provider] AS {[Basic Claim Info].[Data Provider].[Data Provider].Members}

CurrentMember (MDX) Ignores Slicer Dimension

∥☆過路亽.° 提交于 2019-12-13 04:00:08
问题 I am using the CurrentMember function in a role's CellData expression to restrict access to a cube via a specific dimension. This is working as expected with one exception. Even if the slicer imension is used to filter out data that the role is not entitled to see, the string '#N/A' is displayed in all cells. Only after including the dimension to which the role has restricted access in an axis are the cell's values displayed as expected. It appears to me as if the CurrentMember function is

Cumulative Sum/ Running Total | MDX

本秂侑毒 提交于 2019-12-13 03:21:50
问题 I have an SSAS Cube requirement (MDX) as below: I am trying to create a calculated measure “Cumulative Sum/ Running Total” with the combination of multiple dimensions (around 7 dimensions). In addition, the users will be using any dimensions that they want. For example, we have a Product, Program, SubProgram, ProgramStatus, SubProgramStatus, Customer, and Date. The users should be able to add the dimension’s attribute to the lowest level as well as they should be able to roll-up the data to a