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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Count of Items per Month

This seems like it should be simple but I can't seem to figure it out nor find the solution within the community. I have a Date table I created and I want to count the number of items created within each month, for example 10 items in Jan, 15 in Feb, etc. I placed the month column on my X-axis and the Created On column on my Y-axis but what I get in return is the total number of items showing up in each month. 

 

 

 

Count per month.pngPer Month Count.png

1 ACCEPTED SOLUTION
marcelsmaglhaes
Super User
Super User

Hey @Anonymous ,

You can try use COUNTROWS function in a DAX measure. See the image bellow

marcelsmaglhaes_0-1704927616098.png

marcelsmaglhaes_1-1704927668820.png

 

 


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



View solution in original post

4 REPLIES 4
marcelsmaglhaes
Super User
Super User

Hey @Anonymous ,

You can try use COUNTROWS function in a DAX measure. See the image bellow

marcelsmaglhaes_0-1704927616098.png

marcelsmaglhaes_1-1704927668820.png

 

 


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



hi, can you confirm the actual Dax you used? Im trying to use countrows and it wont work.

Hi @Cmatt67 

What do you want to do exactly?


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Anonymous
Not applicable

Thank you, Marcel. I was using the formula incorrectly but it is working now using Countrows.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.