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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.