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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MAkiva1
Helper I
Helper I

Summarizing Data by Month and Year

Hi, I'm new to Power Bi.  I'd like to summarize my daily intake of new clients in a table or matrix and display the data by month and year.  I have one column, "RetDat" that displays the intake date in the following format: mm/dd/yyyy, time.  How can I sum up the data by month and then by year?

 

For instance, what I'd like to see is:

 

2016

Jan: 50

Feb: 45

Mar: 53

.....

2017

Jan: 55

....

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @MAkiva1,

 

As smoupre said, you can simply use matrix to achieve your requirement.

 

Steps:
1. Switch date to hierarchy mode, keep year and month.
2. Drag date to value field and change the summary mode to count.

Capture.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

When you import your data, Power BI should recognize the date time field and create an automatic date hierarchy for you. You then just need to drop that hierarchy into a matrix or line chart or column chart along with your value that you want to display.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I tried this and I received a list of all dates from the database -- it wasn't organized by year or month.  I'm using DirectQuery, not Import.  

Anonymous
Not applicable

Hi @MAkiva1,

 

As smoupre said, you can simply use matrix to achieve your requirement.

 

Steps:
1. Switch date to hierarchy mode, keep year and month.
2. Drag date to value field and change the summary mode to count.

Capture.PNG

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors