Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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,

5 Replies

  • tamerj1's avatar
    tamerj1
    Community Champion

    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's avatar
      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. 

  • tamerj1's avatar
    tamerj1
    Community Champion

    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's avatar
      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.