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
pedroccamaraDBI
Post Partisan
Post Partisan

DAily average by product and day

Hello all
I have this stocks table to get the daily average by product.
apagar2.JPG
And what i am asking you guys, what's the right way to calculate this daily average by product.
Thank you all in advance
Best regards

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

You can use the basic AVERAGE function it will change its values based on you filter. So AVERAGE(Table[Column]). Also you might benefit for using table visuals built in average aggregation.

Example:

ValtteriN_1-1644050656895.png

 

ValtteriN_0-1644050634908.png

Measure 16 = AVERAGE(AverageItem[Column1])

Ping me with @ if I missed your goal.

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/




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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ValtteriN
Super User
Super User

Hi,

You can use the basic AVERAGE function it will change its values based on you filter. So AVERAGE(Table[Column]). Also you might benefit for using table visuals built in average aggregation.

Example:

ValtteriN_1-1644050656895.png

 

ValtteriN_0-1644050634908.png

Measure 16 = AVERAGE(AverageItem[Column1])

Ping me with @ if I missed your goal.

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/




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

Proud to be a Super User!




Hi @ValtteriN 
I believe you're right. I lost a lot of time with AVERAGEX(VALUES(Dates[Date]),[Stock]) and with KEEPFILTERS instead of VALUES but also a simple DIVIDE (Stock, countrows (Dates)). At the end, maybe because this is not a table with a record per day, your solution is the one, AVERAGE ( Table[column]).
Thanks a lot Valtteri

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.