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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
tsarun1992
Helper I
Helper I

Data Modelling

Hello all,

 

I've a data model which has multiple entries in the column "CRM" for a specific employee (Screenshot below)

 

tsarun1992_1-1665485833094.png

 

My need is, only the latest CRM (Highest CRM Number) should be displayed for an employee.

 

What DAX should be used to meet my requirement. I tried with the below DAX but its not displaying the correct (highest CRM) value.

 

Max Values =
VAR maxValue =
CALCULATE(
    max(List[CRM]),
    ALLEXCEPT(List, List[Employee Name]))
    RETURN
    IF([CRM]=maxValue, "MAX")

Thanks a ton in advance whoever is going to spend time to resolve my issue 🙂
1 ACCEPTED SOLUTION
tsarun1992
Helper I
Helper I

Issue is resolved brother 🙂 The CRM column format was changed from TEXT to NUMBER, then it chose the largest value automatically using the same DAX

View solution in original post

2 REPLIES 2
tsarun1992
Helper I
Helper I

Issue is resolved brother 🙂 The CRM column format was changed from TEXT to NUMBER, then it chose the largest value automatically using the same DAX

johnt75
Super User
Super User

for debugging try returning the maxValue variable. that will show whether it is retrieving the same value for everybody or a different value for different people and could help to indicate where the problem lies.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.