Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
12Bowers12
Helper V
Helper V

table relationship

 

Hello, everyone,

I have been stuck a question for a long time.

For auto insurance policy, one policy comes some coverage, such as BI, PD and PIP.

Given one policy, there can be more than one accident. For each accident, more than one coverage might be involved.

For example, in the attached four tables, Policy table and PolicyData table are 1-M relationship. Policy table and Claim table are also 1-M relationship. Claim table and ClaimData are also 1-M relationship.

Question 1: how to build relationship among the tables

Policy and PolicyData is straight, 1-M.

But for Claim table and ClaimData table,  can be Policy to Claim to ClaimData as one 1-M chain, also can be Policy-Claim (1-M), and Policy-ClaimData(1-M).

Which approach is optimal?

Question 2: how to combine all the information together, in a new Calculated table or Report?

The New Table (or Report?) should include: Policy Number, Effective Date, Coverage, Limit, Claim Number, Loss Date, Amount.

I preferred a Report solution.

I would like to thank you first.

Dennis

 

 

 

Policy   PolicyData  
Policy NumberEffective Date  Policy NumberCoverageLimit
4561/2/2014  456BI20
3213/5/2014  456PD25
    456PIP60
    321BI30
    321PD65
       
       
       
Claim   ClaimData  
Policy NumberClaim  NumberLoss Date Claim  NumberCoverageAmount
4561012/2/2014 101BI55
3212054/8/2014 101PIP63
4565064/6/2014 205PD44
    205BI78
    506PD55
3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

I think the relationships should flow like:

  1. Policy Number of PolicyData Table to the Policy Number of Policy Table
  2. Policy Number of Claim Table to the Policy Number of Policy Table
  3. Claim Number of ClaimData Table to the Claim Number of the Claim Table
  4. There should be a 5th Table with a single column of all unique Coverage entries.
    1. There should be a relationship from the Coverage Column of the PolicyData Table and ClaimData Table to the 5th Table

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you, Ashish,

Can I send this simple Power BI data to you for a test?

I can be reached at dli@cwico.com.

Sincerely,

Dennis

Hi,

You are welcome.  Have you tried my solution?  Has it worked?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.