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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
m-colbert
Resolver III
Resolver III

PBI Not Applying Relationship between Imported Table and Calculated Table

I have a dimension table called Plant, it has a unique column PlantId. This table relates to 3 other imported fact tables just fine with one-to-many relationship. 

I created a calculated table in DAX that creates a set of KPI Score Streaks (i.e this KPI has been increasing/decreasing 'x' number of months in a row). I added a relationship in the model editor and it detects a correct one-to-many, but when applying, the relationship is not created. It will however, allow me to create a many-to-many which it is not. PBI will NOT allow me to change the many-to-many, to a one-to-many relationship. In the relationship editor, I try to switch to one-to-many and it does nothing, no changes are applied.

I also tried other dimensional tables like Date. Same outcome. 

I am stumped as to why it won't allow this relationship to be created.

I event tried TMDL to adjust the relationship and that just gives me a useless error. 

3/12/20253:33:32 PM[error]Failed to apply TMDL script. Please try again.

 

Any assistance is greatly appreciated.

6 REPLIES 6
v-saisrao-msft
Community Support
Community Support

Hi @m-colbert,

 

We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.

 

Thank you.

Deku
Super User
Super User

Since you are trying to join a calculated table and it failing I suspect a circular dependancy is at play. You need to use functions that don't include the SSAS's include blank row, so you can use distinct or allnoblankrow, but not values or all.

 

See this SQLBI article on the topic


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
parry2k
Super User
Super User

@m-colbert are you creating the relationship of this calculated table with the table that has unique plant id column? 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k 

 

Yes, the calculated table is HealthScore Streaks and aslso has a PlantId.

Hi @m-colbert,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @m-colbert ,
I wanted to check if you had the opportunity to review the information provided by @Deku . Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.