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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
swellman
New Member

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.
1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@swellman 

 

Try this

 

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

 

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

@swellman 

 

Try this

 

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

 

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.

Top Solution Authors