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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.