Connect to the DAX API
The Cube cloud platform provides the DAX API for the native Power BI connectivity. In Power BI Desktop, choose the SQL Server Analysis Services database option when connecting to a data source. Then, enter the DAX API credentials and choose Windows authentication. It accommodates both Kerberos and NTLM methods. To find your DAX API credentials, go to the Integrations page, click API credentials, and choose the DAX API tab. Use the full DAX API URL, including the/cubejs-api/v2/dax path, as the server name — with a bare hostname, the
client tries to reach an Analysis Services instance on TCP port 2383 and fails to
connect.
Authentication for the DAX API — the XMLA service account, NTLM credentials, and
Kerberos assets — is configured on the Settings → Power BI page of your deployment.
Authentication methods
Cube supports the following authentication methods for Power BI:Connection methods
Cube uses Power BI’s live connection mode. You compose queries using the Power BI UI, and they run against your Cube semantic model in real time, so you always work with up-to-date data and an up-to-date model.Connect to the SQL API
You can connect a Cube deployment to Power BI using the SQL API as if Cube is a Postgres database. It would provide much more limited functionality than the DAX API. However, this is the only option when using Cube Core.When Power BI aggregates a measure of the
count_distinct
type, it generates SQL that counts NULL as one additional distinct value:
COUNT(DISTINCT measure) + MAX(CASE WHEN measure IS NULL THEN 1 ELSE 0 END).
Cube does not support counting NULL as a distinct value, so it returns the
distinct count of non-NULL values only. Any group that contains a NULL comes
back one lower than Power BI asks for. Groups without NULL values are
unaffected, and a group is never ranked above one with a genuinely higher count,
so a sorted visual keeps its order except among groups that would otherwise tie.