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

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

Reply
PaulHallam
Helper III
Helper III

Max of a multiple ranges in a table

Hi,

I have a subset of sensor data as below (link at bottom of question).

 

Date                 SensorNo  Time          Hits

13/06/20191221407:00:000
13/06/20191221307:00:000
13/06/20191221207:00:000
13/06/20191221107:00:000
13/06/20191221007:00:000
13/06/20191221407:10:000
13/06/20191221307:10:000
13/06/20191221207:10:000
13/06/20191221107:10:000

 

I need to find the maximum number of hits in any 30 minute period in a day.

Each time includes the measurement of 10 minutes after so 07:00 is in effect data from 07:00 to 07:10

 

So essentially I need the maximum number from;

 

Number of sensor hits at 07:00:00, 07:10:00 and 07:20:00 on 13th June

Number of sensor hits at 07:10:00, 07:20:00 and 07:30:00 on 13th June

Number of sensor hits at 07:20:00, 07:30:00 and 07:40:00 on 13th June

etc…..

Number of sensor hits at 07:00:00, 07:10:00 and 07:20:00 on 14th June

Number of sensor hits at 07:10:00, 07:20:00 and 07:30:00 on 14th June

Number of sensor hits at 07:20:00, 07:30:00 and 07:40:00 on 14th June

etc.

 

The value must be correct when changing dates by slicer,

Way above my level at this stage of my PowerBi journey

https://1drv.ms/x/s!AgQfcEtrCvUozG1XTbLKW6GoDeS6

Thanks

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@PaulHallam ,

 

"

Number of sensor hits at 07:00:00, 07:10:00 and 07:20:00 on 13th June

Number of sensor hits at 07:10:00, 07:20:00 and 07:30:00 on 13th June

Number of sensor hits at 07:20:00, 07:30:00 and 07:40:00 on 13th June

etc…..

Number of sensor hits at 07:00:00, 07:10:00 and 07:20:00 on 14th June

Number of sensor hits at 07:10:00, 07:20:00 and 07:30:00 on 14th June

Number of sensor hits at 07:20:00, 07:30:00 and 07:40:00 on 14th June

etc.

"

 

Do you want to achieve the max hit number during 07:00:00 to 07:30:00, 07:10:00 to 07:40:00, 07:20:00 to 07:50:00, as you said every 30min in each day? Or you just need to achieve the max hit number at each time above? I'm not very clear about your requirement, if possible could you show the expected result?

 

Regards,

Jimmy Tao

Hi Jimmy,

 

I want to know the maximum number of sensor hits in ANY 30 minute period on ANY day.

 

The time value 07:00 is actually the start of a 10 minute period and the value is if there was a hit (1) or not (0) in that 10 minute period. So the 07:00 is for the period 07:00 to 07:10.

 

For the actual time range 09:40 to 10:10 i would need to analyse 09:40, 09:50 and 10:00.

Hope this makes sense. I have updated the spreadsheet to show what i am trying to achieve.

Paul

Any Luck

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.