Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
jstein91694
Frequent Visitor

Running Hourly Averages of Data Set

jstein91694_0-1603905316665.png

I currently have a dataset that each timestamp has values for input, output, and more. I am looking to smooth out the data by calculating a running hourly average for each value. This will take smooth out the plots and eliminate the noise. Any help would be much appreciated!

Thanks!

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hello @jstein91694 ,

Just use the time as the X axis and create the following measure:

Measure = AVERAGEX(VALUES(TABLE[HOUR]),[GAHP XX XXX])

If the problem persists, could you share the dummy data and formula of the [GAHP XXXX]

Best regards
Liang
If this post helps, then consider Accept it as the solution to help other members find it faster.

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hello @jstein91694 ,

Just use the time as the X axis and create the following measure:

Measure = AVERAGEX(VALUES(TABLE[HOUR]),[GAHP XX XXX])

If the problem persists, could you share the dummy data and formula of the [GAHP XXXX]

Best regards
Liang
If this post helps, then consider Accept it as the solution to help other members find it faster.

This works, however, I would like to keep Date-Time on my x-axis since I have other visuals that I would also like to include in my plots.

amitchandak
Super User
Super User

@jstein91694 , Create a column like this

 

Date Hour = Date(year([datetime])+month([datetime])+day([datetime])) + time(hour([datetime]),0,0)

 

and create a measure like this

calculate( [average measure], filter(allselected(Table),Table[Date Hour] =max(Table[Date Hour])))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.