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.
May you please help me with this problem, I have 2 differnet datasets( Table A and Table B) the tables have a column called a UCR which can be used to link both tables. I want to be able to see the non-matching UCR's that are in table A but not in table B, I used the formula ucr_match = if(RELATED(TableA[UCR])=TableB[UCR], "Match","Non Match")
The problem is that some of the UCR's were wrongly captured by end users which then shows as if there's a non-match when in fact there is a match. Take for example Table A ucr has 4 six's where as table B has 3 six's and these are supposed to be a match.
Table A Table B
UCR: 2JP01536666CINV4300840884M UCR: 2JP0153666CINV4300840884M
What alternative can I use?
Solved! Go to Solution.
Hi @Siza ,
I created some data:
TableA:
TableB:
Here are the steps you can follow:
1. Create calculated column.
Column =
VAR _column=SELECTCOLUMNS('TableA',"UCR",'TableA'[UCR])
return
IF(
'TableB'[UCR] in _column,"Match","Non Match")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Siza ,
I created some data:
TableA:
TableB:
Here are the steps you can follow:
1. Create calculated column.
Column =
VAR _column=SELECTCOLUMNS('TableA',"UCR",'TableA'[UCR])
return
IF(
'TableB'[UCR] in _column,"Match","Non Match")
2. Result:
Best Regards,
Liu Yang
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 |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |