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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Data Model Problem

Dear Community, 

 

Hope you're doing ok! I have the following problem. I would like to have a matrix visualization, where the rows has to show BU (Buiness Unit) and the Columns to show risk code (after that i will add the values).

 

However, when i do it i got the following message, which i understand as i don't have relationship between both tables (both of them used as primary keys).

 

Matrix.PNG

 

Here's my data model below. I tried to make the Risk code and Agings relationship "both". Same with the BU and BU lookup table, but doesn't seem to work. Can you please help me establish relationship between the 2 tables?

 

Data Model.PNG

All due repect, 

 

Atanas

1 ACCEPTED SOLUTION
AllisonKennedy
Community Champion
Community Champion

ah, interesting one. You may need to add the values before it will recognize the relationship, which in your data model is a tricky relationship as it goes through the BU and SalesInvoiceNumber tables, so depending on what your value is, and if the cross filter directions and relationships work with that value.

 

Try adding this measure to the values and see what happens as a starting point: 

LinkValue = 1

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Community Champion
Community Champion

ah, interesting one. You may need to add the values before it will recognize the relationship, which in your data model is a tricky relationship as it goes through the BU and SalesInvoiceNumber tables, so depending on what your value is, and if the cross filter directions and relationships work with that value.

 

Try adding this measure to the values and see what happens as a starting point: 

LinkValue = 1

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

When added the values it worked! 

Thank you so much Allison!

Take care, 

Atanas

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.