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
SuchCT
Helper II
Helper II

LOOKUPVALUE with duplicates

Hello,

I currently have one table with an "Order ID" that can, sometimes, have an "Original Order ID", while being an "Order ID"itself. This "Original Order ID" can have more than one "Order ID" inside. I've tried using LOOKUPVALUE but get the "table with multiple values" error.

Both columns could contain duplicates.

I'm trying to create column that flags all "Order ID"s that are also "Original Order ID"s. Something like the "Contains Another Order" column.

Thanks in advance.

You can see an example of the desired result below.


Order ID      |Original Order ID |Contains Another Order

3832                                    No                                
69388742No
69388050No
63598050No
8050 Yes
7519 No
7656 No
89208742No
8742 Yes
48957576No
7576 Yes
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SuchCT , Try a new column

 

New column =
var _ord = [Order ID]
var _cnt = countx(filter(Table,[Original Order ID] =_ord),[Order ID])
return
if(isblank(_cnt), "No", "Yes")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@SuchCT , Try a new column

 

New column =
var _ord = [Order ID]
var _cnt = countx(filter(Table,[Original Order ID] =_ord),[Order ID])
return
if(isblank(_cnt), "No", "Yes")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you so much! That's exactly the solution for my problem.

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
Top Kudoed Authors