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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors