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
MSPAL
New Member

Request for support in marking the highest value X with equality Y

Hello community,

 

I need a formula for a calulated column that shows me the highest value in column X if the values in column Y are the same.

Example: Several orders are posted on one date for a costumer, but I only want to look at the latest (highest transaction number) entry.

 

Thanks for your help,

Marco

1 ACCEPTED SOLUTION
sjoerdvn
Super User
Super User

Try something like this (adjust for your actual table & columns names)

 

Last transaction = CALCULATE(MAX([Transaction no]),ALLEXCEPT('Transactions', 'Transactions'[Customer ID], 'Transactions'[Transaction date]))

 

 

View solution in original post

2 REPLIES 2
sjoerdvn
Super User
Super User

Try something like this (adjust for your actual table & columns names)

 

Last transaction = CALCULATE(MAX([Transaction no]),ALLEXCEPT('Transactions', 'Transactions'[Customer ID], 'Transactions'[Transaction date]))

 

 

MSPAL
New Member

ADD: I need a formula for a calulated column that shows me the highest value in column X if the values in column Y AND Z are the same.

Example: Several orders are posted on one date for a costumer, but I only want to look at the latest (highest transaction number) entry. Transaction number = X, Date = Y, Costumer ID = Z.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors