Forum Discussion

nuuomkt's avatar
nuuomkt
Frequent Visitor
7 years ago
Solved

Calculation between three related tables

Hi community,    I have three tables, [Allusers], [Lapsedusers], and [Type] [Allusers] has columns such as userID, contract name, start date, end date, and salespersons.  [Lapsedusers] is extract...
  • Nathaniel_C's avatar
    7 years ago

    Hi nuuomkt ,

     

    There are a lot of good books on data out there. One of my favorites is either of Matt Allington's books. In them he discusses the difference between Lookup or Fact tables, and Transaction or Data Tables. The Fact tables have "facts" about an entity, such as anything having to do specifically with your user, or your salesperson, or perhaps your contract. Your data tables usually link to these fact tables and include a date. Therefore, you should have a calendar table as well. The relationship between these tables is usually from the data table (many) to the fact tables (one.) You will have one user Bill Jones ID 6 who may have many transactions as a simple example. 

     

    Sorry this is not the easy answser that you were probably looking to find, but if you don't set up your data correctly, nothing flows correctly.  Matt does online classes as well, and no I don't get paid this, but it was super userful to spend the time!

    Nathaniel