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
daniel_ricardo
Frequent Visitor

Conditional/pass query refresh

I'd like to know if is there a way to pass a query refresh depending on a variable. For example, not to try to read a table depending on day and keep data of a before query.

1 ACCEPTED SOLUTION

Sorry, I don't think so.  Is the table the result of a complex calculation (i.e. takes hours to run), but you can persistent in temp table (i.e. run without the complexity).  This will just turn the refresh into a simple read task.  It could run faster, but this solution is still outside the M query language.

View solution in original post

6 REPLIES 6
Daryl-Lynch-Bzy
Community Champion
Community Champion

@daniel_ricardo - Do you have Premium capacity?  If so...

 

there is an option in Power BI that excludes a Table for the normal refresh (don't uncheck "Enable Load").  The excluded table can be refreshed manually using an "XLMA" API call.  This API will require Premium capacity.

DarylLynchBzy_0-1647280479915.png

 

..but nothing that can be used in query layer, using m language?

Sorry, I don't think so.  Is the table the result of a complex calculation (i.e. takes hours to run), but you can persistent in temp table (i.e. run without the complexity).  This will just turn the refresh into a simple read task.  It could run faster, but this solution is still outside the M query language.

I'll try to find some alternative to skip that, maybe using an approach as you suggested. Thanks a lot for your help!

Daryl-Lynch-Bzy
Community Champion
Community Champion

Hi @daniel_ricardo - could you please provide a bit more information of what you are trying to achieve?

Sure! Part of our data comes form a table that is updated once a month, it is not too big but still high-cost to load every day from source. I was looking for a way to ignore this query in a range os days. Thanks in advance your your help.

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.