Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi!
I'm very new to PowerBI. I have a table of sensor data that is logged over time (voltages, currents, temperatures). I would like to look at average values for a given time period (day, month, etc).
New data is normally logged once per hour. The trick is that the data is coming over a wireless network and sometimes connection is lost and data is lost. So the sample points are not necessarily evenly spaced. You may have one data point at 1pm,2pm and then not have any more until 5pm. Or sometimes an event will cause an extra sample to be logged in order to capture a change in state.
Simply averaging the column over a time period (taking the average of each sample in that time period) is not the right approach. Each check in actually has a time weight associated with it and these weights are not equal.
The PowerBI default behavior when you group by month and show the average seems to be to just take this simple average. How would I go about including the Time Weight component and plotting the average of those values instead?
Thanks!
Solved! Go to Solution.
Hi @Graham99,
How to get the Time Weight component? By daily average or daily sum? By hourly sum or hourly average? Please share a sample and the result you want. The pbix file would be great.
If you want to sum them up by day then apply the average. you can try it like this:
Measure = AVERAGEX ( SUMMARIZE ( Sales, 'Calender'[Date], "perDay", SUM ( Sales[Quantity] ) ), [perDay] )
Best Regards!
Dale
Hi @Graham99,
How to get the Time Weight component? By daily average or daily sum? By hourly sum or hourly average? Please share a sample and the result you want. The pbix file would be great.
If you want to sum them up by day then apply the average. you can try it like this:
Measure = AVERAGEX ( SUMMARIZE ( Sales, 'Calender'[Date], "perDay", SUM ( Sales[Quantity] ) ), [perDay] )
Best Regards!
Dale
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |