Forum Discussion

esanning's avatar
esanning
Regular Visitor
4 years ago
Solved

Averaging Data on Partially Related Tables

I have three tables - Application, CreditBureauResults, and FundedLoan. The table relationships are as such (Image in supporting images): Application - 1:* - CreditBureauResults   -   (ApplicationN...
  • lbendlin's avatar
    lbendlin
    4 years ago

    Your data model needs some love.

     

    Either specify the application as the main dimension and use the other tables as facts

     

     

    Or fold the FundedLoan table into the Application table.  You can leave the ContractDate and LoanNumber blank for applications that aren't funded yet.

     

     Your quest to show average score per month is potentially not based on any actual data in your fact tables, so you need to create measures for that which transfers the filter context via TREATAS

     

    Generally you want to add a proper calendar table. 

     

    See attached for a sample implementation.