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
icturion
Resolver II
Resolver II

Calculate average value per weekday

Hi

 

The aim is to calculate the average value per day of the week.

 

Table:

table.JPG

I only get the average per record and not the average per day of the week. 

 

Maybe someone can help

1 ACCEPTED SOLUTION

Hi,

 

I revolved it:

 

Measure 1  = SUM(Table [aantal monsters])

measure 2 = AverageX ( VALUES(table[DATE]), [measure 1])

 

thx 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@icturion , have date table, There you define a week and week rank as column

https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...

Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)

 

And use a measure like this
This Week = CALCULATE(AverageX(values(Date[Date]),Sum(Table[Antal monsters])), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))

 

refer

https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

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

I'm probably doing something wrong, because the results are wrong. Suppose on Sundays in September I took a total of 20 samples. so far September has had 2 Sundays. then the average should be 10 samples per Sunday.

hi  @icturion 

Please share your sample data and your expected output, that will be a great help.

Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Lin

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

Hi,

 

I revolved it:

 

Measure 1  = SUM(Table [aantal monsters])

measure 2 = AverageX ( VALUES(table[DATE]), [measure 1])

 

thx 

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