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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Dev-13
Helper I
Helper I

Population of dates between dates

Hi 

 

I have a week start and a week end date. I have days of the week but no date is assigned to them. I would like a date assigned to the actual day that falls inbewteen the week start and end date. In the example below Monday would have 24/10/2022 assigned

 

Data looks like this:

[Week start] [week end ] [day of week] [total]

23/10/2022   29/10/2022    Monday    10

23/10/2022   29/10/2022    Wednesday    5

23/10/2022   29/10/2022    Monday    10

23/10/2022   29/10/2022    Tuesday    6

 

Thanks 

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@Dev-13 ,

Easiest way is create a Calculated Column:

Date = SWITCH(
           TRUE(),
           [Day of Week] = "Monday", DayofWeek[Week Start] + 1,
           [Day of Week] = "Tuesday", DayofWeek[Week Start] + 2,
           [Day of Week] = "Wednesday", DayofWeek[Week Start] + 3,
           [Day of Week] = "Thursday", DayofWeek[Week Start] + 4,
            [Day of Week] = "Friday", DayofWeek[Week Start] + 5,
             [Day of Week] = "Saturday", DayofWeek[Week Start] + 6 )

rsbin_0-1667500528413.png

Trust this helps.

Regards,

View solution in original post

1 REPLY 1
rsbin
Super User
Super User

@Dev-13 ,

Easiest way is create a Calculated Column:

Date = SWITCH(
           TRUE(),
           [Day of Week] = "Monday", DayofWeek[Week Start] + 1,
           [Day of Week] = "Tuesday", DayofWeek[Week Start] + 2,
           [Day of Week] = "Wednesday", DayofWeek[Week Start] + 3,
           [Day of Week] = "Thursday", DayofWeek[Week Start] + 4,
            [Day of Week] = "Friday", DayofWeek[Week Start] + 5,
             [Day of Week] = "Saturday", DayofWeek[Week Start] + 6 )

rsbin_0-1667500528413.png

Trust this helps.

Regards,

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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