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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
asandor
Regular Visitor

Finding non matching value from other matching value.

Hi,

 

I want to compare sales reps and their associated zip codes. I have two tables, from different databases and want to create a QC check if the sales rep is properly aligned to the zip code. One database could have the wrong zip attatched to the rep and I want to find that quickly. 

 

Table1:

ClientPhysician

check for match: SalesRep

match on : zip

 

Table2:

User Zip Codes Established

check for match: User: Full Name

match on: Zip Code

 

Summary: Look up zip and SalesRep in Client Physician table, match to User Zip Codes Established table, if sales rep doesnt match, show sales rep and zip.

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@asandor 

you can try to use lookupvalue

LOOKUPVALUE function (DAX) - DAX | Microsoft Docs

it's better to provide the sample data and expected output





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @asandor ,

 

Need more information.

Can you give me related sample data or pbix file without private sata and your expected result so that I can do a test?

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

ryan_mayu
Super User
Super User

@asandor 

you can try to use lookupvalue

LOOKUPVALUE function (DAX) - DAX | Microsoft Docs

it's better to provide the sample data and expected output





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Greg_Deckler
Community Champion
Community Champion

@asandor How do you know if the sales rep doesn't match? Is there a sales rep column in Table 2?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Yes, User: Full Name would be the sales rep for table 2. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors