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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
shaunwilks
Helper V
Helper V

Conditional Append

I dont want to append a query until a certain point in time this year.

 

I'd like the append in the advanced script to have a conditon only to append if the current date and time was greater than a date I specify.

 

I have dozens of queries to append and all relate to specific dates. I dont wish to have to come in and do each of the manually across the year.  So how would I get the following to only append after June 1st 2022 ?

 

#"Appended Query" = Table.Combine({#"Table2", #"Table1"})

 

Thanks in advance

2 REPLIES 2
Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

I would like to see your date column. Will your date column contain all dates as 1-Jun-22 or say 1-Jan-22 to 31-Dec-22 and we need to merge only those rows where if today>date specified by you say 1-Mar-22.

There is no date column in the tables. The date I am talking about is the system/coimputer date 

 

I want to append a query after 01/03/2022

I want to append another query after 01/04/2022

I want to append a third query after 01/05/2022

etc etc etc etc 

 

These are web queries where I know the webpages will be populated in the manner I need them too after those dates.

 

At the moment the queries dont have the data I want so I cannot append them now.

 

Rather than have to get into the solution every month I want to schedule the appends and let the online Scheduled Refresh append the queries on the schedule that I set out.

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.