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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Group average values from [Fecha_Hora] per hour!!!

People.

I have a very large table with a lot of records, where records are inserted per minute.

Fr4ncoFerr3r_0-1651758965323.png

I need to create a table from this, grouping the AVERAGE values per hour. That is, average the 60 values of the field value_1 at the time 04-05-2022 16:00. But, grouping from the [Fecha_Hora] field of the table. I don't want to add the column:

CONVERT((FORMAT (data_xample[Fecha_Hora], "dd-mm-yyyy hh:00:00")),DATETIME) to group the values into a table.
Fr4ncoFerr3r_1-1651759857804.pngFr4ncoFerr3r_2-1651759881445.png

How do I group by [Fecha_Hora]?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin , I think you need to have to create that column, Now instead of a column, You can use selectcolumns in summarize. In selectcolumns  you can give expression for each column

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

As mentioned by @amitchandak , you have to create the column.

If you want to call the function 'SUMMARIZ' to summarize data based on a column, your column must be a specific column and can not be an expression.

 

veasonfmsft_0-1652252168138.png

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@Syndicate_Admin , I think you need to have to create that column, Now instead of a column, You can use selectcolumns in summarize. In selectcolumns  you can give expression for each column

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.