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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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