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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PatCav
Frequent Visitor

Most Frequent value in a column - through calculated columns

Hi I need to do the below: 

1. Determine the most frequent text value in column (Answer) and display that in a calcualted column (C1)

2. Count the number of times the most frequent value occurs in column (Answer) and display that in a calculated column (C2)

 

Data example: 

Ref    Answer         C1                   C2

1       Reception     Reception         3

2       Manager       Reception         3

3       Reception     Reception         3

4       Reception     Reception         3

5       Clerk             Reception         3

 

 

I have to use calcualted columns for this. 

 

Any help is much appreciated!

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

For your reference.

 

Step 1: I make a summarize table. (After Step 2, I add a column 'Number'.)

   Number = COUNTROWS(RELATEDTABLE('Data'))

    mickey64_0-1697119629239.png

 

Step 2: I add a relationship.

    mickey64_1-1697119671244.png

 

Step 3: I add 2 columns below.

    C2 = MAX('Summarize Table'[Number])

    C1 = LOOKUPVALUE('Summarize Table'[Answer],'Summarize Table'[Number],[C2])

    mickey64_2-1697119766141.png

 

View solution in original post

1 REPLY 1
mickey64
Super User
Super User

For your reference.

 

Step 1: I make a summarize table. (After Step 2, I add a column 'Number'.)

   Number = COUNTROWS(RELATEDTABLE('Data'))

    mickey64_0-1697119629239.png

 

Step 2: I add a relationship.

    mickey64_1-1697119671244.png

 

Step 3: I add 2 columns below.

    C2 = MAX('Summarize Table'[Number])

    C1 = LOOKUPVALUE('Summarize Table'[Answer],'Summarize Table'[Number],[C2])

    mickey64_2-1697119766141.png

 

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.

Top Solution Authors