Forum Discussion

davo15's avatar
davo15
Copper Contributor
May 27, 2023
Solved

Using data model and power pivots to link tables in Excel

I have three tabs, each with a simple one column table, named respectively, Models, Options, Components. The rows in each table consist of the unique names of the product models, options and componen...
  • SergeiBaklan's avatar
    May 27, 2023

    davo15 

    In any case we need to add some aggregation to PivotTable, otherwise that always will be full join. Let do for number of components. Relationships could be as

    and for models <-> options we may use virtual relationship

    # of Components:=CALCULATE (
        COUNTROWS ( options_components ),
        TREATAS ( VALUES ( models_options[options] ), Options[options] )
    )
    

    Result is

Resources