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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.