Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 ORDER | PRODUCTION ORDER |
ODV1 | ODP1 |
ODV1 | ODP2 |
ODV2 | ODP3 |
ODV3 | ODP4 |
T2
CUSTOM ORDER | PRODUCTION ORDER |
ODV1 | ODP1 |
ODV3 | ODP4 |
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 ORDER | PRODUCTION ORDER |
ODV1 | ODP1 |
ODV1 | ODP2 |
ODV2 | ODP3 |
ODV3 | ODP4 |
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
Solved! Go to Solution.
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
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.
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
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
60 | |
58 | |
54 | |
36 | |
33 |
User | Count |
---|---|
79 | |
66 | |
45 | |
44 | |
42 |