Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi there!
I've data coming from two different spreadsheets into my report that has employee names column. How can I compare employee names from source #1 to names in source#2 and generate a list of unique names in source #2? Source #2 has the accurate list of names.
Any help would be appreciated! Thanks!
Solved! Go to Solution.
Hi @rozoan,
I made one sampe using the formula as dedelman_clng provided.
MissingEmpName = CALCULATETABLE( EXCEPT( Values('Source#2'[EmpName]), Values('Source#1'[EmpName]) ) )
For more details, please check the pbix as attached.
Regards,
Frank
Hi @rozoan,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
Hi @rozoan,
I made one sampe using the formula as dedelman_clng provided.
MissingEmpName = CALCULATETABLE( EXCEPT( Values('Source#2'[EmpName]), Values('Source#1'[EmpName]) ) )
For more details, please check the pbix as attached.
Regards,
Frank
Thank you David & Frank! Both solutions worked!
I appreciate your help!
Hi @rozoan,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
If Source#2 has the accurate list of names, what values do you want from Source#1 ? There are UNION, INTERSECTION and DISTINCT functions, but it depends on what you're really look for. A small example set of data would be helpful.
David
Thanks! The goal is to create a table showing names from source #2 that are not in source #1..
In DAX, create a new table with the following code
MissingEmpName =
CALCULATETABLE( EXCEPT(
Values(Source#2[EmpName]), Values(Source#1[EmpName])
)
)
This should give you a table with a single column of names in Source#2 that are not in Source #1.
Hope this helps,
David
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |