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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
stalerik
Helper II
Helper II

Summarize entire table into Hour Averages

Hello,

 

I have a Table1 of minute-data with many columns.  I am looking for a way to create Table2 that summarize the entire Table1 into Hour Averages.   Is there an easy way to summarize the entire table into hour averages without having to define each column of the summarized table?  I would like to do this so I can then write measures that can calculate the minimum, maximum, average, etc, of the hour averages over a specific date range.  Thank you!

2 REPLIES 2
amitchandak
Super User
Super User

@stalerik , Try a create a new column in table or during aggregation and use that in group by

 

new Date = date(year([datetime]),month([datetime]),day([datetime])) + Time(hour([datetime]),0,0)

 

you can use this in measure like

 

measure = averagex(values(Table[New Date]), calculate(sum(Table[Value])))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

@amitchandak Thank you for this suggestion.  I used your guidance and added a filter to confine it between date1 and date2 but it is not doing what I think it should do.  It should be finding the minimum hour average of the minute-data between the date range but it's finding the minimum of the minute-data.  What I would like to do is to find the minimum of the hour averages, and I thought summarize table would have to be used in there somewhere.

 

VAR minimum = MINX(
FILTER(ALLSELECTED('table1'),'table1'[datehour] >= date1 && 'table1'[datehour] < date2),
CALCULATE(SUM('table2'[value]))
)

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.