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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Iterative process

Hi need help to create a table with a loop process where it shows the following

i have start date and end date 

and a list of people

need the table with the next structure

first

print the start date and the first person in the other table

then

print the start date + one day and the same first person

once it reaches the end date then switch over to the next person and repeat the process for each of the people that we have on the second table once it reaches the limit of people then end it, it is going to show a table like this

 

date                         person

01/01/2022              john

01/02/2022              john

01/03/2022              john

01/04/2022              john

...

...

...

01/01/2022              max

01/02/2022              max

01/03/2022              max

01/04/2022              max

...

...

...

end_date                  last_person

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

You could do this with CROSSJOIN. If you have your list of people and then a list of dates (probably from a date table) then you could try 

CROSSJOIN ( DATESBETWEEN ( Date_Table[Date], [Start Date], [End Date] ),  People[Name] )

 

View solution in original post

2 REPLIES 2
AntonioM
Solution Sage
Solution Sage

You could do this with CROSSJOIN. If you have your list of people and then a list of dates (probably from a date table) then you could try 

CROSSJOIN ( DATESBETWEEN ( Date_Table[Date], [Start Date], [End Date] ),  People[Name] )

 

Anonymous
Not applicable

awesome, thank you 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Solution Authors