Forum Discussion
dombarg
8 years agoHelper II
how to create virtual relation with DAX
hello.i have two tables for which i want to make relation based on their similar ID column.for example please have a look at folloing picture:
how is it possible to create relation in both direction with DAX? Am I to summarize left table with some expersion and then relate it with ID column?or something like this?
thanks for your attention.
6 Replies
- VvelardeCommunity Champion
Hi, You can use TREATAS.
AmountOFTable2RR = CALCULATE ( SUM ( Table2[Amount] ), TREATAS ( VALUES ( Table1[ID] ), Table2[ID] ) )Regards
Victor
- ChrisMendozaResident Rockstar
Will this work for you?
NEWTable = DISTINCT( UNION ( DISTINCT ( Table1[id] ), DISTINCT ( Table2[id] ) ) )- dombargHelper II
thank u .but i won't to establish such relation with Bridge.