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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dcomad3a
Regular Visitor

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 @dcomad3a ,

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!
Imagem de fundo



View solution in original post

2 REPLIES 2
marcelsmaglhaes
Super User
Super User

Hey @dcomad3a ,

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!
Imagem de fundo



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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.