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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors