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
andhisbrother
Regular Visitor

One table Vlookup equivalent in DAX

Dear community,

 

I'm trying to get shipment C013720578 to be shown in column Group for all rows. Shipment C013720578 is the main shipment, out of 4 shipments linked to invoice 1891846520. I need to do this for all Invoices in column Invoice.

 

My first try was lookupvalue

Column = LOOKUPVALUE('BRIDGE FULL'[Shipment],'BRIDGE FULL'[Invoice & main],'BRIDGE FULL'[Invoice & Shipment Type])
 

This wouldn't work becuase there are duplicates (in the Search Value I think), and I got this error:

A table of multiple values was supplied where a single value was expected.

 

How do I modify the formula below please? or something completely different?

(hint: shipment C012293295 currently shown in column Group is the very first shipment of the entire big table)

andhisbrother_0-1761647947040.png

 

InvoiceShipmentShipment TypeShipment Type - MainInvoice & mainInvoice & Shipment TypeGroup
1891846520C013720583ZT13not main1891846520main1891846520not mainC012293295
1891846520C013720577ZT11not main1891846520main1891846520not mainC012293295
1891846520C013720579ZT13not main1891846520main1891846520not mainC012293295
1891846520C013720578ZT12main1891846520main1891846520mainC012293295
1891846523C013720577ZT11not main1891846523main1891846523not mainC012293295
1891846523C013720579ZT13not main1891846523main1891846523not mainC012293295
1891846523C013720586ZT13not main1891846523main1891846523not mainC012293295
1891846523C013720578ZT12main1891846523main1891846523mainC012293295
1891846524C013720579ZT13not main1891846524main1891846524not mainC012293295
1891846524C013720586ZT13not main1891846524main1891846524not mainC012293295
1891846524C013720577ZT11not main1891846524main1891846524not mainC012293295
1891846524C013720578ZT12main1891846524main1891846524mainC012293295

 

 

1 ACCEPTED SOLUTION
GeraldGEmerick
Solution Sage
Solution Sage

@andhisbrother Perhaps try something like the following:

Group = MAXX( FILTER( 'Table', [Invoice] = EARLIER( [Invoice] ) && [Shipment Type - Main] = "main" ), [Shipment] )

View solution in original post

4 REPLIES 4
GeraldGEmerick
Solution Sage
Solution Sage

@andhisbrother Perhaps try something like the following:

Group = MAXX( FILTER( 'Table', [Invoice] = EARLIER( [Invoice] ) && [Shipment Type - Main] = "main" ), [Shipment] )

Hi @andhisbrother 

We wanted to follow up to check if you’ve had an opportunity to review the previous responses. If you require further assistance, please don’t hesitate to let us know.

 

 

Hi @andhisbrother 

Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.

Hi @andhisbrother 

Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.

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.