I am trying to embed a report for days now, with no luck.
The report has live data, so I understand that I cannot use the File > Publish to Web > Create embed code, because it doesn't refresh the data.
So I wrote a program which Authenticates into Azure AD and gets the Embed Token, which I put in here:
https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#
The report displays, but guess what? IT DOESN"T WORK WITH LIVE DATA. I have changed the data in the DB (source), but the report is the same.
WHAT AM I MISSING? Where was I wrong?
PS. I know about the "Refresh Frequency" in the PowerBI, which can be set to as low as 15 mins, but this ain't "Direct Query", this is still 15 mins old. I really don't get it.