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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Get max repeated value in column

Hi all,

 

i have a column in which values are like a,b,c,d,...and these values are repeating in nature. i want to see a variable which has highest count.

 

Let me how would it be possible.

 

TIA

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

 

It seems that @rajendraongole1  solution should meet your requirements if  i understand correctly.

Here is a demo.

It shows as below:

68.png

 

If it is,  please mark the helpful replies or add your reply as Answered to close this thread.

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

 

It seems that @rajendraongole1  solution should meet your requirements if  i understand correctly.

Here is a demo.

It shows as below:

68.png

 

If it is,  please mark the helpful replies or add your reply as Answered to close this thread.

 

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@Anonymous 

Create a rank  measure

rankx(all(Table[Category]),calculate(sum(Table[Value])),,desc,dense)

 

use 1 as a filter in visual on rank measure. Please refer my blog, where this has been done : https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners/ba-p/890814

Appreciate your Kudos.
Proud to be a Datanaut Connect on Linkedin

 

rajendraongole1
Post Prodigy
Post Prodigy

Try following measure:

 

Max_Count =MAXX ( VALUES ( YourTable[ID] ), CALCULATE ( COUNTROWS ( YourTable ) ) )

 

change YourTable .

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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