Friends,
When the Dimension table and the Fact Table(also called as Measure Group Table) are related through some other dimension table then that type of relationship is called as Referenced Relationship Type. Lets take a small example from AdventureWorks database.
I am taking the following tables to demonstrate Referenced relationship type.
1) FactInternetSales – Fact/Measure group table
2) DimProduct and DimProductSubCategory – Dimension tables
In this case FactInternetSales and DimProduct tables have foreign key relationship on the column “ProductKey” and hence to fetch Product wise sales then the query looks like –
Select EnglishProductName,sum(sales_Amount) from FactInternetSales
INNER JOIN DimProduct on FactInternetSales.ProductKey = DimProduct.ProductKey
Group by EnglishProductName
Now if you wish to get data at Subcategory Level then the query looks like –
Select EnglishProductSubcategoryName,sum(sales_Amount) from FactInternetSales
INNER JOIN DimProduct on FactInternetSales.ProductKey = DimProduct.ProductKey
INNER JOIN DimProductSubcategory on DimProductSubcategory.ProductSubcategoryKey = DimProduct.ProductSubcategoryKey
Group by EnglishProductSubcategoryName
If you observe the above query then it is clear that We are not using any column to display from DIMPRODUCT table but still we are using it to give reference between DimProductSubcategory table and FactInternetSales tables.
We used INNER JOIN to join FactInternetSales and DimProduct tables and the same relationship can be provided in SSAS cube which is called as Regular Relationship Type. As we cannot give regular relationship type between FactInternetSales and DimProductSubcategory tables as they dont have KEY to join(in other words not directly related), we can use REFERENCED Relationship type to relate those two tables. If we want to relate the above query with SSAS Cube implementation then DimProduct and DimProductSubcategory tables are Dimension Tables in Cube and FactInternetSales is Fact Table . PFB the screen with out providing relationship between dimension and fact.
Now lets see the steps to be followed to provide Regular Relationship Type between a dimension(DimProduct) and a Measure Group(FactInternetSales). Use the Define Relationship dialog box to define a relationship between a cube dimension and a measure group in Cube Designer. You can display the Define Relationshipdialog box by clicking … on a cell in the Grid pane on the Dimension Usage tab in Cube Designer.
2) Select the attribute that defines the granularity of the measure group with respect to the dimension. This attribute is usually the key attribute of the dimension.(ProductKey in our case).
3) Then it automatically displays Dimension Table and Fact Table.
4) It also displays the Dimension Table columns in RELATIONSHIP GRID and you have to select appropriate Measure Group Columns.
PFB the screenshot of the same.
5) After selecting Measure Group Columns click OK.
We set the relationship between InternetSales and Product using Regular relationship type. Now lets see how to give referenced relationship between FactInternetSales and DimProductSubCategory. Before going to that following things should be in mind while giving referenced relationship type.
1) The dimension which is acting as Intermediate should be created first.
2) The columns that are required to join the fact and second dimension should be selected as Attributes in the Intermediate dimension. From the above SQL query it is clear that my DimProduct dimension(which acts as bridge between fact and subcategory) requires a min of two columns as attributes and i.e ProductKey to join with Fact and ProductSubcategoryKey to join with DimProductSubcategory Dimension.
Now please find the steps below to give referenced relationship –
1) Select the relationship Type as “Referenced”.
2) Select the intermediate Dimension(In our case it is Dim Product).
3) Select the attributes from both the dimensions which forms a relationship between these two dimensions(In our case it is ProductSubCategoryKey).
4) Materialize option is checked and leave it as it is.
5) Click on OK.
That’s it .. It is as easy as this .. Happy Coding !!
Regards,
Roopesh Babu V
isotretinoin buy online – aczone 100mg price buy deltasone 20mg generic
best online pharmacies in mexico: mexican pharma – mexico drug stores pharmacies
world pharmacy india: online Indian pharmacy – india pharmacy mail order
https://indiadrugs.pro/# india pharmacy mail order
rybelsus coupon semaglutide cost buy semaglutide online
buy plavix: check clopidogrel pro – cheap plavix antiplatelet drug
пин ап вход: пин ап вход – пинап зеркало
пин ап зеркало: пин ап – пин ап зеркало
пин ап официальный сайт: пинап зеркало – пинап зеркало
buy prescription drugs from india: indianpharmacy com – indian pharmacy online
capecitabine usa – buy danazol pills for sale danazol online buy
mexico pharmacies prescription drugs: mexico pharmacies prescription drugs – mexico drug stores pharmacies
mexican pharmaceuticals online: buying prescription drugs in mexico online – mexican drugstore online
http://pinup-az.bid/# pin up azerbaycan
pin up win
http://pinup-az.bid/# pinup
https://paxlovid1st.store/# paxlovid price
mexican mail order pharmacies mexican pharm 24 mexico pharmacies prescription drugs
ed medications over the counter https://pharm24.pro/# canadian drug
https://indianpharm24.pro/# online pharmacy india
natural treatment for ed
order estrace generic – how to get anastrozole without a prescription buy anastrozole cheap
deneme bonusu veren siteler: deneme bonusu veren siteler 2024 – deneme bonusu veren siteler betturkey
deneme bonusu veren siteler denemebonusu2026.com https://slot-tr.online/# slot tr online
buy Gabapentin GabaPharm: GabaPharm – GabaPharm Gabapentin
https://cytpremium.com/# cytotec online
Lisinopril 1st buy Lisinopril 1st Lisinopril 1st
pin up казино пинап казино пин ап казино онлайн
казино вавада: казино вавада – vavada-kazi.ru
пин ап казино: pinup – пинап казино
After furosemide m2 death, it is absolutely impossible for Mo Yue Furosemide M2 to mention this to them cytotec pills 0006; figure below
indian pharmacy: indian pharmacy – india online pharmacy
buy online pharmacy canadianpharm1st cure ed
best online pharmacies in mexico: MexicanPharmEasy – buying prescription drugs in mexico online
https://amoxilpharm.store/# amoxicillin 250 mg
Paxlovid.ink: paxlovid price – Paxlovid.ink
lisinopril 2.5 pill: buy cheap lisinopril – lisinopril 240
https://kamagra.men/# Kamagra tablets
https://semaglutidetablets.store/# buy semaglutide
drugs1st: drugs1st – ed meds online without doctor prescription
https://edpills.men/# buy ed medication
brand provigil 100mg – buy cheap modafinil buy combivir online cheap
http://casinositeleri2025.pro/# para kazandД±ran sohbet siteleri
пин ап казино зеркало пинап казино пин ап казино
http://casinositeleri2025.pro/# tГјrkiye bahis siteleri
пин ап зеркало pinup2025.com пин ап
http://casinositeleri2025.pro/# bet turkiye
http://mexicanpharmi.com/# purple pharmacy mexico price list
http://indiapharmi.com/# cheapest online pharmacy india
http://canadianpharmi.com/# online prescription for ed meds
https://clomidonpharm.com/# where can i get cheap clomid price
cipro: CiPharmDelivery – buy ciprofloxacin over the counter
http://clomidonpharm.com/# cost clomid without insurance
http://clomidonpharm.com/# where to buy cheap clomid
cost cheap clomid online cheap clomid pills where can i buy generic clomid without dr prescription
cost of clomid without dr prescription clomidonpharm clomid price
prednisone uk over the counter PredniBest buy prednisone 10 mg
buy amoxicillin 500mg usa: amoxicillin generic – amoxicillin medicine over the counter
https://gramster.ru/# pinup 2025