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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
andreazambon
Helper V
Helper V

Mark a value if it match between 2 tables

Hi there. 

 

I have 2 tables T1 and T2. They have different columns but some of them are in common. Values could be different but T2 surelly contains values that are in T1 too. T1 could have values that are missing in T2.

Take this example:

T1

CUSTOM ORDERPRODUCTION ORDER

ODV1

ODP1
ODV1ODP2
ODV2ODP3
ODV3ODP4

 

T2

CUSTOM ORDERPRODUCTION ORDER

ODV1

ODP1
ODV3ODP4

 

 

I need a view which contains all T1 values, but marks with green fill the values whic are also in T2, and the others in red.

 

So:

 

VIEW (here i mark the text for sample):

CUSTOM ORDERPRODUCTION ORDER

ODV1

ODP1
ODV1ODP2
ODV2ODP3
ODV3ODP4

 

The view that is near my goal is a pivot table.

 

With anti merge I create a table which contains all the value of T1 that are not included in T2.

 

Any suggestion?

Thankyou

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @andreazambon ,

Please try below steps:

1. create two measure with below dax formula

CO Color =
VAR co =
    SELECTEDVALUE ( T1[CUSTOMER ORDER] )
VAR tmp =
    VALUES ( T2[CUSTOMER ORDER] )
RETURN
    IF ( co IN tmp, "green", "red" )
PO Color =
VAR co =
    SELECTEDVALUE ( T1[PRODUCTION ORDER] )
VAR tmp =
    VALUES ( T2[PRODUCTION ORDER] )
RETURN
    IF ( co IN tmp, "green", "red" )

2. add a table visual with T1 fields, and configure the fields conditional format 

vbinbinyumsft_0-1686710416347.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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

1 REPLY 1
Anonymous
Not applicable

Hi @andreazambon ,

Please try below steps:

1. create two measure with below dax formula

CO Color =
VAR co =
    SELECTEDVALUE ( T1[CUSTOMER ORDER] )
VAR tmp =
    VALUES ( T2[CUSTOMER ORDER] )
RETURN
    IF ( co IN tmp, "green", "red" )
PO Color =
VAR co =
    SELECTEDVALUE ( T1[PRODUCTION ORDER] )
VAR tmp =
    VALUES ( T2[PRODUCTION ORDER] )
RETURN
    IF ( co IN tmp, "green", "red" )

2. add a table visual with T1 fields, and configure the fields conditional format 

vbinbinyumsft_0-1686710416347.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors