Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have one colum in a table for emplyee names (data base), and another table contains the same employes names (manual entry). I want to check if there was any mismatch between them.
I was thinking using measure = Countrows(Filter(Table1,Table1[colum1]<>Table2[column2].
but Filter function only works in a single table. What should my approch be? Thanks
Solved! Go to Solution.
Hi @Anonymous ,
I created some data:
Table1:
Table2:
Here are the steps you can follow:
1. Create measure.
Measure =
IF(
MAX('Table1'[column1])=
LOOKUPVALUE(
'Table2'[column2],'Table2'[employes names],MAX('Table1'[employes names])),"match","mismatch")
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 @Anonymous ,
I created some data:
Table1:
Table2:
Here are the steps you can follow:
1. Create measure.
Measure =
IF(
MAX('Table1'[column1])=
LOOKUPVALUE(
'Table2'[column2],'Table2'[employes names],MAX('Table1'[employes names])),"match","mismatch")
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
Hello @Anonymous ,
An other approach could be to create a calculate column where you know the values are correct(Tablereference).
Hi @Anonymous
please try
=
COUNTROWS ( EXCEPT ( VALUES ( Table1[colum1] ), VALUES ( Table2[column2] ) ) )
Thanks! is there a function I can use to display the mismatch as well?
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |