Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
Solved! Go to Solution.
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] )
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] )
awesome, thank you
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |