mdx

How to display multiple dimensions on rows in MDX query?

。_饼干妹妹 提交于 2021-02-17 05:32:26
问题 I have measure called Sales KG in my cube and two dimensions: Groups and Formats . Is there anyway to display last ones in single row? I have this query: select [Measures].[Sales KG] on Columns, [Formats].[Format_TT].[Format_TT] on Rows from [Model] and it's working, but when I try to follow examples from Internet and turn it into: select [Measures].[Sales KG] on Columns, { ([Formats].[Format_TT].[Format_TT]), ([Groups].[Group_Name].[Group_Name]) } on Rows from [Model] Everything ends with

Configuring an MDX query on SSIS

血红的双手。 提交于 2021-02-16 16:27:33
问题 Hi I am having troubles configuring the SSIS task to run an MDX query. The parse works fine but it doesn't allow me to display the different columns of the query to map it Here is the query i used: SELECT [Measures].[# Consumers] ON 0, [Company].[Company Country Code].[Company Country Code].MEMBERS ON 1 FROM _CDM The Error thrown is: No Column information was returned by the SQL Command Error snapshot 回答1: You can use MDX Select as a Source in Data Transformation Task. Two important notes:

MDX: Exclude a member that share same dimension property of a measure

十年热恋 提交于 2021-02-11 16:20:17
问题 Scenario: I have a measure( Sum ), and I need in all situations the result of this sum excluding the last element registered in the fact table respecting the user/day filter. These elements share the same attributes in the other dimensions. Example: Measure of UserA in fact table in 2019/10/29: RegisterA: 5 RegisterB: 11 RegisterC: 13 RegisterD: 7 ( RegisterD will be not included in the result that the system user will see. Final result: 29 ) Example: Measure of UserB in fact table between

MDX: Exclude a member that share same dimension property of a measure

你离开我真会死。 提交于 2021-02-11 16:18:35
问题 Scenario: I have a measure( Sum ), and I need in all situations the result of this sum excluding the last element registered in the fact table respecting the user/day filter. These elements share the same attributes in the other dimensions. Example: Measure of UserA in fact table in 2019/10/29: RegisterA: 5 RegisterB: 11 RegisterC: 13 RegisterD: 7 ( RegisterD will be not included in the result that the system user will see. Final result: 29 ) Example: Measure of UserB in fact table between

transpose mdx results => values are lost

假如想象 提交于 2021-02-11 14:17:40
问题 I created an MDX query with some named calculus (using 'WITH' keyword). The last part is: SELECT {[Measures].[PCT0p02],[Measures].[PCT0p2],[Measures].[PCT0p5],[Measures].[PCT0p8],[Measures].[PCT0p98]} on 0 FROM [My cube] It gives me this: I would like to transpose these results in order to feed an SSRS report. But write SELECT { } on 0, { [Measures].[PCT0p02],[Measures].[PCT0p2],[Measures].[PCT0p5],[Measures].[PCT0p8],[Measures]. [PCT0p98] } on 1 FROM [My cube] returns Please tell me how not

Ever a need for CurrentMember.Item(0)

白昼怎懂夜的黑 提交于 2021-02-10 16:59:37
问题 The custom measure in the following is taken from the book MDX Cookbook (Tomislav Piasevoli): WITH MEMBER [Internet Sales PP] AS Sum ( Generate ( { [Date].[Calendar].[Date].&[20080105] : [Date].[Calendar].[Date].&[20080125] } ,{ ParallelPeriod ( [Date].[Calendar].[Calendar Year] ,1 ,[Date].[Calendar].CurrentMember.Item(0) ) } ) ,[Measures].[Internet Sales Amount] ) SELECT { [Measures].[Internet Sales Amount] ,[Internet Sales PP] } ON 0 ,[Product].[Color].MEMBERS ON 1 FROM [Adventure Works];

CUBESET() function in Excel with Multiple criteria

巧了我就是萌 提交于 2021-02-10 13:57:13
问题 I'm trying to create a CUBESET function in Excel, but I don't know how to filter it using multiple criteria within the same dimension . This is what I have so far working with one criteria. Example 1: =CUBESET("ThisWorkbookDataModel","{[Facebook].[Bucket (C)].[All].[DPA]*[Facebook].[AudienceType (C)].children}","Bucket") Example 2: with date in cell C3 =CUBESET("ThisWorkbookDataModel","{[Facebook].[Week End].[All].["&TEXT($C$3,"m/d/yyyy")&"]*[Facebook].[Campaign (C)].children}","Campaign

testing mdx query with parameters in SSAS

杀马特。学长 韩版系。学妹 提交于 2021-02-10 05:48:20
问题 I'd like to test a MDX query in SSAS. I did the following steps until now. I opened the SQL Profiler and ran the SSRS report I found the query I needed (with parameter values) and selected it sql profiler I pasted the code in ssas Since my SSRS MDX query used StrToMember and StrToSet functions, I surrounded the parameter values with quotes, e.g. “[Measures].[Return On Average Assets]”. The query SELECT { [Measures].[Broj Pristapi] ,[Measures].[Broj Nalozi] } ON 0 , Except ( StrToSet("[Dim

Excel CUBEVALUE & CUBESET count records greater than a number

北慕城南 提交于 2021-02-08 09:16:20
问题 I am writing a series of queries to my workbook's data model to retrieve the number of documents by Category_Name which are greater than a certain numbers of days old (e.g. >=650 ). Currently this formula (entered in celll C3 ) returns the correct number for a single Days Old value ( =3 ). =CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Count of Docs]", "[EDD_Report].[Category_Name].&["&$B2&"]", "[EDD_Report_10-01-18].[Days Old].[34]") How do I return the number of documents for Days Old

Excel CUBEVALUE & CUBESET count records greater than a number

雨燕双飞 提交于 2021-02-08 09:16:15
问题 I am writing a series of queries to my workbook's data model to retrieve the number of documents by Category_Name which are greater than a certain numbers of days old (e.g. >=650 ). Currently this formula (entered in celll C3 ) returns the correct number for a single Days Old value ( =3 ). =CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Count of Docs]", "[EDD_Report].[Category_Name].&["&$B2&"]", "[EDD_Report_10-01-18].[Days Old].[34]") How do I return the number of documents for Days Old