Forum Discussion

leniorcortivo's avatar
leniorcortivo
Advocate I
5 years ago
Solved

How to summarize a table for the maximum value

Hello,

 

I have the following table.

Cod 1Cod 2Cod 3
212511
212521
212551
212581
212582

 

I want to summarize this table to just show de lines with the maximum value of the Cod 3. I've attempt to use summarize with filter and other options but without success.

 

The result table would like

 

Cod 1Cod 2Cod 3
212511
212521
212551
212582

 

Thanks

  • Hi, leniorcortivo 

    Please check the below for creating a new table.

     

     

    Result Table =
    GROUPBY (
    'Table',
    'Table'[Cod 1],
    'Table'[Cod 2],
    "Cod3", MAXX ( CURRENTGROUP (), 'Table'[Cod 3] )
    )

     

     

    https://www.dropbox.com/s/og3pw910w297dh4/lenior.pbix?dl=0 

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM

2 Replies

  • Hi, leniorcortivo 

    Please check the below for creating a new table.

     

     

    Result Table =
    GROUPBY (
    'Table',
    'Table'[Cod 1],
    'Table'[Cod 2],
    "Cod3", MAXX ( CURRENTGROUP (), 'Table'[Cod 3] )
    )

     

     

    https://www.dropbox.com/s/og3pw910w297dh4/lenior.pbix?dl=0 

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM