Power BI Reporting
Really struggling with and i hope someone can help me.
I already run a number of reports using PowerBI by exporting from Insightly into excel, and then into PowerBI,
What i would really like to be able to do is create some realtime reports, nothing complex, just things along the lines of how we are doing against target etc.
I remember there used to be a connector to PowerBI service, but I would like to utilize the API and link in with PowerBI Desktop, but what ever i try (which at this point is probably everything other than the actual answer) i can't seem to get the setup right.
I've tried putting the username as my ApiKey (Base-64 Encoded), I've tried adding it in through Headers,
Am i just barking up the wrong tree here, and this is not possible?
Cheers for any help
Ali
Comments
Ok, I always wanted to do this and never had the time, so your question led me to try and it worked.
This is how I did it. I am not an expert on PowerBI nor PowerQuery nor whatever, so I may have taken the long way, but worked.
I'm aware your question is about reports not pulling data, but since your question is related to authentication, well, I think the approach works since the endpoints are pretty much the same. Right?
Short version: I used the API key without encoding as the user name and blank as password.
Long version:
That's it.
This is the query I used. It is ready for parametrization that's why it is so long, but it is a valid query.
Hope it helps.
Absolutely amazing,
Worked first time, I've been battling with that off and on over the last year, but never thought to try the unencoded API Key.
Thank You
Glad to hear. I did try in the past many combinations and never worked so you were not alone.
The problem still persists for long queries because pagination cannot be accomplished without a custom connector (that allows access to the response headers) so still some way to go before becomes useful to me.
I'm trying to get the data live, I want my guys to be able to login to PowerBI and get up to date reports... but I think I'm getting somewhere now.
Seems a useful feature to me, enabling DirectQuery for the API would be very useful about now ;-)
Please sign in to leave a comment.