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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mitchryan8
Frequent Visitor

Power BI Dates Grouping Individually

I have a date column that I pull in from a view in Azure Databricks. I want it formatted 'Jan 2024' so I formatted it MMM YYYY in the format box. But this is causing all the dates to group individually. All the Jan 2024s aren't rolling up together, they stay separate:

mitchryan8_0-1717604028652.png

 

Does anyone know how to fix this? It is making my line graphs look insane.

1 ACCEPTED SOLUTION

That's why TDFecha is useful, you create a month number column and use the sort by Column tool, sorting YEAR_MONTH by Month(In number).

Recommendation, since you have several values in a month for the same value in YEAR_MONTH, what I do is filter specific days from Power Query, so that there is a 1 - 1 relationship, like the following example.

JETRO2000_0-1717615489718.png

Then you sort it by...

In case it gives you an error, save your changes, close the file, and try again.

JETRO2000_1-1717615621525.png

If this publication help , considering accept it as the solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @mitchryan8 ,

Is your problem solved, and if so, please mark the answer you think is correct as solution.

Best Regards,

Xianda Tang

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

Syndicate_Admin
Administrator
Administrator

Why not work with a calendar dimension table and make your modifications to this table according to your need?

JETRO2000_0-1717609146972.png

Give it a try and comment on how it went.

That "works" in the sense that they do group together. But the column is not longer in Date format, once you use the FORMAT function it turns it into TEXT. And then it doesn't sort in order so kind of defeats the whole purpose

That's why TDFecha is useful, you create a month number column and use the sort by Column tool, sorting YEAR_MONTH by Month(In number).

Recommendation, since you have several values in a month for the same value in YEAR_MONTH, what I do is filter specific days from Power Query, so that there is a 1 - 1 relationship, like the following example.

JETRO2000_0-1717615489718.png

Then you sort it by...

In case it gives you an error, save your changes, close the file, and try again.

JETRO2000_1-1717615621525.png

If this publication help , considering accept it as the solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.