Questions tagged [cube]

Cube or OLAP cube, is a method of storing data in a multidimensional form, generally for reporting purposes. In OLAP cubes, data (measures) are categorized by dimensions. OLAP cubes are often pre-summarized across dimensions to drastically improve query time over relational databases. Used on the SQL server family of products.

An OLAP cube or just a cube, is a method of storing data in a multidimensional form, generally for reporting purposes. In OLAP cubes, data (measures) are categorized by dimensions. OLAP cubes are often pre-summarized across dimensions to drastically improve query time over relational databases. The query language used to interact and perform tasks with OLAP cubes is multidimensional expressions (MDX). The MDX language has been adopted by many vendors of multidimensional databases.

Although it stores data like a relational database does, an OLAP cube is structured very differently. OLAP cubes, however, are used by business users for advanced analytics.

Operations

  • Slicing - the act of picking a rectangular subset of a cube by choosing a single value for one of its dimensions, creating a new cube with one fewer dimension.
  • Dicing - producing a subcube by allowing the analyst to pick specific values of multiple dimensions.
  • Drill-up and drill-down - allowing the user to navigate among levels of data ranging from the most summarized (up) to the most detailed (down).
  • Roll-up: A roll-up involves summarizing the data along a dimension.
  • Pivoting - allows an analyst to rotate the cube in space to see its various faces.
1326 questions
4
votes
2 answers

Distinct count of column F1 based on aggregation of column F2 groupped by column F1

I have a table Table1: F1 | F2 ------- a | 1 a | 2 b | 1 c | 2 I would like to define a measure MyMeasure that would allow me to generate a table: F2 | Count ---------- 1 | 2 2 | 1 Where the values in Count would come from CUBEVALUE function…
zaptask
  • 687
  • 1
  • 8
  • 18
4
votes
1 answer

Connect to an OLAP Cube using Python on LINUX

I know how to connect to a MS OLAP cube using Python on Windows - well, at least one method :-). Usually I use the win32py package and invoke a .COM object to connect: import win32com.client connection =…
Lodrik
  • 629
  • 9
  • 19
4
votes
2 answers

SSAS dependent FormatString to display different unit of values

I'm working on a SSAS cube for contracts for an energy company. One measure is "Contract volume". They have both electricity and gas contracts. So the unit of contract volume is either km3 or MWh. The measure "Contract volume" should preferably not…
Martin Carlsson
  • 461
  • 2
  • 6
  • 18
4
votes
3 answers

SSAS measure value aggregate error

I have a Fact table with the following rows When I process my cube I want results like this : However when procession my cube I get the following results: I have fee rate (hourly rate) as a measure but it is summing the values when LineID is the…
evoandy
  • 630
  • 4
  • 16
  • 31
4
votes
1 answer

SSAS: change boolean to 'yes' or 'no'

i'm new to Analysis Services. I have created a dimension on a boolean column. Now users want to have 'yes' and 'no' instead of 'true' and 'false' as result. Thanks.
Tim Schmelter
  • 450,073
  • 74
  • 686
  • 939
4
votes
1 answer

Multiple-filters real-time implementation with MySQL

I'm developing a PHP application for real-estate portal, and I have MySQL database with Properties table. This table has about 500,000 rows and about 20 columns for property features. Assume that each feature is an integer. Examples of…
4
votes
1 answer

Linking date dimension from two different cubes

I have two cubes Computer Engineering Environmental Science. Both cubes have a same Date dimension. I have two scorecards, each for Computer Engineering and Environmental Science as shown in following figure. I would like to have a result as shown…
Merin Nakarmi
  • 3,148
  • 3
  • 35
  • 42
4
votes
1 answer

SSAS Tabular / PowerPivot Date Filters

I am trying to design a SSAS 2014 Tabular Cube that has easy to use custom date filters. For example, I want users (in excel for example) to be able to select a custom date range such as "This Month", "Last Month", "This Year", "Last 12 Months",…
cmn
  • 93
  • 2
  • 8
4
votes
1 answer

Scala Find the smallest cube for which exactly five permutations of its digits are cube

I came across this awesome problem and tried to solve it in scala in order to learn the language. The short explanation of the problem is in the title and here's a longer explanation http://www.mathblog.dk/project-euler-62-cube-five-permutations/. …
natecraft1
  • 2,737
  • 9
  • 36
  • 56
4
votes
1 answer

How to reshape a cube to a matrix armadillo

do you know if with Armadillo library it is possible to reshape a Cube to a matrix, like in matlab, with a single instruction: A = reshape(A,M*N,D); , where A was and now it is thanks a lot
4
votes
1 answer

creation of dimension and fact table through source tables

I have imported my flatfiles to SQL Server 2012 and created few tables (source tables). I need to build a cube in SSAS. But I need to make "dimension" and "fact" tables it seems with proper PK/FK relations. Could someone tell me whether I need to…
user2861497
  • 41
  • 1
  • 3
4
votes
1 answer

MDX - Dynamically Select Last Date among the dates Filtered on the Report

I have a Measure - 'TEST' which is SUM across all the Dimensions except across DATE Dimension for which we need the value on the Last Day. I created the Measure with an aggregate as 'SUM' and created a Scope statement to handle the exception …
Talasila
  • 161
  • 6
4
votes
3 answers

Guidelines for determining the maximum frequency to process an SSAS cube?

We have an Analysis Services cube that needs to be as real-time as possible. It's a relatively small cube that currently takes a couple of seconds to process. Are there any guidelines for this? I'm curious what other folks are doing. Also, what…
Winston Fassett
  • 3,500
  • 3
  • 36
  • 29
4
votes
1 answer

Create cube calculation in SSAS using MDX statement to allocate monthly target to daily level

I have a cube fact table for targets, the targets are at the monthly level (Jan = 300, Feb = 450, Mar = 350 etc.) This is joined to the date dimension in my cube at using month as the join, however the dimensions grain is at the day level. What I…
user1896017
  • 83
  • 10
4
votes
5 answers

SSAS dimensions hierarchies: A duplicate attribute key has been found when processing

I am completely new to SSAS an I am trying to deploy a simple cube with only one dimention comprised of multiples attributes. What I did already was to create a DSV from my data source and then I created a dimension from my fact table. It seams that…
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107