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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.