cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
jonclay
Helper IV
Helper IV

DAX measures to find financial amount of the latest transaction per contact/customer

Hi all
I've created a DAX Measure as follows to SUM together the total of 3 fields:

Nett = SUM(transaction[dc1amount]) + SUM(transaction[dc2amount]) + SUM(transaction[dc3amount])

I've then create another DAX Measure to find the latest date of my Transactions. This has then been put into a table against various contacts so that it effectively finds the date of the latest Transaction per contact/customer:

Latest_Gift_Date =
MAXX (
    FILTER (
        transaction,
        transaction[status] = "Paid"
    ),
    transaction[dateofpayment]
)

What I'm trying to do next (and failing!) is to find the amount of the latest Transaction per contact/customer. Could anyone please supply me with the correct DAX for this based on the two measures shown above?

Many thanks
Jon 



1 ACCEPTED SOLUTION
HoangHugo
Solution Specialist
Solution Specialist

Hi, try this

measure

Latest_transaction = CALCULATE([Nett measure],transaction[dateofpayment]=[Latest_Gift_Date])

View solution in original post

2 REPLIES 2
jonclay
Helper IV
Helper IV

Hi @HoangHugo 

Thank you so much, that works fine!

Best wishes
Jon

HoangHugo
Solution Specialist
Solution Specialist

Hi, try this

measure

Latest_transaction = CALCULATE([Nett measure],transaction[dateofpayment]=[Latest_Gift_Date])

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors