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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Get Maximum Value Text

Hello Comrades

I need to get the Most Repeated Value Text for a certain value in a column, I have these people who appear repeatedly and within each value I want to know which one appears the most. For example, in the extra column, for everything that is equal to "KEYFT&T" I will see "Sandoval" Since it is the one with the highest count

Ign_Ort__0-1723577059367.png

Best regards

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you Greg_Deckler and arava 

Hi, @Syndicate_Admin 

Based on your description, I've used the following sample data:

vjianpengmsft_0-1723628609926.png

I created a measure using the following DAX expression:

Max_Conteo_name = 
VAR _KEYFT = SELECTEDVALUE('Table'[KEYF&T&T])
VAR _Conteo = MAXX(FILTER(ALL('Table'),'Table'[KEYF&T&T]=_KEYFT),'Table'[Conteo])
RETURN 
MAXX(FILTER('Table','Table'[Conteo]=_Conteo&&'Table'[KEYF&T&T]=_KEYFT),'Table'[SUP])

Put the KEYF&T&T and this metric into the table visual, and you can see that for each different KEYF&T the corresponding SUP with the largest Conteo is returned.

vjianpengmsft_1-1723628901383.png

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
arava
Regular Visitor

If you'd like to make a calculated column, you can use the below formula and set the filter value to 1. 

 

myColumn = RANKX(myTable, CALCULATE(COUNTROWS(myTable), FILTER(myTable, EARLIER(myTable[myColumn]) = myTable[myColumn])))
Greg_Deckler
Community Champion
Community Champion

@Syndicate_Admin Seems like a pretty straight-forward lookup min/max. Lookup Min/Max - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Not as such, because what I want to return to me is a text, not so much what is the maximum but the name of the one that has the maximum value

Anonymous
Not applicable

Thank you Greg_Deckler and arava 

Hi, @Syndicate_Admin 

Based on your description, I've used the following sample data:

vjianpengmsft_0-1723628609926.png

I created a measure using the following DAX expression:

Max_Conteo_name = 
VAR _KEYFT = SELECTEDVALUE('Table'[KEYF&T&T])
VAR _Conteo = MAXX(FILTER(ALL('Table'),'Table'[KEYF&T&T]=_KEYFT),'Table'[Conteo])
RETURN 
MAXX(FILTER('Table','Table'[Conteo]=_Conteo&&'Table'[KEYF&T&T]=_KEYFT),'Table'[SUP])

Put the KEYF&T&T and this metric into the table visual, and you can see that for each different KEYF&T the corresponding SUP with the largest Conteo is returned.

vjianpengmsft_1-1723628901383.png

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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