How to Query SSAS Cube Size Including Each Fact and Dimension Sizes?
Microsoft recommends: “In general, the number of records per partition should not exceed 20 million. In addition, the size of a partition should not exceed 250 MB.” http://blogs.msdn.com/b/sqlcat/archive/2009/03/13/analysis-services-partition-size.aspx
I am not able to find any queries that would show how many records/size in MB I have per partition?
Please advise.
To see how big your partitions are simply open Visual Studio/BIDS and go to
File --> Open --> Analysis Services Database ...
Now navigate to your cube and to your partitions and you will see some additional columns showing Size of each partition which are only available if you connect to an online-database (opposed to offline development)
The RowCount is a bit more tricky. The easiest thing would be to use BIDS Helper and update the estimated counts:
https://bidshelper.codeplex.com/wikipage?title=Update%20Estimated%20Counts
but be aware, this might take some time as it is querying all relational tables again!
regarding the 250MB/20M rule: this is a just a guideline and the actual sizes depend on your data and your requirements
hth,
gerhard
Gerhard Brueckl
blogging @ http://blog.gbrueckl.at
working @ http://www.pmOne.com
Similar Messages
-
How to find out Cube Size (Step by step process)
Hi all,
Can any body tell me How can i find out the Cube size ?
Thanks in advance.
Vaibhav A.Hi,
try Tcode DB02
and
A simplified estimation of disk space for the BW can be obtained by using the following formula:
For each cube:
Size in bytes =
(n + 3) x 10 bytes + (m x 17 bytes) *
http:// rows of initial load + rows of periodic load * no. of periods
n = number of dimensions
m = number of key figures
For more details please read the following:
Estimating an InfoCube
When estimating the size of an InfoCube, tables like fact and dimension tables are considered.
However, the size of the fact table is the most important, since in most cases it will be 80-90% of the
total storage requirement for the InfoCube.
When estimating the fact table size consider the effect of compression depending on how many
records with identical dimension keys will be loaded.
The amount of data stored in the PSA and ODS has a significant impact on the disk space required.
If data is stored in the PSA beyond a simply temporary basis, it could be possible that more than 50%
of total disk space will be allocated for this purpose.
Dimension Tables
u2022 Identify all dimension tables for this InfoCube.
u2022 The size and number of records need to be estimated for a dimension table record. The size of
one record can be calculated by summing the number of characteristics in the dimension table at
10 bytes each. Also, add 10 bytes for the key of the dimension table.
u2022 Estimate the number of records in the dimension table.
u2022 Adjust the expected number of records in the dimension table by expected growth.
u2022 Multiply the adjusted record count by the expected size of the dimension table record to obtain
the estimated size of the dimension table.
Fact Tables
u2022 Count the number of key figures the table will contain, assuming a key figure requires 17 bytes.
u2022 Every dimension table requires a foreign key in the fact table, so add 6 bytes for each key. Donu2018t
forget the three standard dimensions.
u2022 Estimate the number of records in the fact table.
u2022 Adjust the expected number of records in the fact table by expected growth.
u2022 Multiply the adjusted record count by the expected size of the fact table record to obtain the
estimated size of the fact table.
Regards,
Marasa. -
How to enhance the cube to include 0CS_TRN_QTY
Hi Gurus
In 2004S what are the steps to enhance the field, please help me.
How to enhance the cube to include 0CS_TRN_QTY, this field is coming from GL Totals table? this is new table included to 2004S.
please help me
Thanks
lalitHi Lalit,
1) Go to Rsa6 and select the DS that belongs to your particular cube , and double click on it and note down the ES name .It is
2) Go to Se11 and keep the ES name at DATATYPE and clcik on Display. and then Click on Append structure Button.
3) Give the techinica name to AS in the immedaite screen and then give description in other screen and enter the zzfields that you want to add. Finally activate the Append Structure.
4) aggin goto RSA6 and enter into change mode for the DS , and then remove tick mark for newly added fields aginst Hide only .
5) Replicate the DS into BIW.
6) give th ccoding for these newly added fields in CMOD.
7) in CMOD , you need to use already existing project. If there is no project existing,then create new one . While creating take RSAP0001 as Enhance ment assignement.
8) you have to code the ABAP lines in EXIT_SAPLRSAP_001 component and in the include ZXRSAU01.
9) Donot forget the activation of Project and include after every modifications.
Regards,
Lakshman.G -
How to query a cube using SQL ?
Hi I have a MOLAP cube say CubeA with dimensionA having Attribute A1 and dimensionB having attribute B1
the measure of cube is M1.
Any idea how i can query the cube using SQL dislaying both the dimensions with the measure interlinking them.
I just need a general overview of how to sql query a cube .. I have the dimensions and sttributes and name of the cube but i ineed to know how to query it... I was given an example
SELECT
t.time_long_description,
p.product_long_description,
c.customer_long_description,
f.sales,
f.sales_ytd
FROM
time_calendar_view t,
product_std_view p,
customer_std_view c,
sales_cube c
WHERE
t.dim_key = f.time
AND p.dim_key = f.product
AND c.dim_key = f.customer
AND t.level_name = 'CALENDAR QUARTER'
AND p.level_name = 'BRAND'
AND c.level_name = 'STATE';
but i cant understand it.. i cant figure out what are the dimensions and where are the attributes...
Any idea would great...There's a nice tutorial here: http://st-curriculum.oracle.com/obe/db/11g/r1/olap/cube/querycubes.htm
Here are a few basics. Note that the link between the dimensions is the join between the dimension or hierarchy views and the cube.
* The primary key to every dimension and hierarchy view is DIM_KEY.
* The primary key to the fact table is dim1, dim2, dim3, so all joins are between dim_keys and dim1, dim2, etc.
* Dimension, hierarchy and cube views contain rows for both leaf (detail) and summary rows (that means cubes can return very, very large numbers of rows is you aren't careful)
* You typically want to query for the aggregate level data rather than use SUM ... GROUP BY. Let the cube do the work and let it manage calculations.
* Dimension views contain rows for all dimension member. hierarchy views contain rows for only members of the hierarchy.
* You typically select one of the long or short description columns to display data within an application.
Here's a commented version of your query:
SELECT
t.time_long_description, -- long descriptions
p.product_long_description,
c.customer_long_description,
f.sales, --measures
f.sales_ytd
FROM
time_calendar_view t, --hierarchy views
product_std_view p,
customer_std_view c,
sales_cube c --cube view
WHERE
t.dim_key = f.time ; -- joins between hierarchy and cube views
AND p.dim_key = f.product
AND c.dim_key = f.customer
AND t.level_name = 'CALENDAR QUARTER' -- Filters to ask for data at the quarter
AND p.level_name = 'BRAND' -- brand
AND c.level_name = 'STATE'; -- and state levels.
You want to have a filter on every dimension to avoid return all rows in the fact table for that dimension (remember, the cube contains summary rows). If you want to drop a dimension from a query (e.g., you don't want product in the query, intending for the query to be the aggregate of all products), filter to an all/total level.
e.g.,
and p.level_name = 'ALL PRODUCTS'
or
and p.long_description = 'All Products'
There are many variation of this query, but if you understand the basics you'll work your way there.
And, never do a select count(*) from a cube. Doing so will select the entire cube, detail and summary data. -
How to create a cube/ods/infoobjects etc..and also why to create the same
Dear Friends
how to create a cube/ods/infoobjects etc..and also why to create the same objects.
thanks & Regards
RamanaHi Friend,
Creating Infoobjects
1. Go to RSA1 -> Modelling tab.
2. Click on Infobjects.
3. Create a new Infoarea.
4. Now create Infoobject Catalog for Characterstics and Key Figures.
5. Now create Char Infoobject under Char Catalog and Key figure Infoobject under Key Figure catalog.
Creating Cubes:
1. Right click the info area and choose create info cube.
2. Select the type of cube you wish to create and comnfirm your selections.
3. The next screen is where you actually define the cube.
4. Now you will notice the difference.
5. Place your cursur on key fig and right click and chose infio object direct input; chose your key fig for the cube.
6. Similarly for the dimension; right click the dimension and chose inbfo object direct input, chose your chars and out them in dimension.
7. Activate the cube.
Creating a ODS is also the same.(in step 1 choose create ODS)
Creating Multicube/Multiprovider
1. Right click the info area - chose create multi provider.
2. select the cubes , DSOs, info objects that you need for the multi provider.
3. On the right side of the screen, you will see all the objects that you selected and open the key fig and dimension and drag the ones you need to define the multi provider.
4. Identify the chars and key figs.
5. Acvitate the mullti provider.
Why we create them ?
Infobjects : They are fields in R/3. As we require fields in R/3 tables we require infoobjects in BI.
ODS : This actually is like a table in R/3.
Cube : This contain the Key figures.(e.g Sales quantity, Amount etc)
Hope it helps.
Regards
Hemant Khemani -
DWH: how do you analyze fact and dimension tables
Hi,
I was wondering how you analyze your fact and dimension tables.
Our fact table is partitioned per month. Each partition contains 4M rows and is 270 MB large. We are using 9 dimensions, 6 have about 50'000 rows (2MB), 1 about 1M rows (50MB) and 2 about 3M rows (200MB). All tables are compressed. The version of Oracle we are using is 9.2.0.5.
What I was wondering is how you would, using dbms_stats, analyze the fact and dimension tables. Which percentage would you analyze? On which column would you build histograms?nope, but i could copy-paste the URL or I could copy-paste the entire thread from the other forum. Id did the one that made more sense to me.
-
How to design fact and dimension tables
Hi Team,
Please provide me some useful links!!
I have a Parent & Child table each has around 8 Million records (1 to many relation). These two tables need relation with many other master tables to generate any report.
I want to desing a fact and dimension(s) for this parent & Child tables.
Please help me what are the things I have to keep in mind when desingning datawarehouse fact and dimension tables?
Thanks,
AliHi, any update on this?
-
How to have fact and dimension which are not joined in same report
Hi All,
suppose we have 2 dimensions and 1 of them is joined to fact but we want to pull both these dimensions along with fact and fact column shows null but we dont want that .how can we have 2nd dimension which is not joined to fact in the same report .Actually i have a column called equipment schedueled time and it can be shown only with equipment dimension but I want to pull both equipment,geography and equipment scheduled time in report if I do it now it shows equipment scheduled time as null because its not joined with geography dimension.I want even if the geography dimension exists it should show the value of equipment scheduled time .
Can someone please help me.
Thanks in AdvanceHi ,
Can you please tell me what are fact and dimension tables of your requirement.If you want display the data from 2 dims and a fact table ,you have to establish the joins between facts and dimensions.
mark if helpful/correct...
thanks,
prassu -
How to design many to many relationship in the fact and dimension
There is a problem in my project what is the subject.And i wanna know how to implement in owb.I use the warehouse builder 10. Thanks.
You may design and load whatever db model you want to.
But If you set a unique key, you may find some integrity issues. I wouldn't do a many to many relationship between facts and dimensions. This could cause you lots of headaches when users start to submit queries using this tables. You'll probably face performance issues.
Regards,
Marcos -
Need a document about how to move the fact and dimension table's to different server's
Hello Experts,
I need a detailed doc on how to move the fact and dimension tables to different server's.Please help me out from this
Thanks in advance....You still haven't told anyone what products besides Essbase you are using, without which this is an impossible question to answer.
https://forums.oracle.com/thread/2585515
https://forums.oracle.com/thread/2585171
Are you connecting to these tables from Essbase with a load rule / ODBC? Using Studio? Using Integration Services? Any Drill-Through reporting set up?
This may sound harsh, but if you truly don't know how to answer any of these questions you should probably not be anywhere near this task... -
How to read ssas cube and role from Excel vba
Hi,
I want to read all roles and cubes in SSAS Db from Excel Vba.
1. First i want to read all the roles which was assigned to me
2. based on the role, i have to read all cube name
Please help me to
accomplish this task.Hi Jack,
In Analysis Services, Each role contains members, by Windows username or by Windows group, and permissions (read, process, administrator). If the user has the permission to access SSAS database, then the account was contained in one or more roles. When connect
to SSAS database, we need to use an account to log on it, and SSAS will list all the cubes' name based on the role automatically.
Reference
Using Excel to interact with a SSAS cube
Regards,
Charlie Liao
TechNet Community Support -
How to query the tablespace size increment speed?
Hello,
Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
so could you please give us a guide thanks!RLUO wrote:
Hello,
Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
so could you please give us a guide thanks!Hi, there good way is using DBMS_SPACE.OBJECT_GROWTH_TREND as Rajesh mentioned that.But also you can use some AWR views to getting this information.Seee below link.
tablespaces' growth trend -
How to create ssas cube by using MySQL Database
please tell me step by step process to create ssas cube by using MySQL database in my system, i have Sqlserver 2008 enterprise edition and MySql5.0
There is an OLEDB provider for MySQL which you can get from here
https://cherrycitysoftware.com/ccs/Providers/ProvMySQL.aspx otherwise you can also use SSIS to push the data straight into the Analysis Services database without needing to stage it in SQL Server. Also, as you can load data into AS using XMLA you could
also write your own loader to extract data using ODBC and push it into AS using XMLA, essentially what I suspect SSIS does. However those latter solutions don't allow you to create a database on top of MySQL because you need an OLEDB (or .net) provider for
that.
In the simplest case, install the OLEDB provider and then in AS create a Data Source connection using that provider. Once you have done that you should be able to create a Data Source View using that connection enabling you to import the schema definitions
for the tables/views in the MySQL database. From there you build dimensions and cubes etc. about which there is plenty of information on the web.
http://bi-logger.blogspot.com/ -
I am getting married and I want to stay organized. I have a spread sheet for my guest list. It is 3 columns/lists (my family, his family, and friends). How do I make a running total of each list and a fourth total of all of them combined?
Thanks so much!!!!If I understand your problem you want to keep a list for the bride, the groom and friends as well as a total of all guests.
The total is the easiest. If you have the other three numbers then you can use the function SUM() to add those three together.
The rest of the problem is solved by assumeing:
1) the lists are in columns
2) the header does not count in the total
taking the difference of the total rows and the blank rows minus 1 will give you the total guest names in the a column.
The contents of cell:
C2 =ROWS(Bride)-COUNTBLANK(Bride)-1
C3=ROWS(Groom)-COUNTBLANK(Groom)-1
C4=ROWS(Friends)-COUNTBLANK(Friends)-1
C5=SUM(G2:G4) -
How to identify fact and dimension tables
Hi ,
We are having the list of parent child relation info for each database tables. Based upon the parent child tables ,needs to identify which table is fact ,which table is dimension .Could you please help me how to identify the fact table and dimensions tables ?
Thanks in advanceHi,
Refer this link........
http://www.oraclebidwh.com/2007/12/fact-dimension-tables-in-obiee/
Please mark if it helps you.......
Maybe you are looking for
-
Clicking a frame in the taskbar that has an open modal dialog
hi guys, ive written a small application which openes several dialogs. since i need to pass it to less experienced users who dont know how to use alt+tab (on windows) i have a question: if there is an open modal dialog with my frame as owner and it i
-
Viewing files from MacBook Pro on Windows Desktop
Hi y'all, I have had my mac for a while now and have my pc set up so I can view files from my pc on my mac. Now If I wanted to do the opposite (view files from my mac onto my pc) how would I go about that? Thanks, James
-
Hi, I am doing some Reports and my requirement is to put a Date Range with default operator as Is Between. This functionality works in Query Groups in dynamic filters where it shows From Date to End Date. I just wanted to know if this funcationlity
-
Transfer music library, iPad to Macbook
The drive failed on my laptop. Bought new laptop and had critical data restored, not including music library. Purchased music resides on my iPad which was synced with old laptop. Trying to transfer purchases to my new laptop, no go. Trying to sync my
-
Cannot receive email in my Outlook 2013 Inbox
I am running Windows 8 and using Outlook 2013, IMAP. My laptop has stopped receiving emails; they do not show up in the inbox. Nothing had changed; it just stopped working. I can send emails, but emails received since this problem started are not in