Forum Discussion

eniX's avatar
eniX
Helper III
8 years ago
Solved

issue using same column in two tables

I have a huge (~4GB) data source where a part is referenced to cars, where it can be used. Same part can be used in different cars and same car can use different parts (so it's m2m relationship). In...
  • v-qiuyu-msft's avatar
    8 years ago

    Hi eniX,

     

    In your scenario, we can concatenate corresponding part to one row, but we aren't able to display corresponding part to separate rows from the same query. 

     

    You can create a measure like this:

     

    Measure = var temp=CALCULATETABLE(VALUES(Table1[car]),ALLSELECTED(Table1[part]))
    return
    CONCATENATEX(CALCULATETABLE(VALUES(Table1[part]),FILTER(ALL(Table1),CONTAINS(temp,[car],[car]))),[part],",")

     

     

     

    Best Regards,
    Qiuyun Yu