web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power App calling Powe...
Power Apps
Unanswered

Power App calling Powershell to refresh Power BI Dataset

(0) ShareShare
ReportReport
Posted on by 177

Hi Guys,

 

I want to refresh Power BI report dataset via Power APP using Powershell.

 

Please suggest how to do the same.

 

Thanks

Amit

Categories:
I have the same question (0)
  • Liam_Chapman Profile Picture
    187 on at

    Hi @amsrivas,

     

    Just wondering if you can make use of Power Automate instead of Powershell?

     

    I think that has a refresh dataset action which could be triggered by Power Apps.

    I appreciate it isn't what you are asking, but just a suggestion.

  • amsrivas Profile Picture
    177 on at

    Hi Liam, Thanks for reply.

     

    Could you please guide me to the link which states how to create Microsoft Flow (Automate) to refresh power Bi Report dataset

     

    Thanks

    Amit

  • Liam_Chapman Profile Picture
    187 on at

    Just something I came across

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

    You can obviously change the trigger to be Power App and then just use the 'Refresh a dataset (Preview)' action.

  • amsrivas Profile Picture
    177 on at

    HI Liam, That very helpful!!

     

    Now i am able to refresh Dataset via Power App but associated Visual in Power BI Desktop is not refreshing itself!!!

     

    Let me give you detail

    1. I have created the following

        -  Power APP   - That loading data to One Drive excel file

        -  Power BI Service DataSet  - source for this dataset is One Drive Excel File

        -  Flow - That is invoked by Power APP and refreshing the dataset

        - Power BI Desktop Report 

                                   - Source of the report is - Power BI Service DataSet

                                   - Contains Two visual - Power App and Table , both pointing to the same source

     

    Expected - As soon as data is entered from Power App, it will do the following 

                                      - Load data into source one drive excel file - Done

                                      - Refresh the Dataset via call Flow from App  - Done 

                                      -  Power BI table visual  -Data in table will be refreshed - Issue is visual are not refreshing automatically, when i hit manual refresh then it refreshed, Please suggest.

     

    Please suggest how to refresh visual as well!!

     

    Thanks

    Amit

  • Liam_Chapman Profile Picture
    187 on at

    Hi @amsrivas ,

     

    It should be possible to set the Power BI Desktop to update every so often

    https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-automatic-page-refresh

    Not sure if there is a minimum time you can refresh though (I think it is a second).

  • amsrivas Profile Picture
    177 on at

    Hi @Liam_Chapman 

     

    Thanks for sharing detail.

     

    However, provided link holds true and good for Direct Source query, i am using One Drive for source and it doesnt hold good for that.

     

    Please suggest for Non Direct Query sources.

     

    Thanks

    Amit 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard