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! Learn more

Reply
StormyButter24
New Member

Grouping dates into months

Hi,

 

I am newly introduced to power Bi and I want to have a matrix which shows the count of phone calls, tasks and emails created each month. 

I used the Created Date as the Rows and I managed to change the format to "month year". But now I have multiple rows for the same month.

Currently my Matrix has hundreds of rows, and I want to group the rows for the same month to decrease the quantity of rows in the table.

Any advice would be immensely helpful. thankyou

 

11 REPLIES 11
Anonymous
Not applicable

Hi, @StormyButter24 

I'm happy to answer your questions. Based on your communication with Idrissshatila, I think you need that displays phone, task, Email and other information grouped by month, and counts each month. I create a matrix using the following sample data:

1.png

On date we enable hierarchy:

2.png

Here we only keep the month, and then put the other columns into the value of the matrix:

3.png

We can use the following formula to create a measure to work with the slicer to calculate count of phone calls, tasks and emails created each month:

Dax formula:

Total of months = CALCULATE(COUNTROWS('Tabelle1'),Tabelle1)

4.png

5.png

6.png

Is the above the result you need? If not, please tell me the effect you want, and I will do my best to help you.

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi 

thank you for your response, with the hierarchy how did you get the month? 
is it just by using the "MONTH()" formula?

StormyButter24
New Member

Hi, 

Yeah I clicked matrix. In a table does it automatically group it?

@StormyButter24 ,

 

no the matrix is who automatically group it,

 

do you have any other fields in the rows ?



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi,

No, all I have in rows is the created date. 

And I created the matrix again and it doesnt aggregate the months. Just hundreds of rows with the month and year for the row

@StormyButter24 ,

 

remove the created date and create a calculated collumn for month year as the following

month year = format ('yourTableName'[created date],"mmmm YYYY")

and then use this collumn only in rows.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi, how do you do create a calculated field? I'm a rookie with this software

@StormyButter24 ,

 

check this video https://youtu.be/ePPi1LLX0sA?si=Q6rD_spkbaJ7oEcj

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Idrissshatila
Super User
Super User

HEllo @StormyButter24 ,

 

if you have the month field as a first field in the rows then it should group them automatically.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi, unfortunately it hasnt. I'll show a photo.unnamed.png

Hello @StormyButter24 ,

 

are you sure this is a mtrix and not a table, this is the matrix

Idrissshatila_0-1706872811924.png

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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