Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Can I create a Measure to average 'HydroVu Data'[value] for each 'SiteLocation'[name] with the last 24 hours and then take the average fo these averages? So the result would be a single number that describes the average, but isn't weighted in favor of SiteLocations with more data points.
So filter by DateTimeGMT, then get these averages grouped by SiteLocation[name] and then get the final average of those averages.
I looked at these and couldn't quite make sense of it:
https://community.powerbi.com/t5/Desktop/AS-AVERAGED-BY-A-CATEGORY/m-p/2057995#M768836
https://community.powerbi.com/t5/Desktop/Calculate-Average-per-category/m-p/362637#M163818
Thanks for any help!
Solved! Go to Solution.
You can use a measure expression like this. You can use a slicer for the date range, or wrap it in a CALCULATE with a filter on date.
LocationAverage =
AVERAGEX (
DISTINCT ( Site[LocationName] ),
CALCULATE ( AVERAGE ( 'HydroVu Data'[value] ) )
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You can use a measure expression like this. You can use a slicer for the date range, or wrap it in a CALCULATE with a filter on date.
LocationAverage =
AVERAGEX (
DISTINCT ( Site[LocationName] ),
CALCULATE ( AVERAGE ( 'HydroVu Data'[value] ) )
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Ah, Distinct was the key, perfect! Thank you!
can you put some dummy data here for more details
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
So averaging every row is 992.22, but what I want is an average of the averages for SensorName, which is 992.87.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
115 | |
74 | |
57 | |
47 | |
38 |
User | Count |
---|---|
167 | |
117 | |
61 | |
58 | |
46 |