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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Average Calculation of Values for Multiple Rows

Hi,

 

I am new to PowerBI, and I have an assignment to complete using PowerBI.

 

Summary of my case.

 

I have different equipment names. Then for each equipment, I have differnt output values at differnt time time intervals.

 

I want to calculate and display the average value of some specific equipment names for specific period of time. For example, I want to shown on my dashboard that what was the average value of the equipment A and B over the last 30 days. 

 

P.S: In actual data, there are thousand of timestamps. 

 

Here is my sample data. 

 

Equipment NamesTime of EventOutput values
A14/03/2001 13:301.5
A15/03/2002 13:312.69
A16/03/2001 01:333.88
A17/03/2001 03:305.07
A18/03/2001 13:406.26
A19/03/2001 12:307.45
A20/03/2001 01:308.64
B21/03/2001 00:309.83
B22/03/2001 13:0011.02
B23/03/2001 19:3012.21
C24/03/2001 01:3113.4
C25/03/2001 13:3214.59
D26/03/2001 13:3315.78
D27/03/2001 13:4316.97
D28/03/2001 13:5318.16
D29/03/2001 13:2819.35
D30/03/2001 13:2520.54
E31/03/2001 13:2421.73
E01/04/2001 13:1422.92
E02/04/2001 13:1324.11
E03/04/2001 13:1225.3
E04/04/2001 13:1126.49
E05/04/2001 13:5927.68
E06/04/2001 13:2128.87

 

I would really appreciate if somebody could help me please. Many thanks. 

 

Best Regards,

1 ACCEPTED SOLUTION

@Anonymous 
Here is a sample file. Hope it helps https://we.tl/t-6C59pmwowt

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

@Anonymous 
Then what is the problem with simple AVERAGE function? It will be automatically filtered by the selected equipment and the date/time range. Unless you are looking for a moving average over the past 30 days from the selected date?

Anonymous
Not applicable

Please help me in calculating the simple Average. I assume it would be simple, but I am not figure it out. I really don't know how to calculate the average for a given equipment for multiple timestamps value. Since all the equipments values are written in the same column, then how to filter the values for one specific equipment to take average. 

@Anonymous 
Here is a sample file. Hope it helps https://we.tl/t-6C59pmwowt

tamerj1
Super User
Super User

Hi @Anonymous 
Would you please provide the expected results based on the given sample data? What can of visual(s) are you planning to use to disply the results?

Anonymous
Not applicable

The expected results are the average values. For instance, the average value of equipment A for the last 30 days is = XYZ. Then, I want to display this number in the dashboard probably by using a Gauge, Card, or Multi-row card.

I believe, if the values are calculated, then plotting and displaying is not that complicated. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.