Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can´t make referenced relationship to work

I have three tables, one fact and two dimensions. I want to make a referenced relationship between the fact table(measures) called InternetSales and the Geography table, se image(schemaCubeStructure".

The intermediate table is Customer. I first create the Geography and InternetSales tables and then the Customer with a field from Geography to use later when creating the ref. rel.

Everything works fine until browsing the data in the cube (se image "errorBrowseSalesCube". If i don´t make the relationship between the two tables i get image "correctBrowseSalesCube" which is what i want. That is i don´t get any data when processing with the rel.ref.

See image "dimensionUsageSalesCube for rel.ref.

Why is that i don´t get any data?

correctBrowseSalesCube correct browse sales cube errorBrowseSalesCube errorBrowseSalesCube dimensionUsageSalesCube dimensionUsageSalesCube schemaCubeStructure schemaCubeStructure

like image 306
daniel_aren Avatar asked Jan 09 '13 07:01

daniel_aren


People also ask

What if you can't use your boss as a reference?

If you are currently employed, you may not want your boss to be a reference, but prospective employers will need some way of vetting your current performance, so consider outside consultants, previous colleagues or a trusted mentor within the company as a substitute.

Can you use someone you work with as a reference?

Most employers prefer work references since those individuals know you best in a professional atmosphere. They're able to list your experience and skills and discuss their general observations of you. Work-related references include coworkers, managers, clients and vendors.

How do you write a relationship with references?

Relationship: Describe the relationship of the reference to you. For example, “Ms. Smith served as my supervisor at ABC Company and, as a result, can comment on my overall performance in the XYC position that I held there.

What to say when you dont want to give a reference?

What to say: "The company does not permit me to provide any references. I would only be able to confirm your job title, employment dates, and salary history. So it would be in your best interest to find someone else to provide a reference."


2 Answers

What fields did you use when setting up your reference dimension relationship between Georgaphy and Internet Sales?

enter image description here

The in the AdventureWorksDW database, the Georgaphy dimension is a snowflake off of Customer dimension. In the AdvWrks cube project, Microsoft includes the geography table and corresponding attributes in the customer ssas dimension (red boxes in screenshot below). However, they could have, as it looks like you are trying to do, simply added the GeographyKey to the customer dimension (red arrow in screenshot below)

enter image description here

This exposes the GeorgaphyKey field when creating the reference dimension relationship so that you can properly define the relationship between the intermediate dimension (customer) and the reference dimension (geography):

enter image description here

After that, you can properly browse the Internet Sales facts by Georgraphy dimension attribute (and user) hierarchies:

enter image description here

like image 116
Bill Anton Avatar answered Sep 30 '22 05:09

Bill Anton


The correctBrowse sales cube can be easily explained. It means that the data is not calculated based on the Geography dimension and thus indicates that the connection between the Internet sales and the Geography is not correctly calculated.

I would suggest the following:

Try making the customer a Mesaure (or fact table). Do not rename it just make a measure i.e. the count of customers (can be used as a counter of customers/per region or can be invisible altogether).

Then The customer will appear as a measure in Dimension usage and then connect Geography to Internet sales via a many to many relation Using the customer measure table.

like image 44
Athanasios Kataras Avatar answered Sep 30 '22 06:09

Athanasios Kataras