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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
powerbicrack
New Member

Power BI Data Modeling Issue.

I am working with Power BI to model data related to boats, their operators, and insurer portfolios. My challenge is correctly managing relationships when insurers underwrite risks at both the group and subsidiary (individual operator) levels. Below is an overview of my data structure:

Data Structure

Boats Table (Contains yearly data for each boat)

BoatIDYearValueDeparturesOperatorOperatorGroup

B00120201.5M100OpAGroupX
B00220202.0M200OpBGroupX
B00320213.2M150OpCGroupY

Insurer Portfolio Table (Shows which operators an insurer underwrites each year)

InsurerYearOperatorOperatorGroup% Line
InsX2020OpAGroupX50%
InsX2020OpBGroupX50%
InsY2021OpCGroupY100%
InsZ2021OpDGroupZ75%

Bridge Tables Used for Relationships

To establish relationships, I created two bridge tables:

  1. Bridge Table 1: Connects boats to insured groups.

    • Fields: Year, InsuredGroup

    • Example:

      YearInsuredGroup
      2020GroupX
      2021GroupY
  2. Bridge Table 2: Connects insurers to insured groups instead of individual operators.

    • Fields: Year, Client, InsuredGroup

    • Example:

      YearClientInsuredGroup
      2020InsXGroupX
      2021InsYGroupY

Issue Faced

Some insurers underwrite risks at the group level (e.g., GroupX), while others underwrite risks at the individual operator level (e.g., OpA, OpB). This creates a challenge in data modeling because:

  • There are cases where an insurer has only underwritten some subsidiaries of a group but not all.

  • My current relationship model through bridge tables does not fully capture cases where an insurer’s portfolio is mixed (some at group level, some at individual operator level).

  • When aggregating data, I need to ensure that if an insurer has underwritten GroupX, it includes all operators under that group, whereas if they have underwritten OpA only, it does not assume coverage for OpB within GroupX.

  • The % Line column in the Insurer Portfolio Table represents the proportion of coverage an insurer has underwritten for a particular operatorandusedtocalculateexposuresofboatoperators

1 REPLY 1
DataNinja777
Super User
Super User

Hi @powerbicrack ,

 

To address the challenge of modeling insurer underwriting at both the group and subsidiary levels, the key is refining the bridge table approach to explicitly map all u

nderwriting relationships. The issue arises because some insurers underwrite at the group level, meaning they cover all operators under that group, while others underwrite only specific operators. The existing bridge tables do not fully capture cases where an insurer’s portfolio includes both group-level and operator-level underwriting, leading to incorrect aggregations when analyzing insurer exposures.

A refined solution involves creating a single comprehensive bridge table that explicitly links each insurer to the operators they underwrite. This table must account for insurers that underwrite at the group level by ensuring that all subsidiaries within that group are listed separately, while also maintaining individual operator underwriting when applicable. The structure of this bridge table should include the year, insurer, operator, operator group, and the percentage line (% Line). For example:

 

 

Year     Insurer   Operator   OperatorGroup   % Line
2020  InsX      OpA        GroupX         50%
2020  InsX      OpB        GroupX         50%
2021  InsY      OpC        GroupY         100%
2021  InsZ      OpD        GroupZ         75%

 

This table explicitly connects each insurer to the operators they underwrite, ensuring that if an insurer underwrites at the group level, all relevant operators are included. Once this bridge table is established, it should be connected in Power BI by relating the Boats Table to the Bridge Table on Operator and OperatorGroup (many-to-many), and linking the Insurer Portfolio Table to the Bridge Table on Insurer, Operator, and OperatorGroup (many-to-many). This setup ensures that boats are correctly mapped to their respective operators and groups, while insurers are mapped to their underwriting coverage.

With the relationships established, the next step is to create a DAX measure to compute the total exposure per insurer, ensuring that the % Line is properly applied based on the underwriting level. The following DAX measure calculates the total exposure for each insurer by looking up the boat’s value and applying the insurer’s underwriting percentage:

Total Exposure = 
SUMX(
    'Bridge Table', 
    VAR BoatExposure = LOOKUPVALUE('Boats Table'[Value], 'Boats Table'[Operator], 'Bridge Table'[Operator], 'Boats Table'[Year], 'Bridge Table'[Year])
    VAR AdjustedExposure = BoatExposure * 'Bridge Table'[% Line]
    RETURN AdjustedExposure
)

This measure iterates over the bridge table, retrieves the corresponding boat value from the Boats Table based on the Operator and Year, and applies the % Line value to calculate the insurer’s proportion of the risk. Summing these adjusted values provides the total exposure for each insurer.

By implementing this refined model, the Power BI report will correctly aggregate insurer exposure, ensuring that if an insurer has underwritten a group, all subsidiaries under that group are included in the calculations, while insurers that underwrite only specific operators do not mistakenly cover others within the same group. The % Line column is now correctly assigned, providing an accurate reflection of each insurer’s underwriting share.

 

Best regards,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors