olap

column names for an ad-hoc sql

懵懂的女人 提交于 2019-12-11 07:45:16
问题 My programm will get an input of a valid sql, and should return column names for the sql. And I want to do this with out executing the sql statement at all. I am looking for a java solution. My dbms is oracle optimized for olap, and the tables are so big that result set restriction does not working. Actually execution time is not acceptable for my case. it takes longer than a minute 回答1: Prepare the query, but rather than executing it, just call getMetaData on the prepared statement. Provided

Fast dynamic named set calculation

时光总嘲笑我的痴心妄想 提交于 2019-12-11 06:23:24
问题 I have a long complex query with a lot of calculations and conditions but the main structure looks like this: WITH MEMBER [Id1] AS [Level].[Level1].CurrentMember.Member_Key MEMBER [Id2] AS [Level].[Level2].CurrentMember.Member_Key MEMBER [Level].[Level1].[FirstSet] AS NULL MEMBER [Level].[Level1].[SecondSet] AS NULL SET [Set 1] AS {some processed set members} SET [Set 2] AS {some other processed set members} SET [Common CrossJoin Set] AS [Level].[Level2].Members MEMBER [Calculated Measure 1]

SpagoBI OLAP report passing optional parameter

不羁的心 提交于 2019-12-11 06:05:52
问题 Helo. Today is my another fight day with OLAP raport with optional parameter. I have problem with MDX query. I wrote it like this: select NON EMPTY {{[Measures].[VALUE]}} ON COLUMNS, NON EMPTY { IIF(ISEMPTY([CUSTOMER].[${param}]) //CHECKING IF PARAMETER IS EMPTY ,{[CUSTOMER].[COUNTRY].Members}, {[CUSTOMER].[${param}]} ) }ON ROWS from [TRANSACTIONS] ${param} is my optional parameter for [CUSTOMER].[COUNTRY] . I unchecked "required" check button for my parameter, so OLAP should have all [VALUE]

OLAP Error while Processing

大兔子大兔子 提交于 2019-12-11 05:21:51
问题 I am new to OLAP, and figured out how to make a cube and process it. However, when i play with it too much, i eventually come up against this error: Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_v_MYEntities, Column: uniqueId, Value: 2548. Errors in the OLAP storage engine: The record was skipped because the attribute key was not found. Attribute: Unique Id of Dimension: v MY Entities from Database: Test Cube New, Cube: MYdm MyApp - Views, Measure Group: v

MDX Statement Returning Nothing

北城余情 提交于 2019-12-11 04:55:19
问题 I have a Dimension called ExDimension with 1 single attribute called ExAttribute . I currently have 2 members in that dimension along with the unknownmember with data for it. When I run the following MDX, I get nothing back and I don't understand why. Can anyone give me a direction on where to look? SELECT { [ExDimension].[ExAttribute].CHILDREN } DIMENSION PROPERTIES [ExDimension].[ExAttribute].[Attribute Code], [ExDimension].[ExAttribute].[Company], [ExDimension].[ExAttribute].[Is Current],

how to set PivotField.HiddenItemsList property's value if CubeField.Orientation = xlPageField

吃可爱长大的小学妹 提交于 2019-12-11 04:38:39
问题 The task is to automate OLAP pivot table data filtering. There are some items in pivot field named sPivotFieldName I need to exclude. The code below works pretty fine. With Worksheets(sWorksheetName).PivotTables(sPivotTableName) With .CubeFields(sCubeFieldName) .Orientation = xlRowField .IncludeNewItemsInFilter = True End With .PivotFields(sPivotFieldName).HiddenItemsList = vSomeItemsToExclude End With But the problem appears when I'm trying to change cube field ".Orientation" property's

OLAP cube design reference for a IT support business [closed]

徘徊边缘 提交于 2019-12-11 03:57:41
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . We are designing a dimensional model for an IT support business. There are cases (some call them tickets or incidents) with different statuses (feels like an SCD type II dimension) We also need to consider the count of cases and SLA time duration as measures. Before going into

SSAS cubes as OData feed

微笑、不失礼 提交于 2019-12-11 03:57:19
问题 As Excel PowerPivot supports Odata feeds, I'm looking for some technical solution to expose SSAS cubes as OData feeds. Are there any known ways/frameworks of achieving this? EDIT: I need to be able to slice and dice data coming from the cubes through a client application (in this case Excel). OData feeds as a data source is a requirement as well. SSRS report exposed as OData is not an option, since it is rigid and has a consistent form. 回答1: I would use Reporting Services (SSRS). SSRS is

SSRS mdx report: use dimension on columns

核能气质少年 提交于 2019-12-11 03:07:18
问题 This simple mdx query do work in SSMS: SELECT CrossJoin({[Measures].[Qnt]}, {[Sales_step].CHILDREN}) ON COLUMNS, [City] ON ROWS FROM [SALES_PIPE] But it fails to run within Visual Studio for rdl report. An error accures: The query cannot be prepared: The query must have at least one axis. The first axis of the query should not have multiple hierarchies, nor should it reference any dimension other than the Measures dimension.. Parameter name: mdx (MDXQueryGenerator) I've found another syntax

How to get back aggregate values across 2 dimensions using Python Cubes?

偶尔善良 提交于 2019-12-10 21:19:08
问题 Situation Using Python 3, Django 1.9, Cubes 1.1, and Postgres 9.5. These are my datatables in pictorial form: The same in text format: Store table ------------------------------ | id | code | address | |-----|------|---------------| | 1 | S1 | Kings Row | | 2 | S2 | Queens Street | | 3 | S3 | Jacks Place | | 4 | S4 | Diamonds Alley| | 5 | S5 | Hearts Road | ------------------------------ Product table ------------------------------ | id | code | name | |-----|------|---------------| | 1 | P1