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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Del235
Helper III
Helper III

Relationship with a Measure not working

I have created a table which has a field of the type Text.  I'm trying to join on another field in a table that is also of the type text but that field was created as a measure.  When try to create a relationship between the 2 Power BI doesn't "see" the field to create the relationship.

 

Why?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Del235 Hello,@ExcelMonke ,thank you for your help of this issue.Your answer is excellent!
And I would like to share some additional solutions below.
I am glad to help you.

According to your description, you want to use measure to establish relationships with fields in other tables.

Unfortunately, this is not possible. Here are the results of my tests:

vjtianmsft_0-1715758539309.png

I tried to make the Resource Name in the Booking table related to the newly created measure M_, but it failed.

vjtianmsft_1-1715758561167.png

Here is the reason I analyzed, you can refer to it:

The relational model in power BI does not support a field in a table to establish a relationship directly with a newly created measure.

The reasons is as follows:

The relationship model between data in power bi is built before the data is loaded, while the measure is calculated after the data is loaded, it depends on the current computing environment. Simply put, measure must have specific data in order to work properly, while the relationship is not dependent on specific data.

If you want to achieve a similar effect, you can create a calculate column with the same functionality as the current measure to replace it. calculate column is similar to a normal column, you can use calculate column to establish relationships with other table fields.

Test Data:

vjtianmsft_2-1715758618476.png

M_ = 
SELECTEDVALUE('Resources'[Resource Name])
C_ = 'Resources'[Resource Name] 

Create a relationship with the "Resource Name" of another Booking table by calculating column C_ instead of M_.

vjtianmsft_3-1715758669130.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Del235 Hello,@ExcelMonke ,thank you for your help of this issue.Your answer is excellent!
And I would like to share some additional solutions below.
I am glad to help you.

According to your description, you want to use measure to establish relationships with fields in other tables.

Unfortunately, this is not possible. Here are the results of my tests:

vjtianmsft_0-1715758539309.png

I tried to make the Resource Name in the Booking table related to the newly created measure M_, but it failed.

vjtianmsft_1-1715758561167.png

Here is the reason I analyzed, you can refer to it:

The relational model in power BI does not support a field in a table to establish a relationship directly with a newly created measure.

The reasons is as follows:

The relationship model between data in power bi is built before the data is loaded, while the measure is calculated after the data is loaded, it depends on the current computing environment. Simply put, measure must have specific data in order to work properly, while the relationship is not dependent on specific data.

If you want to achieve a similar effect, you can create a calculate column with the same functionality as the current measure to replace it. calculate column is similar to a normal column, you can use calculate column to establish relationships with other table fields.

Test Data:

vjtianmsft_2-1715758618476.png

M_ = 
SELECTEDVALUE('Resources'[Resource Name])
C_ = 'Resources'[Resource Name] 

Create a relationship with the "Resource Name" of another Booking table by calculating column C_ instead of M_.

vjtianmsft_3-1715758669130.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ExcelMonke
Super User
Super User

You are not able to create a relationship using measures. A good way to think about it is, if the measure value changes, it will cause a Power BI to continuously change the relationship, and this may cause errors if the measure value is not as intended





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

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors