Forum Discussion

Donnyboy's avatar
Donnyboy
Regular Visitor
3 years ago
Solved

How to apply multiple arguments in a Lookup or Related statement

I am a new learner to PowerBI via UDEMY classes. I am stuck on retrieving a value from a one to many relationship when there are multiple arguments in the filter criteria.    I have 2 tables: SALES...
  • Donnyboy's avatar
    Donnyboy
    3 years ago

    Thanks.  This did answer the question.  Below is the syntax for other self-learners.  I created a column named Alloc in the Sales table using the below: 

     

    Alloc = LOOKUPVALUE(SalesAllocation[ServicAllocationAmt],
    SalesAllocation[DealID],Sales[DealID],
    SalesAllocation[ServiceID],"CDT", blank())

     

    How would this read if I wanted to express an aditional value for the SalesAllocation[ServiceID].  Suppose I wanted to say both "CDT" and "ADT" met the criteria.  What would be that syntax?