Scheduled import of jsons in powe BI Desktop - powerbi

I have a restricted URL where every 10 mins. a json is incorporated. Accordingly, I have developed several R visuals in power BI Desktop by importing a sample json from this URL and thereby have published them in Power BI service ( in Power BI Pro trial version ).
How can I schedule import of the latest json every 10 minutes from this URL so that the reports so developed are automatically updated as per the latest json?

Configuring scheduled refresh is what you're looking for.
This will enable you to import the latest json every time you specify it.

If you're desperate for a 10 minute refresh, you cannot do that.
The best you can do is use Azure Analysis services / SSAS to connect to the JSON, do all the ETL/whatever there, and then direct query to it. You'll have to set the SSAS/AAS to Process very often.
Direct query allows for 15 minute refreshes.

Related

Refreshing data from SQL in PowerBi

I'm really confused about how i can refresh data that i use in my powerBi.
The data come from a server in SQL, at first time i choosed to use DirectQuery as importation mode, after a litle bit of time i observed that its took time when i want to change things like measure or representations.
So i opted to change directquery to importation in order to gain time.
I would like to know how can i get the newest data from my sql server automaticly, because i have line which is added every day, would i use accrementiel refresh?
Just set up a daily refresh schedule in the Power BI Service. If you have big data with a long history you might also benefit from incremental refresh, but that's alread an optimization step.
Are you aware of power bi gate way ?
Keep your dashboards and reports up to date by connecting to your on-premises data sources without the need to move the data. (https://powerbi.microsoft.com/en-us/gateway/)
You just need to install power bi gateway to your server.
Then you can visit power bi service -> settings -> manage gateway . You can setup new gateway here.
Once you create connection you can schedule refresh time with your UTC time.
Note: you need to buy power bi pro or premium licence for that. Pro licence has 8 times refreshes per day and premium has about 48 times per day(premium is very expensive) .
And their is feature called incremental refresh, you have to setup it prom power bi dashboard.
It may take 10-20 minutes to refresh data set.(mentioned in power bi site)
Hi do you using Power BI desktop?
click on your page not visual, on the visualization you will see,option called page refresh. set this On.
set Refresh type to Auto page refresh.
set Refresh this page every the value you want(seconds,minutes,hours,day).
this picture

PowerBI Auto Refresh

Good Day
A client I am working with wants to use a PowerBI dashboard to display in their call centre with stats pulled from an Azure SQL Database.
Their specific requirement is that the dashboard automaticly refresh every minute between their operating hours (8am - 5pm).
I have been researching this a bit but can't find a definitive answer.
Is it possible for PowerBI to automaticly refresh every 1min?
Is it dependant on the type of license and/or the type of connection (DIRECTQUERY vs IMPORT)
You can set a report to refresh on a direct query source, using the automatic report refresh feature.
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-automatic-page-refresh
This will allow you to refresh the report every 1 minute or other defined interval. This is report only, not dashboards as it is desktop only.
When publishing to the service you will be limited to a minimum refresh of 30 mins, unless you have a dedicated capacity. You could add an A1 Power BI Embedded SKU and turn it on then off during business hours to reduce the cost. Which would work out around £200 per month.
Other options for importing data would be to set a Logic App or Power Automate task to refresh the dataset using an API call, for a lower level of frequency, say 5 mins. It would be best to optimise your query to return a small amount of pre aggregated data to the dataset.
You can use Power Automate to schedule refresh your dataset more than 48 times a day. You can refresh it every minute with Power Automate, it looks like. I can also see that you may be able to refresh your dataset more frequently than that with other tools.
Refreshing the data with 1 min frequency is not possible in PowerBI. If you are not using powerBI premium than you can schedule upto 8 times in a day, with the minimum gap of 15 minutes. If in case you are using PowerBI premium you are allowed to schedule 48 slots.
If you are not able to compromise with the above restrictions, then it might be worth to look into powerBI reports for streaming datasets. But then again there are some cons to that as well, like they work only with DirectQuery etc etc.

Power BI dashboard not updating automatically

Why Power BI service does not refresh data automatically. The forums mention that with Power BI Pro license allows to schedule refresh 8 times and Power BI Premium allows us to schedule refresh with a higher frequency. There is always an option to manually refresh the dataset/dashboard.
Does that mean Power BI does not provide the ability for live reporting.
We are not sure when was the last update for the dashboard.
Please suggest if we have some workaround. Iam using web api as data source.
Real-time reports are possible with push or streaming datasets.
DirectQuery is another possibility for frequently changing data.
What's your connection ? DirectQuery or import in your current report ?
Schedule refresh for your dashboard does not mean your data will refresh, you have to refresh your dataset also, and depending your source if you are using dataflows it will refresh your last dataset update. I'll suggest you to check out guy in the cube channel on youtube.

How do I use data in Power BI Desktop that is either live or frequently updated?

I want to create a dashboard for our office that shows the progress of my team in real time.
I get the data from an on premises sql database, modeled the data in Power BI Desktop, and want to show the data on a TV that shows the Power BI website.
But how do I keep the data up to date?
I know that the Power BI Website offers a scheduled refresh but I can only set 7 times per day and I want the dashboard to refresh at least every 5 minutes. I also know about the streaming datasets but you cant use them in Power BI Desktop and I want to use custom visualisations. When I try to use Direct Query I get the following message :
This Step leads to a Query which is not supported in Direct Query Mode.
Is it possible to create live dashboards using Power BI? Or do you know software that is more suitable for my purpose?
This is possible with a Power Bi Report Server installed on premises and SQL Server Agent running with your on premises sql database. You develop your report and save it to the Power Bi Report Server. Then you can setup your Data Refresh interval to every 5 minutes.
This walk through shows you how to setup a Data refresh interval for every 2 minutes. Use it as a guide to create your report and save to Report Server.
Once saved to Report Server you can setup a data refresh interval for your report to every 5 minutes.
You will need the latest version of Report Server (March 2018 at the time of this answer) and a the latest version of Power Bi Desktop Optimized for Report Server (March 2018 also). SQL Server Agent will be needed to be installed at your SQL Server. The SQL Server Agent will store the data refresh job specification that you define using the Power Bi Report Server interface.

Power BI embedded, direct query, not refreshing

I have implemented Power BI embedded in a web app with direct query using Azure SQL as data source.
The Azure SQL database is being updated by webjobs and if I leave open the Power BI embedded web app I don't see the visuals refreshing with the new data unless I trigger a query for example changing tab or filtering with a slicer.
In the documentation I found the following:
"If there is no user interaction in a visualization, like in a dashboard, data is refreshed automatically about every fifteen minutes."
Do I understand correctly that an open visual in my case should be refreshing without need of user interaction?
Can you point out to the reason for it not to be updating automatically? Also do you know a way to control the time of the refresh with direct query without user interaction more exactly than the "...about every fifteen minutes..."
When inspecting the connection properties on Power BI desktop I have made sure it indicates "Direct Query".
From my understanding the embedded report won't refresh automatically. However, if you're using the Power BI JS framework (https://github.com/Microsoft/PowerBI-JavaScript) to embed your report from a Workspace Collection, then you can use a refresh() method on the report object to manually get the latest data, provided your report is using Direct Query.
This method is only present in version 2.2.0 of the framework and was then removed in the latest version (currently 2.2.1) while further testing around billing is performed (see https://github.com/Microsoft/PowerBI-JavaScript/commit/5230b2f96b10a1104efecdffe78255b9788526b8).
However, in my testing I found the session count remained unaffected by the refresh method. You can refresh up to intervals of 15 seconds (a limit set by the server). This may change however, given the method was removed in 2.2.1, but using 2.2.0 seems to work currently.
Here's a quick and dirty example which will refresh the report every minute within the allocated session:
powerbi.embed(reportContainer, embedConfig);
report = powerbi.get(reportContainer);
window.setInterval(function () {
report.refresh();
}, 60 * 1000);
If the session expires (after 1 hour currently) then a new JWT will need to be requested and the report needs to be reloaded with the new token.
You may want to implement some checks around the session expiry if you plan to keep the report open for more than the allotted session time.