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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
dmoggie
Helper I
Helper I

Help creating value by time to smooth data

Hi All,

 

I have been task with smoothing some data using the following simple calculation

 

85% of previous minute value + 15% of current minute value = 

 

Data is recorded in minute intervals for 24hrs a day in one column

 

what would be the best approach?

 

Any help would be greatly appreciated.

 

KR

5 REPLIES 5
Anonymous
Not applicable

@dmoggie 

Try first create a time column:

Time = TIME(HOUR([Datetime]),MINUTE([Datetime]),SECOND([Datetime]))

 

Then you may create the formula based on the minutes.

Measure = 
var This Min = CALCULATE(sum('Table'[Value]), FILTER(ALL('Table'),'Table'[time]=max('Table'[time]))
var Prev Min = CALCULATE(sum('Table'[Value]),FILTER(ALL('Table'),'Table'[time]=max('Table'[time])-"00:01:00"))

Return [Prev Min] *.85 + [This Min] *.15

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi I just cant seems to get this working.  example of data table I am wokring with. You can see I already have seperate Date and Time columns. 

 

Device AddressDateTimeFlow
34628/09/202000:002
34628/09/202000:011
34628/09/202000:021
34628/09/202000:030
34628/09/202000:045
34628/09/202000:050
34628/09/202000:060
34628/09/202000:071
34628/09/202000:080
34628/09/202000:090
34628/09/202000:101

 

Really stuck here 😞

 

 

Bumping thread. Anyone?

amitchandak
Super User
Super User

@dmoggie , Join date of table with date of date table .

It is datetime then create date without time

new column

date = [datetime].date

measure

This Day = CALCULATE(Min('Table'[Value]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE('Table'[Value]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE('Table'[Value]), previousday('Date'[Date]))

 

final Measure = [Last Day] *.85 + [This Day] *.15

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak thank you for your quick response.  Re-reading my post I dont think i was clear. I need to work on values each minute of the day.

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.