olap

OLAP Dimension structure

时光总嘲笑我的痴心妄想 提交于 2019-12-13 04:46:43
问题 I have Dimension "Customer". Each Customer can have some buisness units and some departmens. I should bild 2 hierarchies: Customer->Department and Customer->Buisness Unit. So, I also need to set key attribute. This is my question: What should be use as key attribute? May be I do this wrong? Could you help? 回答1: To define hierarchies, you should ask the following questions: If I group the departments, I have a consumer? If I group the business, I have a consumer? If I group the departments and

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].&

Advice for hand-written olap-like extractions from relational database

Deadly 提交于 2019-12-13 04:29:14
问题 We've implemented over the course of the years a series of web based reports summarizing historical business data (product sales, traffic, etc). The thing relies heavily on complex SQL queries, and the boss expects the results to be real time, but they need up to a minute to execute. The reports are customizable on a several dimensions. I've done some basic research, and it looks like what we need is some kind of OLAP (?), ETL(?), whatever. Is that true? Are we supposed to convert to a whole

Assigning a value to an icCube Event in Reporting

左心房为你撑大大i 提交于 2019-12-12 16:42:59
问题 I am using icCube 5.0 Reporting I want to assign the value of an Event to that returned by the icCube MDX function UserName()--sort of like @{eventname} = UserName(). Eventually, @{eventname:reportParm} will be sent to a launched report for use in a filter. Does anyone have any hints for me? 回答1: There is no clean way (already in todo list) For the time being there is no clean way. You've to create a Constant - not an event - in Configuration/Constants that you call for example ic3c-userName

Force VBA to wait until power pivot finishes refreshing

£可爱£侵袭症+ 提交于 2019-12-12 06:08:03
问题 I came across a very unusual error with VBA that I'm struggling with for two days now. I have a code that updates values to be shown in an Active-x dropdown list and then assigns them to the list using the ListFillRange property. Unfortunately every time I run it it generates an error. I presume the error is caused by running a piece of code on a power pivot that I'm refreshing before it completes the refresh. The error occurs in the 9th line of the lastRow function which selects a cell in

SSAS - OLE DB error in establishing a connection

偶尔善良 提交于 2019-12-12 04:47:04
问题 I have a problem when I try to process a SSAS project in Visual studio 2013 (sql server 2012) using Pubs data sample of Microsoft. Could anyone tell me how to resolv it? Thanks in advance! OLE DB error: OLE DB or ODBC error: A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL

Calculating Quartiles in Analysis Services

自作多情 提交于 2019-12-12 03:59:22
问题 I´m using MDX code to calculate quartile, , like in this blog: https://electrovoid.wordpress.com/2011/06/24/ssas-quartile/ That is what I´m doing: WITH SET OrderedData AS ORDER ( NONEMPTY ( [Dim Parameter].[id].[id] *[Dim Result].[Id].[Id].ALLMEMBERS, [Measures].[Value] ), [Measures].[Value], BASC ) MEMBER [Measures].[RowCount] AS COUNT (OrderedData) MEMBER [Measures].[i25] AS ( .25 * ( [RowCount] - 1 ) ) + 1 MEMBER [Measures].[i25Lo] AS FIX([i25]) - 1 MEMBER [Measures].[i25Rem] AS ([i25] -

How to take data from PivotTable cache?

荒凉一梦 提交于 2019-12-12 03:58:28
问题 I have lost the connection to source analytics service. However, I still have data in PivotTable's cache (I can see from tooltips). How to get that source data? I am using Office365 ** I cannot use show details since the pivot table has some filteres applied. And i cannot remove filters since it asks me to connect source. (And yes I have checked this thread but it didn't work for me: Recreate Source Data from PivotTable Cache. It gives 1004 error.) 回答1: The easiest way I can think of for a

MDX queries. How can to solve “IN” in “where” part

自古美人都是妖i 提交于 2019-12-12 02:08:18
问题 I have sql query and i need this query execute in olap cube . select count(distinct mi.id) from [MTD_DEV].[dbo].[MenuItemAttributes] as m inner join [dbo].[MenuItemOlds] as mi on mi.id = m.MenuItemId inner join [dbo].[RestaurantlistItems] as rl on rl.RestaurantId = mi.RestaurantId where m.AttributeId = 31 and rl.RestaurantListId = 69 and mi.PeriodId = 99 and m.MenuItemId in (select MenuItemId from [MTD_DEV].[dbo].[MenuItemAttributes] where AttributeId = 6 and i have working mdx query and I

Execution order of crossjoined hierarchies

佐手、 提交于 2019-12-12 01:50:04
问题 If I create a set of tuples via the following crossjoin which hierarchy is joined to which first? hierA * hierB * hierC If I know that the count of non empty members in A and B are significantly less than the count of members in C then should this influence the order? 回答1: It depends on the execution system used, i.e. how crossjoining on axis is optimized by compiler. Anyway, you will get real boost only if you first reduce cube size with subselect - it will prevent crossjoining non-matching