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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
OdiAssli
Frequent Visitor

How to count number of rows with specific column value?

Hi, 

 

I have the below table and I would like to add new column (custom column?) that will count number of "Names" that have the same "Age" value. then I will display the data into table in report

 

NameAge
Odi27
Sofian27
Ludmila29
Yousef30
Eilon30

 

Thanks

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @OdiAssli 

CALCULATE (case insensitive) is a BASE power BI statement. I don't know any statement that would be more power BI than CALCULATE 🙂

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

6 REPLIES 6
Syndicate_Admin
Administrator
Administrator

Hello Good morning,

I'm trying to make a report and I want to know how I can take the following example in pbi

example:

I have a date of 1000 tickets per month and I want to take out how many have been met per month and it looks like the picture in pbi

angiem_96_0-1619476156836.png

I appreciate your help.

Syndicate_Admin
Administrator
Administrator

Good morning, I don't allow myself to make a column with those formulas, unless I made a measure, but if I need the column as I could?

az38
Community Champion
Community Champion

Hi @OdiAssli 

try

Column = calculate(DISTINCTCOUNT('Table'[Name]), ALLEXCEPT('Table', 'Table'[Age]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
OdiAssli
Frequent Visitor

Hi @az38 ,

Is it Power BI formula? I got this error:

Expression.Error: The name 'calculate' wasn't recognized. Make sure it's spelled correctly.

az38
Community Champion
Community Champion

Hi @OdiAssli 

CALCULATE (case insensitive) is a BASE power BI statement. I don't know any statement that would be more power BI than CALCULATE 🙂

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
OdiAssli
Frequent Visitor

Works good, Thank you @az38  😀

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.