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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Davebryant1
Frequent Visitor

Count dates within months

Hi,

I feel like this should be an easy measure to write but im struggling.

I have a dataset which includes a start date. I want to count and summarise the start date by month and year. 

 

Data example

 

Start date
15/06/2022
14/07/2022
18/07/2022
16/09/2022
20/10/2022
10/06/2022
27/06/2022
18/07/2022
18/07/2022
26/07/2022
12/08/2022
09/09/2022
28/09/2022
03/10/2022
11/10/2022
11/10/2022
08/06/2022

 

Required output

Month#
Jun-224
Jul-225
Aug-221
Sep-223
Oct-224

 

I have a calendar table but as im wanting to display by month and year i cant figure out how to display the date in that format without it being in text format. I then cant match the data as its date to text fields

 

Thanks

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Davebryant1 

i even don't think you need a measure.

if you want to create a measure , try this

Measure = count('Table'[Start date])

1.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@Davebryant1 

i even don't think you need a measure.

if you want to create a measure , try this

Measure = count('Table'[Start date])

1.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks Ryan, i've got both ways to work. 

Easy when you know how!

Cheers

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.