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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
vincenardo
Helper I
Helper I

Find Max Value in Table based on value in another column

I want to find the max value for each name.

 

Here is a sample of my data;

2022-12-23_8-20-04.png

I added tried using this formula in a calculated column (MAX LEVEL) -

MAX LEVEL = MAXX(FILTER('HC-1 INSTALL PBI Service Resources with Skill','HC-1 INSTALL PBI Service Resources with Skill'[Name]='HC-1 INSTALL PBI Service Resources with Skill'[Name]),'HC-1 INSTALL PBI Service Resources with Skill'[Installer Skill Name Lvl])

But that formula is finding the max value for ALL the rows and I want to filter based on the NAME.
For Example, for Ahmad Mohammadi above, the max value should be 3.
 
Thanks in advance!

 

 

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @vincenardo 

MAX LEVEL =
MAXX (
    FILTER (
        'HC-1 INSTALL PBI Service Resources with Skill',
        'HC-1 INSTALL PBI Service Resources with Skill'[Name]
            = EARLIER ( 'HC-1 INSTALL PBI Service Resources with Skill'[Name] )
    ),
    'HC-1 INSTALL PBI Service Resources with Skill'[Installer Skill Name Lvl]
)

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

@vincenardo 

or alternatively, leveraging context transition:

MAX LEVEL =
CALCULATE (
    MAX ( 'HC-1 INSTALL PBI Service Resources with Skill'[Installer Skill Name Lvl] ),
    ALLEXCEPT (
        'HC-1 INSTALL PBI Service Resources with Skill',
        'HC-1 INSTALL PBI Service Resources with Skill'[Name]
    )
)

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

AlB
Community Champion
Community Champion

Hi @vincenardo 

MAX LEVEL =
MAXX (
    FILTER (
        'HC-1 INSTALL PBI Service Resources with Skill',
        'HC-1 INSTALL PBI Service Resources with Skill'[Name]
            = EARLIER ( 'HC-1 INSTALL PBI Service Resources with Skill'[Name] )
    ),
    'HC-1 INSTALL PBI Service Resources with Skill'[Installer Skill Name Lvl]
)

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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