Hi All,
On the 'submit button' I put the following 'OnSelect':
SubmitForm(Form2);
Set(Refreshvar,true);
PowerBI.RefreshDataset("workspacename","datasetid");
Set(Refreshvar,false);
Just a note, under workspacename I used my actually workspace name and for datasetid I used the actual dataset ID in my workspace.
Then I clicked on the Power BI visual and under 'Reset' I typed the following:
If(Refreshvar=true,false,true)
The strange thing is that after the form is submitted, the SharePoint list updates, the chart refreshes but the Power BI dataset does not update to reflect any changes. Does anyone know why this is?.
Thanks in advance.
Solved! Go to Solution.
I've discovered that a SharePoint List dataset does not need refreshing as it would refresh on its own once a change is detected. It just takes a long time This may have also been the cause of the error.
Hi @HamidBee ,
Perhaps this topic is of help to you: https://powerusers.microsoft.com/t5/Building-Power-Apps/quot-PowerBI-RefreshDataset-quot-in-the-OnSe...
Using Power Automate is an option but firstly I'd like to explore how I could achieve a data refresh by using PowerBI.RefreshDataset. Thanks for sharing though.
I've discovered that a SharePoint List dataset does not need refreshing as it would refresh on its own once a change is detected. It just takes a long time This may have also been the cause of the error.
User | Count |
---|---|
246 | |
105 | |
82 | |
50 | |
43 |