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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Creating an average per week table

Hi All,

 

I have a data set that looks something like this:

DateResult
16/11/20205
18/11/20207
18/11/20202
19/11/20208
22/11/20201
24/11/20209
27/11/20204
28/11/20203

 

I would like to generate a new table so that one column is the week start date (Monday) and the other is the average result of that particular week (Mon-Sun).

So if you were to take the above as an example, I should have something like this:

Week Start DateAverage Result of Week
16/11/20204.6
23/11/20205.3

 

Any help would be fully appreciated. Thanks.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,Create a new column like

Week Start date = 'Table'[Date]+-1*WEEKDAY('Table'[Date],2)+1

 

Now you can use thismeasure in the visual

measure = Average('Table'[Result])

 

or create a table like

new table = summarize('Table','Table'[Week Start date] ,"Avg", Average('Table'[Result]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous ,Create a new column like

Week Start date = 'Table'[Date]+-1*WEEKDAY('Table'[Date],2)+1

 

Now you can use thismeasure in the visual

measure = Average('Table'[Result])

 

or create a table like

new table = summarize('Table','Table'[Week Start date] ,"Avg", Average('Table'[Result]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors