Forum Discussion

ScottBrown's avatar
ScottBrown
Helper II
1 year ago
Solved

Dimension - Multiple Fact Table Columns Customer Names (BillTo Name, ShipTo Name, EndUser Name)

Structure: I have a dimension table of Customer Names only. The Fact Table has a BillToName, ShipToName, and EndUserName - not always the same. The Fact Table consist of SalesLineItem data, many l...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Thank you DataNinja777

    Hi, ScottBrown 

    Based on your description, I've created the following two tables:

    I think you can unpivot BillToName, ShipToName, and EndUserName in Power Query to turn it into a 1D table that Power BI accepts:

    Finally, you can establish a connection to your CustomerNames dimension table and filter the corresponding data by the type column.

     

     

    Best Regards

    Jianpeng Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.