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 August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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