Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

Thanks so much for having a place for us propeller heads to hang out and chat.

Geography

Where in the world do Tek-Tips members come from?
dparizo (Programmer)
23 Jan 04 11:42
I'm new to OLAP and have a pretty basic question.  I'd like to know if a 1:n relationship is easy to incorporate into a cube.  Specifically:

Imagine I have a cube designed primarily on sales transactions.  To keep it simple, lets say I have a TransactionID, Date, ProductID, $ amount, and CustomerID to describe the sale.  Let's say that this transaction table currently has 1000 rows, which means 1000 sales transactions.

Now, let's say separately, I have a table that links salespeople to the transaction.  Two columns, TransactionID and RepID.  Because more than one rep can be involved in a sale, this table can have the TransactionID appear any number of times.  So, while the transaction table currently has 1000 rows, let's say this table currently has 2200 rows, which means an average of 2.2 reps per transaction.

I want to represent this 1-many relationship in my cube, so that I can:

1) Create a report that totals up to 1000; showing, say, transactions by ProductID.
2) Create a report that totals up to 2200; showing, say, transactions by individual rep.

Is this easy, hard, or impossible in a cube?

Thanks!
MDXer (TechnicalUser)
23 Jan 04 12:42
You would best served by having your datamart have one row pertransaction per sales rep which will total to your 2200 rows.  A distinct count measure on transID will return 1000 distinct transactions while a count on repid would report 2200.

"Shoot Me! Shoot Me NOW!!!"
                           - Daffy Duck

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close