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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Having trouble with LOOKUPVALUE

Column 2 = LOOKUPVALUE('REC-SHIP'[Shipments.DATED], 'REC-SHIP'[CYCLE_ID], 'REC-SHIP'[Previous Cycle])
 
This is creating an error, a table of multiple values was supplied.
 
I do not understand, as I am supplying the value from the very same table.
 
Is it rying to tell me that lookupvalue is returning more than one value? Is lookupvalue() the supplier here?
2 REPLIES 2
Anonymous
Not applicable

Lookupvalue in DAX - Syntax.PNG

If you want to know how to write more optimized versions of the lookup using other techniques, please go to

 

https://dax.guide/lookupvalue/

 

Best

D

Greg_Deckler
Community Champion
Community Champion

Yes, it is returning more than one value. You can use the Alternate result parameter to return something like BLANK to get around the error. 

 

If you want to see the values being returned, do this:

 

CONCATENATEX(

  DISTINCT(

    SELECTCOLUMNS(    

       FILTER('REC-SHIP','REC-SHIP'[CYCLE_ID] = 'REC-SHIP'[Previous Cycle]),

       "Shipments.DATED",

       'REC-SHIP'[Shipments.DATED]

    )

  )

)



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...

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.