%3CLINGO-SUB%20id%3D%22lingo-sub-1348614%22%20slang%3D%22en-US%22%3EUse%20Power%20Automate%20with%20Azure%20SQL%20DB%20to%20Trigger%20a%20Power%20BI%20Import%20Dataset%20Refresh%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1348614%22%20slang%3D%22en-US%22%3E%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FpJjILoOUl1Y%26amp%3Bdisplay_name%3DYouTube%26amp%3Burl%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DpJjILoOUl1Y%26amp%3Bkey%3Db0d40caa4f094c68be7c29880b16f56e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22200%22%20height%3D%22112%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3EPower%20BI%20Import%20Datasets%20are%20simple%20to%20build%20and%20highly%20performant.%20Power%20BI%20literally%20imports%20and%20compresses%20an%20optimized%20cache%20of%20reporting%20data.%20Most%20of%20the%20time%2C%20Power%20BI%20architects%20will%20schedule%20their%20Import%20Datasets%20to%20refresh%20on%20a%20schedule.%20Sometimes%20the%20availability%20of%20new%20data%20is%20not%20predictable%2C%20and%20they%20will%20want%20to%20ensure%20that%20reports%20have%20current%20data%20by%20triggering%20a%20Refresh%20when%20the%20source%20data%20changes.%20%3CA%20href%3D%22https%3A%2F%2Fpowerbi.microsoft.com%2Fen-us%2Fblog%2Fannouncing-data-refresh-apis-in-the-power-bi-service%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EA%20Data%20Refresh%20API%3C%2FA%3E%20can%20accomplish%20this%20task%2C%20but%20implementing%20it%20is%20not%20a%20code-free%20experience.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESelf-Service%20Business%20Intelligence%20architects%20seeking%20a%20low%20code%20option%20for%20triggering%20refreshes%20of%20their%20Power%20BI%20Import%20Datasets%20have%20another%20option.%20%3CA%20href%3D%22https%3A%2F%2Fus.flow.microsoft.com%2Fen-us%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPower%20Automate%3C%2FA%3E%2C%20which%20like%20Power%20BI%20is%20part%20of%20the%20Power%20Platform%2C%20has%20an%20%3CA%20href%3D%22https%3A%2F%2Fpowerbi.microsoft.com%2Fen-us%2Fblog%2Frefresh-your-power-bi-dataset-using-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eeasy-to-use%20action%3C%2FA%3E%20that%20Refreshes%20a%20Power%20BI%20Dataset.%20The%20video%20at%20the%20top%20of%20this%20blog%20article%20details%20the%20process%20for%20setting%20up%20a%20Flow%20in%20Power%20Automate%20that%20triggers%20a%20Refresh.%26nbsp%3BTowards%20the%20end%20of%20the%20video%2C%20note%20that%20a%20methodology%20for%20scaling%20out%20this%20capability%20is%20reviewed.%20Regardless%20of%20the%20source%20of%20data%2C%20most%20ETL%2FELT%20tools%20will%20complete%20by%20adding%20or%20updating%20data%20for%20a%20reporting%20source.%20The%20updates%20or%20additions%20then%20need%20to%20be%20refreshed%20into%20a%20Power%20BI%20Import%20Dataset%20cache.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20a%20large%20enterprise%20environment%2C%20self-service%20Business%20Intelligence%20users%20will%20often%20pull%20data%20into%20Power%20BI%20from%20many%20different%20sources.%20Sources%20could%20be%20EMR%20data%2C%20ERP%20data%2C%20Open%20Data%20public%20repositories%20of%20Population%20Health%20data%2C%20CRM%20data%20from%20Dynamics%2C%20or%20many%20other%20sources.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETriggering%20a%20Power%20BI%20Refresh%20refresh%20using%20Power%20Automate%20is%20easy%2C%20but%20with%20a%20disciplined%20approach%20it%20can%20be%20even%20easier%20for%20both%20users%20and%20administrators.%20First%2C%20consider%20adding%20an%20Azure%20SQL%20Database%20(DB)%20that%20is%20read-only%20for%20all%20Business%20Intelligence%20users%20who%20might%20need%20to%20trigger%20a%20Power%20BI%20refresh.%20You%20can%20use%20other%20Connections%20for%20your%20trigger%2C%20but%20Azure%20SQL%20DB%20is%20a%20simple%20option%20since%20it%20can%20be%20in%20the%20same%20Azure%20tenant%20as%20Power%20BI%20and%20does%20not%20require%20Gateway%20Administration.%20A%20separate%20table%20can%20be%20added%20for%20every%20source%20of%20data%20that%20a%20user%20might%20need%20to%20use%20as%20a%20trigger.%20If%20each%20ETL%2FELT%20process%20in%20an%20organization%20adds%20a%20single%20row%20to%20a%20table%20in%20Azure%20SQL%20DB%20upon%20completion%2C%20then%20there%20would%20be%20a%20complete%20set%20of%20trigger%20tables%20users%20could%20access%20in%20a%20single%20Azure%20SQL%20DB.%20Consider%20the%20diagram%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22title.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F187858iB3DE57B1779E6DED%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22title.png%22%20alt%3D%22Power%20Automate%20can%20use%20Azure%20SQL%20DB%20Trigger%20Tables%20to%20Push%20a%20Refresh%20to%20Power%20BI%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPower%20Automate%20can%20use%20Azure%20SQL%20DB%20Trigger%20Tables%20to%20Push%20a%20Refresh%20to%20Power%20BI%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20trigger%20tables%20in%20Azure%20SQL%20DB%20do%20not%20need%20to%20contain%20any%20data%20from%20the%20actual%20source%2C%20and%20therefore%20data%20Security%20should%20not%20be%20an%20issue.%20The%20trigger%20tables%20need%20an%20Identity%20column%2C%20and%20ideally%20Date%2C%20Time%2C%20and%20possibly%20Datetime%20columns%20would%20be%20helpful%20too.%20Consider%20the%20following%20example%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22TriggerTable.png%22%20style%3D%22width%3A%20952px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F187859iDE72A6135E4D5067%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22TriggerTable.png%22%20alt%3D%22A%20simple%20Trigger%20Table%20in%20Azure%20SQL%20DB%20can%20be%20updated%20when%20an%20ETL%2FELT%20process%20completes%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EA%20simple%20Trigger%20Table%20in%20Azure%20SQL%20DB%20can%20be%20updated%20when%20an%20ETL%2FELT%20process%20completes%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BIn%20short%2C%20self-service%20Power%20BI%20users%20who%20need%20to%20trigger%20Dataset%20Refreshes%20from%20unpredictable%20data%20sources%20can%20be%20granted%20access%20to%20a%20centrally%20managed%20and%20carefully%20curated%20Azure%20SQL%20Database%20containing%20simple%20trigger%20files%20for%20data%20sources%20in%20an%20organization.%3C%2FP%3E%0A%3CP%3EHere%20are%20a%20few%20notes%20and%20links%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EWhen%20creating%20a%20Trigger%20Table%20in%20Azure%20SQL%20DB%2C%20make%20sure%20there%20is%20an%20Identity%20Column%20on%20each%20table%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Fsql%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Fsql%2F%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EAn%20article%20about%20Dataset%20Refresh%20Action%20in%20Power%20Automate%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fpowerbi.microsoft.com%2Fen-us%2Fblog%2Frefresh-your-power-bi-dataset-using-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowerbi.microsoft.com%2Fen-us%2Fblog%2Frefresh-your-power-bi-dataset-using-microsoft-flow%2F%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ESetting%20up%20a%20Power%20Automate%20Connection%20to%20Azure%20SQL%20DB%3A%26nbsp%3B%3CA%20class%3D%22style-scope%20ytcp-video-metadata-info%22%20href%3D%22https%3A%2F%2Fyoutu.be%2FLjI-YdS2r9k%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyoutu.be%2FLjI-YdS2r9k%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1348614%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22title.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F187744iBE399FB5D186E188%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22title.png%22%20alt%3D%22title.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPower%20Automate%20can%20kick%20off%20a%20Power%20BI%20refresh%20when%20a%20new%20data%20gets%20added%20to%20a%20Azure%20SQL%20DB.%20Scale%20this%20capability%20out%20for%20self-service%20business%20users%20who%20build%20Power%20BI%20reports.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

Power BI Import Datasets are simple to build and highly performant. Power BI literally imports and compresses an optimized cache of reporting data. Most of the time, Power BI architects will schedule their Import Datasets to refresh on a schedule. Sometimes the availability of new data is not predictable, and they will want to ensure that reports have current data by triggering a Refresh when the source data changes. A Data Refresh API can accomplish this task, but implementing it is not a code-free experience. 

 

Self-Service Business Intelligence architects seeking a low code option for triggering refreshes of their Power BI Import Datasets have another option. Power Automate, which like Power BI is part of the Power Platform, has an easy-to-use action that Refreshes a Power BI Dataset. The video at the top of this blog article details the process for setting up a Flow in Power Automate that triggers a Refresh. Towards the end of the video, note that a methodology for scaling out this capability is reviewed. Regardless of the source of data, most ETL/ELT tools will complete by adding or updating data for a reporting source. The updates or additions then need to be refreshed into a Power BI Import Dataset cache.

 

In a large enterprise environment, self-service Business Intelligence users will often pull data into Power BI from many different sources. Sources could be EMR data, ERP data, Open Data public repositories of Population Health data, CRM data from Dynamics, or many other sources. 

Triggering a Power BI Refresh refresh using Power Automate is easy, but with a disciplined approach it can be even easier for both users and administrators. First, consider adding an Azure SQL Database (DB) that is read-only for all Business Intelligence users who might need to trigger a Power BI refresh. You can use other Connections for your trigger, but Azure SQL DB is a simple option since it can be in the same Azure tenant as Power BI and does not require Gateway Administration. A separate table can be added for every source of data that a user might need to use as a trigger. If each ETL/ELT process in an organization adds a single row to a table in Azure SQL DB upon completion, then there would be a complete set of trigger tables users could access in a single Azure SQL DB. Consider the diagram below:

Power Automate can use Azure SQL DB Trigger Tables to Push a Refresh to Power BIPower Automate can use Azure SQL DB Trigger Tables to Push a Refresh to Power BI

The trigger tables in Azure SQL DB do not need to contain any data from the actual source, and therefore data Security should not be an issue. The trigger tables need an Identity column, and ideally Date, Time, and possibly Datetime columns would be helpful too. Consider the following example:

A simple Trigger Table in Azure SQL DB can be updated when an ETL/ELT process completesA simple Trigger Table in Azure SQL DB can be updated when an ETL/ELT process completes

 In short, self-service Power BI users who need to trigger Dataset Refreshes from unpredictable data sources can be granted access to a centrally managed and carefully curated Azure SQL Database containing simple trigger files for data sources in an organization.

Here are a few notes and links: