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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Gopinath_iyer
Helper II
Helper II

comparing two excel files

Hi

 

I have two excel files EMP (has duplicates) and Master (unique rows) but number of columns are not same in both the files.

 

Both data has emp number as common field and I want to find the list of employees present in EMP and not present in Master and vise versa.

Can this be achieved?

 

regards,

Gopi

1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @Gopinath_iyer,

 

You can use the following formulas:

 

Distinct Emp Count = DISTINCTCOUNT(Emp[ID])

 

Emp not in Master = [Distinct Emp Count] - CALCULATE(Emp[Distinct Emp Count],FILTER(Emp,Emp[ID] IN VALUES(Master[ID])))

 

Result:

 

Screenshot 2022-10-11 205543.jpg

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Graphical Comparison 

View solution in original post

1 REPLY 1
Shaurya
Memorable Member
Memorable Member

Hi @Gopinath_iyer,

 

You can use the following formulas:

 

Distinct Emp Count = DISTINCTCOUNT(Emp[ID])

 

Emp not in Master = [Distinct Emp Count] - CALCULATE(Emp[Distinct Emp Count],FILTER(Emp,Emp[ID] IN VALUES(Master[ID])))

 

Result:

 

Screenshot 2022-10-11 205543.jpg

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Graphical Comparison 

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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