Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7174727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:07:09+00:00 2026-05-28T16:07:09+00:00

I have a fact [Orders], and a customer dimension [Customers]. There are three relationships

  • 0

I have a fact [Orders], and a customer dimension [Customers]. There are three relationships between these two, as the fact Orders can have three types of customers. : shipper, consignee, billto. So, in turn when I try to browse the data via the customer id and name from the customer dimension and try to pull in fact order attributes the cube is unable to determine which of the three attributes it should splice data by.

I am essentially just attempting to figure out the best way to handle the situation. Obviously, I could normalize the table and create three assignment tables specific to the types that I specify above which would alleviate the issue. I am just wondering if there is a way to do this in the cube without changing the structure of the tables in the sql database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:07:10+00:00Added an answer on May 28, 2026 at 4:07 pm

    There are a few ways to handle the relationship between DimCustomer and FactOrders so it depends on how you have the data modeled…

    If FactOrders has 3 fields that each link back to DimCustomer like below…

    FactOrder
      ShipperKey (FK)
      ConsigneeKey (FK)
      BillToKey (FK)
    
    DimCustomer
      CustomerKey (PK)
    

    …then you will end up with 3 dimensions for Customers in your SSAS database. You can implement these dimensions via Role-Playing (1 dimension added 3 times to your cube) or as 3 separate dimensions. The latter allows for more user-friendly naming conventions.

    On the other hand, if your FactOrders table only has 1 field that links to DimCustomer like below…

    FactOrder
      CustomerKey (FK)
    
    DimCustomer
      CustomerKey (PK)
    

    …then you will need to differentiate “Customer Types” (Shipper, Consignee, BillTo) using 1 of two methods…


    Method 1: Create a CustomerType field in your DimCustomer table and make it an attribute in the customer dimension in your SSAS project…

    FactOrder
      CustomerKey (FK)
    
    DimCustomer
      CustomerKey (PK)
      CustomerType
    

    Method 2: Create a new dimension table (DimCustomerType) and add it to your cube…

    FactOrder
      CustomerKey (FK)
      CustomerTypeKey (FK)
    
    DimCustomer
      CustomerKey (PK)
    
    DimCustomerType
      CustomerTypeKey (PK)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can a fact table have no keys at all? or if it can, is
I have a fact table that needs a join to a dimension table however
i have two entities Customer and Order (trivial setters and getters excluded) @Entity public
Each product in my database can have at least three and sometimes four or
Consider a grocery store scenario (I'm making this up) where you have FACT records
In fact I have been assigned with a task to secure my DLL, so
I have a table (table variable in-fact) that holds several thousand (50k approx) rows
I have some concerns related to the fact of testing some functions containing the
Have you ever added unit tests, after the fact, to legacy code? How complicated
I have a code problem which stems from the fact that I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.