Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AnandNamburi
Helper III
Helper III

How to create a relationship using DAX

Hi All,

 

Lets assume that I have 3 tables like Table A, Table B & Table C.

 

Table A and Table B are joined using a common key/field, but Table C is stand alone table and is not joined with any other tables.

 

In a visual, If I'm going to show a column from Table C and a measure from table A, then I'm getting constant values which is summarized at the table level. Is there any way to group the value based on the column from A without any active relationship.

 

Thanks,

Anand

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @AnandNamburi ,

 

You need to create a measure to connect table A and Table C,such as below:

Measure = 
CALCULATE('Table A'[Measure from table A],FILTER(ALL('Table A'),'Table A'[Name]=MAX('Table C'[Name ])))

And you will see:

v-kelly-msft_0-1614932007426.png

 

For the sample .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @AnandNamburi ,

 

You need to create a measure to connect table A and Table C,such as below:

Measure = 
CALCULATE('Table A'[Measure from table A],FILTER(ALL('Table A'),'Table A'[Name]=MAX('Table C'[Name ])))

And you will see:

v-kelly-msft_0-1614932007426.png

 

For the sample .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@AnandNamburi , You have to filter it in measure.

 

calculate(sumx(values(TableC[ID]), calculate(Sum(TableC[Value]))), filter(TableC, TableC[ID] = max(TableA[ID])))

 

Best is you refer to segmentation video, where we use independent table: https://www.youtube.com/watch?v=CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.