简体   繁体   中英

1 to many relationship involving multiple fields in power bi

How do you define 1 to many relationship between two tables in Power BI, when multiple columns are involved.

IE Column A, B, and C in table 1 tied to Column E, F, and G in table 2, with a 1 to many relationship.

You can create a new column concatenating the fields like:

tied01 = CONCATENATE( CONCATENATE(your_dataset[Column A], your_dataset[Column B]), your_dataset[Column C])

And to

tied02 = CONCATENATE( CONCATENATE(your_dataset[Column E], your_dataset[Column F]), your_dataset[Column G])

Once you have these two new columns, you can merge them to only one column or create a dynamic table making the reference for the new created columns

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM