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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
antoniosantos
Frequent Visitor

How to sum multiple latest values based on timestamp column which have the same opp nº?

Hello!

 

The measure below does get the latest of each and that works when I place it into a table visual, but not on a card. It only plots the last value found, instead of summing the latest of each opportunity.

 

TotalR$Oportunidade =
VAR _max =
MAXX (
    FILTER (
        ALLSELECTED ( BDOportunidades ),
            BDOportunidades[Nº da Op.] = MAX ( BDOportunidades[Nº da Op.] )
        ),
    BDOportunidades[Timestamp]
)
RETURN
CALCULATE (
    SUM ( BDOportunidades[Total R$]), BDOportunidades[Timestamp] = _max
)
 
Appreciate your help!
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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