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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors