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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
ligalbert
Helper I
Helper I

How can I group dates and put them in one column

I want the following result in powerbi where one column has week to week dates 

result.PNG

 I have the following on powerbi. Is there a way where I can group all the dates from 5/4/2021 - 5/10/2021 so I just have one row with all the answers like shown above 

dating.PNG

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ligalbert , Create a date from date time 

 

Date = datevalue([Datetime])

 

Then create a date table join on a date and have a column like that there

 

Week  = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1  &  " - "   'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

 

where(Monday week)

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

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

1 REPLY 1
amitchandak
Super User
Super User

@ligalbert , Create a date from date time 

 

Date = datevalue([Datetime])

 

Then create a date table join on a date and have a column like that there

 

Week  = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1  &  " - "   'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

 

where(Monday week)

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)

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
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.

Top Kudoed Authors