1 min readJun 27, 2019
Willem Luijk, Power BI JavaScript API (and thus the ngx-powerbi TypeScript library) provides an API to refresh the report programmatically. Check these 2 APIs: report.refresh() and report.reload(), source: https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding---Basic-interactions.
On the other hand, if you really want a real-time dashboard, you can use Azure Stream Analytics with Power BI: https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-power-bi-dashboard