Forum Discussion

a7024782's avatar
a7024782
Copper Contributor
Jul 13, 2023
Solved

Como crear una relacion 1:1 entre dos tablas en Excel 2016

Es posible crear una relación 1:1 entre dos tablas en Excel 2016, sea usando los asistentes que provee Excel o mediante código VBA?. Lo he intentado de diferentes formas y la aplicación siempre crea ...
  • SergeiBaklan's avatar
    Jul 17, 2023

    a7024782 

    Data model in Excel doesn't support bi-directional relationships (many-to-many and one-to-one). Moreover, such kind of relationship is not recommended to use in general.

    Alternatively you may create explicit measure like

    =CALCULATE(myAggregation, CROSSFILTER( Analysis[Id] ,Operations[Id], Both )) 

    Even better is to add bridge table with IDs only, hide Id both in Analysis and Operations and use it only from Bridge

Resources