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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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