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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors