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

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

Reply
Anonymous
Not applicable

Dax -Count if help

Hello World,
I have a column called Age category which has 4 categories. 
Past Due 1-30 Days
Past Due 1-30 Days
Past Due 1-30 Days
Past Due 1-30 Days
I want to create a measure to count each categories. I do I use count if here. Please help

assa.PNG

1 ACCEPTED SOLUTION

@Anonymous 

Create a measure

Count = COUNTROWS ( 'Table' )

and place it in the values of the matrix 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@tamerj1 Thank you very much Sir.

tamerj1
Super User
Super User

Hi @Anonymous 

just place the column [Age Category] in a table or matrix visual along with the measure = COUNTROWS ( 'Table' )

Anonymous
Not applicable

@tamerj1 Not sure what you mean. I kept the age category as matrix viz. How do i count it?Capture.PNG

@Anonymous 

Create a measure

Count = COUNTROWS ( 'Table' )

and place it in the values of the matrix 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.