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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Countif statement in Power BI

I am trying to write a countif equivalent function in a new column in Power BI. I have a column of delivery numbers and I want to return the count of how many times that delivery shows up for every delivery. So delivery 80024112 shows up 4 times, 4 should be returned. Delivery 80030483 shows up 2 times, 2 should be delivered.

 
1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Create this dax measure

Counter = COUNTROWS(yourtablename)

 

Then in a blank report canvas add a table visual.
Drag the delivery number column and the Counter meaure

speedramps_0-1698876037724.png

Thanks for the clear description of the problem with example data. I wish everyone did that!

Remember we are unpaid volunteers. So please click the thumbs up and the [accept as solution] button to leave kudos. 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you ! 

If you quote @speedramps in your next tickets then I will then receive an automatic notification, and will be delighted to help you again.

Please now click the thumbs up and the [accept as solution] button.  Thnak you.

View solution in original post

1 REPLY 1
speedramps
Super User
Super User

Create this dax measure

Counter = COUNTROWS(yourtablename)

 

Then in a blank report canvas add a table visual.
Drag the delivery number column and the Counter meaure

speedramps_0-1698876037724.png

Thanks for the clear description of the problem with example data. I wish everyone did that!

Remember we are unpaid volunteers. So please click the thumbs up and the [accept as solution] button to leave kudos. 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you ! 

If you quote @speedramps in your next tickets then I will then receive an automatic notification, and will be delighted to help you again.

Please now click the thumbs up and the [accept as solution] button.  Thnak you.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.