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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

refresh only if you have data

Hello I would like some help with dataset update.
Today I update my dataset every 2 hours with data from a database table called table_pivot.

This table is updated several times in the bank and in some periods it is empty (it is empty for some load errors)

What I need to do before updating my dataset is to make sure the table is populated, if it contains data in it, and only if it has any data the dataset is updated. I tried making a parameter and it didn't work.
Have you had anything like that? Could you help me with a solution?

Hug and thanks



Below is an example of logic just for understanding

let
Source = if Odbc.Query("dsn=bd001", "select count(*) from table_pivot") > 0
then Odbc.Query("dsn=bd001", "select count(*) from table_pivot")
else "do not update"
in
Source

1 REPLY 1
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

you could do it with a Flow.

https://powerbi.microsoft.com/en-us/blog/refresh-your-power-bi-dataset-using-microsoft-flow/

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors