1
  1. I have two fact tables:

    a) FACT_PURCHASE_ORDERS fields:
    
      -PO_Number
    
      -Pick Ticket Number
    
      -PO_Line_Number (po can have many line numbers)
    
      -PO_ITEM (PO_number concatenated with PO_Line_Number with dash IE. "10-1")
    

Example:

PO_number PO_Line_Number PO_Item
10 1 10-1
10 2 10-2
10 3 10-3
    b) FACT_PICK_TICKETS fields:   
      
       -Pick Ticket Number (these are unique)
  1. I want a table visual with these fields:

     -Pick_ticket_number
    
     -PO Number
    
     -Measures from both tables
    
  2. Since I can't join the fact tables I have created a dim table DIM_PICK_TICKET with these relationships:

    a) DIM_PICK_TICKET       1 to 1      FACT_PICK_TICKETS       (on Pick_ticket_number)
    
    b) DIM_PICK_TICKET       1 to Many   FACT_PURCHASE_ORDERS    (on Pick_ticket_number)
    

In my table visual I can add:

     a) DIM_PICK_TICKET[Pick_ticket_number]
  
     b) FACT_PURCHASE_ORDERS[PO Number] 

     c) but when I try to add a measure from either fact table I get repeating values.

I have tried creating a dim table DIM_PURCHASE_ORDERs with a distinct PO_ITEM field

a) DIM_PURCHASE_ORDERS      1 to Many       FACT_PURCHASE_ORDERS (on PO_ITEM)

b) My thought was to add PO_ITEM to FACT_PICK_TICKETS in the backend view 
 so I can join to DIM_PURCHASE_ORDERS, but that gives me duplicate 
 Pick_ticket_numbers which I don't want in that table

Any help is appreciated. Every example I can see of multiple fact tables doesn't seem to match my scenario.

*Edit: I need to display a measure from FACT_PICK_TICKET:

"Back Order Qty = SUM(FACT_PICK_TICKET[BACK_ORDER_QTY])"

This is just a quantity number.

I also want to display a date from FACT_PURCHASE_ORDER called RECEIVED_DATE, this is connected to a dim date table called "Date - Received". FACT_PICK_TICKET does not have a connection to this date table.

3
  • What kind of measures do you required? Can you put some example measures? Commented Feb 13 at 9:24
  • Hi thanks for responding. I need a measure from FACT_PICK_TICKET > "Back Order Qty = SUM(FACT_PICK_TICKET[BACK_ORDER_QTY])". This is just a quantity number. I also want a date from FACT_PURCHASE_ORDER called RECEIVED_DATE, this is connected to a dim date table called "Date - Received". FACT_PICK_TICKET does not have a connection to this date table. I hope that makes sense. Commented Feb 17 at 18:24
  • Then the most viable solution is to consolidate two fact tables into one!!! Commented Feb 19 at 12:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.