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 September 15. Request your voucher.

Reply
kadapavel
Helper II
Helper II

Calculation based on time condition

Hello 

I have a table with time stamps and values of load. Target is calculate load RMS values with some formula. for

Difficulty is..

I need to apply the calculation for every 10 minutes, 1hour of 24 hours to the time selected by slicer. for example

time stamp     Value

10:00:00           100%

10:01:00            120%

10:02:00             80%

10:04:00            110%

10:05:00             70%

10:08:00              20%

10:10:00              100%   >>  Time from 10:00:00 to 10:10:00 is >= 10 min, then apply caclulation for the time, then next..

I would appreciate for any ideas, currently I may do that(partly) only in excel using new columns with various conditions, but the imput data is so big that exel is not able to handle complete data.

 

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@kadapavel

 

In this scenario, I suggest you add a column to group minute part of the time into 6 "buckets" in each hour. 

 

Minute Group = ROUNDDOWN(MINUTE('Table'[Time])/10,0)

Then you can use ALLEXCEPT() function to have your calculation group on each "bucket".

 

Regards, 

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@kadapavel

 

In this scenario, I suggest you add a column to group minute part of the time into 6 "buckets" in each hour. 

 

Minute Group = ROUNDDOWN(MINUTE('Table'[Time])/10,0)

Then you can use ALLEXCEPT() function to have your calculation group on each "bucket".

 

Regards, 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors