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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Keith011
Helper III
Helper III

Using Measure to calculate list ?

Hi there!

 

Is it possible to use a Measure to calculate the count of each values in a column? (The table below is just one of a column in my raw data table)


For example,

Red = count of 5

Blue = count of 3

Green = count of 3

Black = count of 2

Purple = count of 3

 

color names
red
blue
green
green
green
blue
black
black
purple
red
red
red
red
purple
purple
blue

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Keith011 ,

 

I already helped you move this post to Power BI Desktop forum.

Here's the solution. You can create a measure using COUNT function.

Count = COUNT('Table'[color names])

vstephenmsft_0-1672033457963.png

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Keith011 ,

 

I already helped you move this post to Power BI Desktop forum.

Here's the solution. You can create a measure using COUNT function.

Count = COUNT('Table'[color names])

vstephenmsft_0-1672033457963.png

 

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

Use the DISTINCTCOUNT function, and use the colors as the dimension.

 

-- Nate

nickvanmaele
Advocate II
Advocate II

This is probably a DAX / Power BI question which you could post in the Power BI forum instead of the Power Query forum?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.