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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.