mdx

How can I export my data from a SASS cube after creating a query?

倖福魔咒の 提交于 2019-12-11 14:57:33
问题 I can create my query in SSAS and execute, but I want to export the result to excel or a .csv file so that I can analyse it further. There doesn't seem to be an intuitive way to do this and PowerPivot is not able to provide what I want. 回答1: You can create a pivot table in Excel that is linked directly to your cube. This is shown e. g. in this video. Basically, you need to install the Analysis Services client on your computer (which will already be done in case you have the SSAS developer

How to Reload CDA and Mondrian cache in Pentaho CE 4.8?

拈花ヽ惹草 提交于 2019-12-11 14:43:40
问题 I'm currently stuck in some performance issue for my Dashboard. I've created a dashboard in Pentaho Community edition 4.8. For my charts, using the SQL and MDX (Mondrian) queries. My Problem is that, When I first time open my dashboards after clearing cda and Mondrian cache. It take 50 secs to load. But next time it took less then 10 secs. I know the method to clear CDA and Mondrain cache automatically. How to reload the CDA and Mondrian schema cache from back-end (with out opening the

MDX - Running Sum over months limited to an interval

依然范特西╮ 提交于 2019-12-11 14:38:06
问题 I have a query that after some sweating and some swearing works WITH MEMBER [Measures].[m_active] AS ([Measures].[CardCount], [Operation].[Code].[ACTIVATION]) MEMBER [Measures].[m_inactive] AS ([Measures].[CardCount], [Operation].[Code].[DEACTIVATION]) MEMBER [Measures].[p_active] AS SUM( [Calendar.YMD].[2016].[January]:[Calendar.YMD].CurrentMember, [Measures].[m_active] ) MEMBER [Measures].[p_inactive] AS SUM( [Calendar.YMD].[2016].[January]:[Calendar.YMD].CurrentMember, [Measures].[m

SSAS Calculated Member Aggregation Issue

与世无争的帅哥 提交于 2019-12-11 13:48:46
问题 I have a very simple Calculated Member: CREATE MEMBER CURRENTCUBE.[Account].[Account Parent].&[NA_1].[Beginning Subscribers] AS -[Account].[Account Parent].&[Beginning_Subscribers] However, the Parent doesn't seem to calculate or simply ignores the Calculated member in Excel. See below: It should look like this: Account Dimension This is the MDX on the Excel side: Select /* Grid - 'Sheet1'!$A$1 */ Non Empty {[Calendar Month].[Calendar Month Parent].&[2018-11],[Calendar Month].[Calendar Month

How to create a period over period Measurement in MDX?

旧街凉风 提交于 2019-12-11 13:39:02
问题 I'm fairly new to MDX queries, and I'm having trouble understanding how I might compute a period over period measurement. For example say I have a metric like revenue, and I'm breaking that revenue out over time say on a Month to Month basis. How would I calculate the change from Month to Month of that revenue as a percent? Now let's say I want to calculate that generically over any period, quarter to quarter, year to year, month to month, or even compare it with identical periods from prior

Move back x members in same hierarchy

删除回忆录丶 提交于 2019-12-11 13:08:02
问题 Is there a function which moves back a set number of members in a specified hierarchy's level? It would be something like the following if I want to move back two members: SOMEFUNCTION([someMember], [specifiedLevel],-2) So an example would be: WITH MEMBER [Date].[Date - Calendar Month].[2MthPrev] AS SOMEFUNCTION( CLOSINGPERIOD([Date].[Date - Calendar Month].[Calendar Month]), [Date].[Date - Calendar Month].[Calendar Month], -2 ) 回答1: There are a few different functions that you could try out:

How to query Date field in MDX with and without aggregate group

不问归期 提交于 2019-12-11 13:07:28
问题 I have a seemingly simple requirement to create a query of price data that will return four sets of price data for different dates: The lowest date of the range The highest date of the range The aggregate sum for the entire range The closest I have is the following query: WITH set [Range] as {[Effective Date].[Date].&[2015-12-01T00:00:00] : [Effective Date].[Date].&[2015-12-31T00:00:00]} select NON EMPTY{ filter([Effective Date].[Date].&[2015-12-01T00:00:00], [Measures].[Plan Price]), filter(

SSRS Report Iterating Over Multiple Parameters

对着背影说爱祢 提交于 2019-12-11 12:57:37
问题 I have a report that has multiple cascading parameters, which works quite well out of Report Manager. I would like to create a version that will take a single parameter, and iterate over every parameter down the line. As an example, suppose parameters such as state, county and city. If we pass in a state (ie Florida) the report would have multiple pages for each county, each page consisting of one city in that county. The object is to email monthly reports to stakeholders in each state, with

MDX Get UserName Where UserID

自作多情 提交于 2019-12-11 12:51:48
问题 Here is my MDX query below: SELECT { [Measures].[Amt Exrate] ,[Measures].[Comm Exrate] } ON COLUMNS ,NonEmpty([AccSetting].[User N].[User N] * [Cur Log].[Cur Log ID].Children) ON ROWS FROM [report] WHERE [AccSetting].[Ag ID].&[113]; http://i.stack.imgur.com/0yDHg.png UserID =113 is a hierarchies and a want to get the userN of it I want to return exactly UserName of UserID =113 on Rows. but I'm not sure how to do it. 回答1: If you just want the name and nothing else then this should do it:

Is there a performance gain using + rather than Aggregate(Union

走远了吗. 提交于 2019-12-11 12:36:02
问题 I was looking at this post in MSDN: http://msdn.microsoft.com/en-us/library/ms145493.aspx It states that + and Union are equivalent ... not exactly in the following as Aggregate needs to be applied if I choose to use Union . It's more readable but is there any performance gain in choosing + over Aggregate(Union ? WITH MEMBER [Employee].[Employee].[blah] AS [Employee].[Employee].[Amy E. Alberts] + [Employee].[Employee].[Garrett R. Vargas] MEMBER [Employee].[Employee].[blahblah] AS Aggregate (