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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Kushagra15
New Member

How to group duplicate dates?

Hi

 

i wanted to group these duplicate dates into one field, the way i want this to happen is, if i group a specific date then all the corresponding fields must also be either summed or averaged.

Kushagra15_0-1684762986124.png

every date has 24 rows for 24 hours that needs to be grouped in 1 date and other column, example count of bike shares must be summed within a single date, similarly other fields should also be averaged or summed.

 

i was trying to use datesinbetween function for moving average but it won't allow me as there are duplicates in date field.

 

thanks in advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Kushagra15 , In power query first create a new column

Date  only= DateTime.Date([Date])

 

Then use group by https://docs.microsoft.com/en-us/power-query/group-by

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

View solution in original post

2 REPLIES 2
Kushagra15
New Member

thanks a lot it worked 🙂

amitchandak
Super User
Super User

@Kushagra15 , In power query first create a new column

Date  only= DateTime.Date([Date])

 

Then use group by https://docs.microsoft.com/en-us/power-query/group-by

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors