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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to aggregate weekly data into monthly

Hello, I have two data sources, one is monthly and the other is weekly. I want to aggregate teh weekly one into monthly. Can anyone help me achieve that. Thanks

1 ACCEPTED SOLUTION

Hi @Anonymous 

Add a calculated column like below to get the first date of each month and change its data type to Date.

StartOfMonth = EOMONTH([Date],-1)+1

021002.jpg

Kindly let me know if this helps.
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

View solution in original post

4 REPLIES 4
mohammedadnant
Impactful Individual
Impactful Individual

Hi @Anonymous 

 

Good day,

 

Try adding a new calcualted column which gives you only Month & Year

MonthYear = Format(column1, "MMM-yyyy")

 

Now you can display the result by Month, hope this helps.

 

Thanks & Regards,

Mohammed Adnan

https://www.youtube.com/c/taik18

Learn about Power BI

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!

Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18
Anonymous
Not applicable

hkhan_0-1612549590698.png

 

i just want to aggregate this weekly data into monthly. For instance 1967-01-01 and the aggregate of four week and 1967-02-01 and then the aggregate of its four weeks. 

 

Hi @Anonymous 

Add a calculated column like below to get the first date of each month and change its data type to Date.

StartOfMonth = EOMONTH([Date],-1)+1

021002.jpg

Kindly let me know if this helps.
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

richbenmintz
Solution Sage
Solution Sage

Hi @Anonymous ,

 

Do you have a date table that define a 4-4-5, style calendar? If not then weeks will span months? I guess you can use a date dimension that defines all the sttributes of the date that you need and join that to your fact

 

Make Sense



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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