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

  • Home
  • SEARCH
  • 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 5840649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:46:42+00:00 2026-05-22T11:46:42+00:00

I have these tables: DimDate (PK: DateKey, other attributes) FactActivationCodes (PK: ActivationCode, IssuedDateKey (FK

  • 0

I have these tables:

  1. DimDate (PK: DateKey, other attributes)

  2. FactActivationCodes (PK: ActivationCode, IssuedDateKey (FK to DimDate)

  3. FactExpirations (PK: ActivationCode + ExpirationType, FK: ActivationCode to FactActivationCodes)

I set up measures that count the number of rows in

  1. Issued Count (count of rows in FactActivationCodes)

  2. Expired Count (count of distinct ActivationCodes in FactExpirations)

The idea is that the FactActivationCodes has one activation code, with a date when it was issued. The activation code can get expired year after year (and then renewed) so it would have a row for expiration in FactExpirations (one each year)

I put some test rows in the tables; I put 3 rows in FactActivationCodes (different IssuedDate for each) , and only 2 in FactExpirations. When I browse the cube, and I am looking at the count of Issued on columns, and the Issued Date (dimension) on rows, it looks like this:


                   Issued Date 
January 2008         1 
February 2008        1 
March 2008           1 

But then, when I add the Expired Count, I was hoping to see the ‘expired column’ count with only the ones that match the ‘Activation Code’ like so, because of the one to many relationship between the two fact tables:


                    Issued Date   Expired Date 
January 2008            1             1  
February 2008           1             1 
March 2008              1             0 

But instead, I a cross join of everything like so, with the totals of expired:



                    Issued Date   Expired Date 
January 2008            1               2 
February 2008           1               2 
March 2008              1               2 
April 2008                              2 
May 2008                                2 
June 2008                               2 

And onwards, for every date entry in my Date Dimensions… I guess I’m not doing the relationship correctly… how can I get the expected result?

  • 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-22T11:46:43+00:00Added an answer on May 22, 2026 at 11:46 am

    The answer to use referenced relationship: http://technet.microsoft.com/en-us/library/ms166704.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have these tables /entities VacationRequestDate table which has a VacationRequestId field that links
I have these tables: customer -------- customer_id int name varchar(255) order ----- order_id int
I have these tables: Projects(projectID, CreatedByID) Employees(empID,depID) Departments(depID,OfficeID) Offices(officeID) CreatedByID is a foreign key
I have these 3 tables + data: items : itemId, itemName data: 1, my
Does anyone have any suggestions for creating meta tables in a database? These tables
I have tree tables, Customer, Invoice and InvoiceRow with the standard relations. These I
Say that I have two tables like those: Employers (id, name, .... , deptId).
I have a table that contains tasks and I want to give these an
I have these tables: customer: customer_id vat_number =========== ========== 1 ES-0000001 2 ES-0000002 3
Let assume we have these tables: product product_id product_name category category_id category_name product_in_category product_in_category_id

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.