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
shanv142
Regular Visitor

Stacked Area Chart - Convert to Monthly

Hi,

 

I have some daily data which I have converted into a stacked area chart. The chart looks messy as there are too many data points so looking to convert to monthly data for the chart. 

However, I can't seem to work out how to do this. The data is in a date format ('Start Time') so should be easy enough but not sure where I would find this.

shanv142_0-1705421553953.png

Thanks for help in advance.

1 ACCEPTED SOLUTION
ray_aramburo
Super User
Super User

Oh, I missed to tell you to add the Month column as well. You can add it as a new column in your date table with a formula like this: 

Month_Name = FORMAT(Table[Date], "MMMM")




Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
ray_aramburo
Super User
Super User

Oh, I missed to tell you to add the Month column as well. You can add it as a new column in your date table with a formula like this: 

Month_Name = FORMAT(Table[Date], "MMMM")




Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





ray_aramburo
Super User
Super User

You need to have a calendar/date table. 

First, you need a date column in that table. You can extract it through Power Query by selecting the time column, going to Add Column and selecting the date option:

ray_aramburo_0-1705424051359.png

 

Then, you can close & apply and create a new table with DAX (go to Table view to find the option easily) and use the command CALENDARAUTO() to generate an automatic calendar table.

After that, create a relationship between the date column from the new table and the date column (recently added) from your current table. 

Finally, on your axis use the month column from the new table as the field. 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Hi - thanks for your help.

 

Just had a couple of follow up questions:

- When adding the date column to the existing data should this be 'Date Only'? 

I followed the steps and I'm able to create the relationship however I dont have a month column to choose from? If I add a Month column, rather than 'Date Only', I only get months 1 - 12 however I need to be able to have a distinction between Month 1 2016 vs Month 1 2017/18/19 etc.

 

I have the below option which I added to Axis for my visual, however this is still daily data

shanv142_0-1705577693669.png

 

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.