The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 @sigridr ,
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 @sigridr ,
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 @sigridr,
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
76 | |
65 | |
52 | |
51 |
User | Count |
---|---|
128 | |
117 | |
78 | |
65 | |
63 |