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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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