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
Denis_Araujo
Frequent Visitor

Relationship problem comparing data with a bridge/structure

Hi, I haven't quite found my exact issue in an existing forum post; if there's something already out there on this topic I'd be happy to take a look.

My problem is related to relationship, as you can see in the sample bellow, just "DATA_1" has the "Company" information and when i try to compare thoses values i got undesired output from my matrix visual;


"DATA_1" 

CarCompanyValue
AX2


"DATA_2"

CarValue
A1

 

Bridge/Structure:

Car
A
B

 

The Result of Matrix (Incorrect):

 

Denis_Araujo_1-1648244692837.png

And i would like to have that result:

 

Denis_Araujo_0-1648244595231.png



Relationship:

Denis_Araujo_2-1648244750594.png


OBS: Merging "DATA_1" with "DATA_2" can solve but is not an option in my real project.

Folder With .pbix file: https://drive.google.com/drive/folders/1EaALoubhWaydbhOvYCdMY2gO_sxjBAZ6?usp=sharing

 

1 ACCEPTED SOLUTION
Denis_Araujo
Frequent Visitor


I find a solution with DAX, the measure bellow ensures that the values dosent repeat with N:N relationship in the rows of my matrix:

Measure_Value_DATA_2 = IF(not ISFILTERED(DATA_1[Company]),SUM(DATA_2[Value]))

 

Denis_Araujo_0-1648487296184.png

 

 

 



View solution in original post

7 REPLIES 7
Denis_Araujo
Frequent Visitor


I find a solution with DAX, the measure bellow ensures that the values dosent repeat with N:N relationship in the rows of my matrix:

Measure_Value_DATA_2 = IF(not ISFILTERED(DATA_1[Company]),SUM(DATA_2[Value]))

 

Denis_Araujo_0-1648487296184.png

 

 

 



tamerj1
Super User
Super User

Hi @Denis_Araujo 

what are Value_A and Value_B? Can you clarify further the expected Result?

Values in that example can be price.

 

This is the result that i expect:

 

Denis_Araujo_0-1648268194167.png

 

@Denis_Araujo

The column must exist the table even if it was blank. Even if the column exists you still need to have have a common filter table which can be easily created in Powerbi

What you are trying to say with a common filter, is that just visual filter "company"?

I just test right know the same sample with all of them with the same collumns and the problem persist:

Denis_Araujo_0-1648295972178.png

 

@Denis_Araujo 

I mean local table that contains all unique cars and other one that contains all unique companies. Build the relationships with the two company columns and the two car columns using the these tables thes use them in the visual

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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