NBi icon indicating copy to clipboard operation
NBi copied to clipboard

Unit testing PowerBI.com (Power BI Service)

Open Safariba opened this issue 7 years ago • 5 comments

Can we write unit tests testing individual DAX queries of the PowerBI .com dataset. Can we influence the data in the dataset (to set the preconditions of the test)?

Safariba avatar Jan 08 '18 10:01 Safariba

No, there is no solution for this (AFAIK).

Seddryck avatar Jan 09 '18 13:01 Seddryck

Has someone managed to connect to a PBI online dataset? If I take the connectionstring used to connect Excel it uses a ClaimsToken authorization that is not working in NBi

johnwww avatar Mar 18 '18 09:03 johnwww

It's not supported by NBi and AFAIK, it's not possible.

Seddryck avatar Mar 18 '18 10:03 Seddryck

Update on this: XMLA endpoints allow you to use a variety of third party tools against datasets that are in a powerbi workspace associated to a premium capacity. See here for more information and how to enable: https://docs.microsoft.com/en-us/power-bi/admin/service-premium-connect-tools

A few of us have been able to get NBI v1.22.0 working with XMLA endpoints by:

  1. Installing latest MSOLAP (15.1.48.22 at time of writing) from here: https://docs.microsoft.com/en-us/analysis-services/client-libraries?view=asallproducts-allversions
  2. Using the following connection string in the .nbits file Provider=MSOLAP.8;Data Source=powerbi://api.powerbi.com/v1.0/myorg/<workspace_name>;Initial Catalog=<dataset_name>;User ID=<[email protected]>;Password=<password>

mbodtke avatar Aug 06 '20 21:08 mbodtke

In addition to this: XMLA endpoints are Premium only. However there is also a public preview of a read-only DAX REST API where in the REST call DAX is encapsulated: https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/

And the documentation: https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries

Johannes-Vink avatar Oct 26 '21 14:10 Johannes-Vink