Forum Discussion
How to summarize a table for the maximum value
Hello,
I have the following table.
| Cod 1 | Cod 2 | Cod 3 |
| 2125 | 1 | 1 |
| 2125 | 2 | 1 |
| 2125 | 5 | 1 |
| 2125 | 8 | 1 |
| 2125 | 8 | 2 |
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 1 | Cod 2 | Cod 3 |
| 2125 | 1 | 1 |
| 2125 | 2 | 1 |
| 2125 | 5 | 1 |
| 2125 | 8 | 2 |
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
- Jihwan_KimSuper User
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
- Pragati11Super User