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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
1 REPLY 1

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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