cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Sachy123
Helper V
Helper V

Match / unmatch count

So I have two tables from different sources joined by ID's (Emp_ID) 

 

EmployeeRatingTable1                

Emp_ID     Employee_Ratings

 

 

EmployeeRatingTable2        

Emp_ID     Employee_Ratings     

 

 

How do I make a measure/column which I can use to compare the count of employees included in table 1 but nt in table 2

count of matching ratings

count of unmatched ratings

 

Sachy123_0-1641297045834.png

Any help would be great

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Sachy123 , One option, is merge them in Power Query  and have in one table and compare column

 

Other option

 

Try if these measures can work

Countx(filter(Table1, Table1[Emp Rating] =related( Table2[Emp Rating]) ), Table1[Emp ID])

 

Countx(filter(Table1, Table1[Emp Rating] <> related( Table2[Emp Rating]) ), Table1[Emp ID])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Sachy123 , One option, is merge them in Power Query  and have in one table and compare column

 

Other option

 

Try if these measures can work

Countx(filter(Table1, Table1[Emp Rating] =related( Table2[Emp Rating]) ), Table1[Emp ID])

 

Countx(filter(Table1, Table1[Emp Rating] <> related( Table2[Emp Rating]) ), Table1[Emp ID])

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors