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! Learn more

Reply
CalvinL
Helper II
Helper II

Calculate AVG value between certain dates

Hi all,

 

Looking to calculate the average of a value between certain dates. Below is a sample of the data that I have.

 

Date AttributeValue
01/03/2020 00:00:00 HH147
28/03/2020 00:00:00 HH158
15/03/2020 00:00:00 HH178
05/04/2021 00:00:30 HH266
21/04/2021 00:00:30 HH272

 

 

My intended result is to display the average value for each HH (half hour) for the entire month.

 

Example of the result:

Average of HH1 March Average of HH2 April
61 69

 

Thank you.

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @CalvinL ,

 

Looking at your sample data, you can do the following:

  • Create a table visual in Power BI
  • Move ATTRIBUTE column to it.
  • Move VALUE column to it with summarisation set to Average

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
CalvinL
Helper II
Helper II

Thanks guys, these solutions worked. Much appreciated!

v-kelly-msft
Community Support
Community Support

Hi  @CalvinL ,

 

You can create 2 calculated columns as below:

 

Month = FORMAT('Table'[Date.1],"MMMM")
Column = "Average of" &" "&'Table'[Attribute]&" "&'Table'[Month]

 

Then create a matrix visual,put column in the field of "column" ,value in the field of "value",right click on value,select "average":

Annotation 2020-05-20 143306.png

And you will see:

Annotation 2020-05-20 143510.png

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Anonymous
Not applicable

Hi @CalvinL , you can easily do this !!!
1. select  matrix visual.
2. put columns value to Value.
3. Select average from values i.e..
Screenshot (37).png

Hope You will get this....
Thanks

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution!

parry2k
Super User
Super User

@CalvinL you can easily achieve by following:

 

use matrix visual

put attribute on columns

value on values and choose aggregation to average

 

or create a measure

 

Avg = AVERAGE ( Table[Value] ) 

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Pragati11
Super User
Super User

Hi @CalvinL ,

 

Looking at your sample data, you can do the following:

  • Create a table visual in Power BI
  • Move ATTRIBUTE column to it.
  • Move VALUE column to it with summarisation set to Average

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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