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
datashock
New Member

Count frequency of a value in a single column

Hi, I'm quite new to Power BI and am looking for a way to count the number of times a value appears in one specific column and output the value name along with the frequency it occurs.

For example if my column has:

 

Apple

Apple

Banana

Orange

Orange

 

and it should output:

 

Apple 2

Banana 1

Orange 2

I've done this using Query Tool but I'm looking for a way to do so via DAX. Thanks!

4 REPLIES 4
pratyashasamal
Memorable Member
Memorable Member

Hi @datashock ,
You can refer to DAX calculation :-

Term Count = 
VAR vTerm = Table1[Term]
VAR vResult =
    COUNTROWS ( FILTER ( Table1, CONTAINSSTRING ( Table1[Title], vTerm ) ) )
RETURN
    vResult

Thanks,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi pratyashasamal, this hasn't worked for me. Do I need to replace both Term and Title with the name of my column I want to get the values for?

Hi @datashock ,
Please replace the the column names and Tables Names .
It was just an example.
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @pratyashasamal yes I know I need to replace them but it's not clear what goes where, eg is 'Term' referring to my column name? What about 'Title'? I know that Table1 refers to the table. Thanks.

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