Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I have a table of measurements done every hour every day, and I need to find the average per day (row average).
See picture and table.
| Dato | Kl. 1 | Kl. 2 | Kl. 3 | Kl. 4 | Kl. 5 | Kl. 6 | Kl. 7 | Kl. 8 | Kl. 9 | Kl. 10 | Kl. 11 | Kl. 12 | Kl. 13 | Kl. 14 |
| 01.12.2022 | 57,45 | 58,50 | 59,70 | 61,05 | 61,20 | 65,25 | 70,35 | 73,35 | 72,00 | 71,40 | 70,50 | 70,95 | 69,90 | 72,15 |
| 02.12.2022 | 60,45 | 62,25 | 63,90 | 62,85 | 64,65 | 66,60 | 71,25 | 73,20 | 72,00 | 71,85 | 71,25 | 73,95 | 74,55 | 73,95 |
| 03.12.2022 | 61,80 | 60,45 | 50,70 | 48,15 | 51,45 | 62,10 | 68,25 | 69,15 | 68,85 | 66,15 | 65,40 | 66,90 | 65,10 | 67,80 |
Thanks in advance,
//Sigrid
Solved! Go to Solution.
Hi @Anonymous ,
If the number of measurements per day is the same, you may try this.
AVG =
DIVIDE (
'Table'[Kl. 1] + 'Table'[Kl. 2] + 'Table'[Kl. 3] + 'Table'[Kl. 4] + 'Table'[Kl. 5] + 'Table'[Kl. 6] + 'Table'[Kl. 7] + 'Table'[Kl. 8] + 'Table'[Kl. 9] + 'Table'[Kl. 10] + 'Table'[Kl. 11] + 'Table'[Kl. 12] + 'Table'[Kl. 13] + 'Table'[Kl. 14] + 'Table'[Kl. 15] + 'Table'[Kl. 16] + 'Table'[Kl. 17] + 'Table'[Kl. 18] + 'Table'[Kl. 19] + 'Table'[Kl. 20] + 'Table'[Kl. 21] + 'Table'[Kl. 22] + 'Table'[Kl. 23] + 'Table'[Kl. 24],
24
)
For other cases, please consider the advice of tex628.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @Anonymous ,
If the number of measurements per day is the same, you may try this.
AVG =
DIVIDE (
'Table'[Kl. 1] + 'Table'[Kl. 2] + 'Table'[Kl. 3] + 'Table'[Kl. 4] + 'Table'[Kl. 5] + 'Table'[Kl. 6] + 'Table'[Kl. 7] + 'Table'[Kl. 8] + 'Table'[Kl. 9] + 'Table'[Kl. 10] + 'Table'[Kl. 11] + 'Table'[Kl. 12] + 'Table'[Kl. 13] + 'Table'[Kl. 14] + 'Table'[Kl. 15] + 'Table'[Kl. 16] + 'Table'[Kl. 17] + 'Table'[Kl. 18] + 'Table'[Kl. 19] + 'Table'[Kl. 20] + 'Table'[Kl. 21] + 'Table'[Kl. 22] + 'Table'[Kl. 23] + 'Table'[Kl. 24],
24
)
For other cases, please consider the advice of tex628.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @Anonymous,
Try the following.
After loading the data into Power BI Query editor, do the following:
Use "Unpivot other columns" while having the date highlighted:
Should give you the following:
Load the data and add the date and value to the table.
Change the aggregation to average:
Should give you the following:
Hope this helps!
Br,
J
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 49 | |
| 34 | |
| 33 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 60 | |
| 59 | |
| 39 | |
| 25 | |
| 24 |