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
Anonymous
Not applicable

Create Repetitive Table with Given Rules

Hello,

 

I have a table which represents scheduled tasks. What I want to do is create a table to show upcoming tasks.

 

Unittype express the repetition of task. 4 is monthly, 2 is daily etc.

Period means that repetition count for given unittype.

 

samaritan_0-1616505121575.png

 

For 2nd row, I know the schedule of task. Run it every one {period} day {unittype} at 10.00 AM {hour and minute of startdate} starting from 3/23/2021 10.00 AM {startdate} 

 

And I should be able to limit the maximum date of my table due to performance issues. In this example, lets say maximum date is 3/28/2021. There will not be more row after that date.

 

IDUpcoming Schedule
1292973/24/2021 10.00 AM
1292973/25/2021 10.00 AM
1292973/26/2021 10.00 AM
1292973/27/2021 10.00 AM
1292973/28/2021 10.00 AM

 

How can I create this table with queries? Thanks for your answers.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

given the narrowness of your description, a more precise answer is difficult to give. But, if you are able to adapt the code, it might be enough for your purposes. Otherwise Load some example tables so they can be copied and explain well what's behind "etc"

View solution in original post

1 REPLY 1
Anonymous
Not applicable

given the narrowness of your description, a more precise answer is difficult to give. But, if you are able to adapt the code, it might be enough for your purposes. Otherwise Load some example tables so they can be copied and explain well what's behind "etc"

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.