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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.