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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors