dbTalk Databases Forums  

SSAS 2k5: Fact and Bridge Fact table

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss SSAS 2k5: Fact and Bridge Fact table in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CarlosR
 
Posts: n/a

Default SSAS 2k5: Fact and Bridge Fact table - 02-08-2006 , 05:17 AM






Hello... I have the follow tables:

Table: fact_1
fact_id int (autoincrement)
fact_qty int default = 1
date datetime

Table: dim_reason
reason_id int (autoincrement)
reason_desc varchar(20)

Table: bridge_fact_reason
bridge_id int (autoincrement)
fact_id int
reason_id int

+ dim_date as a regular data.


Between the dim_reason and the fact_1 I have a bridge_fact_reason
becuase I can have more than one dim_reason for each fact_id.

However, I count not make it work on SSAS 2K5. When I browse the cube
and just add the reason_desc and the count from bridge is ok. But if I
add the count from fact, it show the TOTAL count of fact in each line.

In the other hand, if I add the date and count of fact works fine. When
I add the count of bridge, it happen the same, namely, it show the TOAL
count of bridge for each line of the date.

Does anyone knows how to make this work?

Tks


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: SSAS 2k5: Fact and Bridge Fact table - 02-08-2006 , 11:46 PM






This MSDN paper should help you:

http://msdn.microsoft.com/library/de.../en-us/dnsql90
/html/sql2k5_mmdiminas.asp
Quote:
Many-to-Many Dimensions in Analysis Services 2005
Richard Tkachuk
Microsoft Corporation

June 2005

Applies to:

Microsoft SQL Server 2005 Analysis Services

Summary: See an example of using the Many-to-Many dimension in SQL
Server 2005 Analysis Services to analyze sales data, and get ideas for
other uses such as treating medical conditions, software testing, and
more.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
Alex Deiden
 
Posts: n/a

Default Re: SSAS 2k5: Fact and Bridge Fact table - 02-17-2006 , 12:52 AM



hi Deepak,
I have a question about design for MSAS 2k5 on one-to-many of facts, when
one fact became a dimension to another fact.

I have cube with Item fact table and transaction fact table.

one-to-many ( Item.transaction_key is FK to TRANSACTION fact table
whereTransaction.transaction_key is PK ).

I also have Date with date_key as PK.
Transaction.date_key is FK in Transaction table to Date table
and
Item.date_tend_key is FK in Item table to Date table

I have 5 dimensions around TRANSACTION fact table and 3 dimensions around
ITEM fact table.

When building the cube I've defined TRANSACTION fact table as a 'fact and
dimension',
and ITEM table as a 'fact' .

Every aggregation/slicing by all dimensions works OK ...
EXCEPT when I am using Date dimension (date hrchy) with Item
facts(measures).
(date dimension has 4 levels of calendar date hrchy,fiscal hrchy and week
hrchy - none works with Item fact measures).

when drilling I am getting the same total for single measure, for example,
$12199999 for any date level or any dimension that is join to Date dimension,
even for years(upper level of cal.date hrchy) that do not have any data for
items' aggregations(measures)...

I know the explanation of problem sounds very vague...many things could
happened but ...
data is correct and if I am building a separate cube for item (without
transaction fact) - everything works well for all Date slicing...

I can build 2 cubes based on 2 separate facts - transaction and item...
but before doing so ...I would appreciate any suggestions on what can be
wrong with design of One-to-Many Facts , i.e. when fact is a fact and
dimension with Shared date dimension...or smth else...

thank you ,
Alex Deiden


"Deepak Puri" wrote:

Quote:
This MSDN paper should help you:

http://msdn.microsoft.com/library/de.../en-us/dnsql90
/html/sql2k5_mmdiminas.asp

Many-to-Many Dimensions in Analysis Services 2005
Richard Tkachuk
Microsoft Corporation

June 2005

Applies to:

Microsoft SQL Server 2005 Analysis Services

Summary: See an example of using the Many-to-Many dimension in SQL
Server 2005 Analysis Services to analyze sales data, and get ideas for
other uses such as treating medical conditions, software testing, and
more.
...



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #4  
Old   
Deepak Puri
 
Posts: n/a

Default Re: SSAS 2k5: Fact and Bridge Fact table - 02-18-2006 , 12:38 AM



Hi Alex,

From the description, it sounds like the date_key in TRANSACTION fact
table need not be equal to the date_tend_key in the ITEM fact table. In
that case, does the Date dimension have 2 roles in the cube, one for the
Transaction and the other for the Item Measure Group? Also, what is the
Granularity Attribute on which the Date dimension relates to the Item
Measure Group?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #5  
Old   
Alex Deiden
 
Posts: n/a

Default Re: SSAS 2k5: Fact and Bridge Fact table - 02-23-2006 , 12:55 AM



Hi Deepak,
Thank you - you have given me absolutely right directions!
I have added(picked) the Date dimension to Item fact in the Dimension tab
layout of the cube in design time - somehow it has not been created during
the creation of the cube...
thnx a lot!
Alex

"Deepak Puri" wrote:

Quote:
Hi Alex,

From the description, it sounds like the date_key in TRANSACTION fact
table need not be equal to the date_tend_key in the ITEM fact table. In
that case, does the Date dimension have 2 roles in the cube, one for the
Transaction and the other for the Item Measure Group? Also, what is the
Granularity Attribute on which the Date dimension relates to the Item
Measure Group?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.