Forum Discussion

swellman's avatar
swellman
New Member
7 years ago
Solved

Trying to find the latest date from table with multiple values

I'm trying to populate a cell with the latest date. The issue is that some cells have multiple dates and that's throwing this error: "A table of multiple values was supplied where a single value was expected." Here's my formula:

 
SNE = LOOKUPVALUE(Event[ActivityDate],Event[Account/Opp Id],Opportunity[Id])
 
The Event table has multiple lines for an Opportunity. Thanks in advance.
  • swellman 

     

    Try this

     

    SNE =
    CALCULATE (
        MAX ( Event[ActivityDate] ),
        FILTER ( Event, Event[Account/Opp Id] = Opportunity[Id] )
    )
    

     

1 Reply

  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    Icon for Community Champion rankCommunity Champion

    swellman 

     

    Try this

     

    SNE =
    CALCULATE (
        MAX ( Event[ActivityDate] ),
        FILTER ( Event, Event[Account/Opp Id] = Opportunity[Id] )
    )