Connecting to Microsoft Power BI through Spark SQL Connector
Applies to: Kyvos Enterprise Kyvos Cloud (SaaS on AWS) Kyvos AWS Marketplace
Kyvos Azure Marketplace  Kyvos GCP Marketplace Kyvos Single Node Installation (Kyvos SNI)
You can integrate Kyvos with Power BI using the Spark SQL connector. Using this connector, you can do the following:
Connecting to Power BI Desktop
To connect the Kyvos semantic model data in Power BI, perform the following steps.
Open the Power BI Desktop application. Under Get Data, click the More option.
Search and select Spark in the Get Data list. Click Connect.
In the Spark Connection dialog box, enter the required details.
Example: ServerName or IP :Port/kyvos/sqlChoose HTTP Protocol.
Choose Direct Query mode and click OK.
The Import mode extracts the data from the Kyvos semantic model and pulls it into the Power BI Desktop.
We recommend the Direct Query mode as it leaves data in the semantic model and sends queries to Kyvos to pull the needed information, so you can query data without any data movement time.
Enter your Kyvos credentials and click Connect.
In the Navigator, search and select a semantic model name and wait for the preview. After the preview completes, click the Load option to load the semantic model.
Publishing Workbook into Power BI Services
Once you have created a dashboard on the Power BI desktop, you can publish it on the Power BI services. For this, perform the following steps.
On the Power BI Desktop select File > Publish > Publish to Power BI or select the Publish option from the ribbon.
Enter your credentials in the Sign In dialog box to log into Power BI.
Select a workspace to publish the workbook.
When the publishing is successful, you receive a link to your report. Click the link to open the report on the Power BI site.
Configuring a Gateway
If your data source is directly accessible to the Power BI Services, you will need not to configure a gateway connection. Otherwise, you must configure the gateway as explained below:
Creating a connection using a Gateway
To create a connection using a Gateway for Spark SQL connector, perform the following steps.
Sign in to Power BI services.
Go to Settings > Manage Connections and Gateways.
Choose the Connections tab and then select New.
On the New Connection pane, provide the required details.
Select the Gateway cluster name.
Enter the Connection name.
Select Spark from the Connection Type list.
Enter the Server name. For Example: ServerName or IP :Port/kyvos/sql
Choose HTTP Protocol.
Choose an authentication method:
Username and Password: Enter your Kyvos credentials.
Choose the required Privacy level.
Select Create.
Configuring published semantic models
To configure published semantic models, perform the following steps.
Go to published semantic model > Settings > Gateway and cloud connections. Navigate to the Gateway connections section, select the connection if already created. Otherwise, select the gateway, in the Actions column, click the View Datasources button.
The Datasource included in the semantic model section is expanded:
If you view the Add to Gateway link, click the link and it will display the New Connection pane. Perform the Step 4 and Step 5, as mentioned above in this section.
If connection is already created in the gateway, from the Maps to list, select the created connection. Otherwise click the manually add to gateway option from the list and then perform Step 4 and Step 5, as mentioned above in this section.
Select Apply.
Now open the published Power BI workbook.
Power BI Spark SQL -Known limitation
You may encounter the following limitations when performing data analysis and visualization tasks after setting up Spark SQL connectivity in Power BI. These will be fixed in the upcoming versions.
You cannot apply a measure filter if that measure is not part of the Kyvos visualization. To do so, you need to create a calculated measure using the desired measure, and then you can use that calculated measure in the filter. This is required because when we place the measure in the filter, it sends an unaggregated query to the Kyvos.Â
Kyvos does not support conditional formatting using the 'field value' format styleÂ
Following Kyvos features are not supported:Â
Scope Script
Unconditional Masking
Default Member Script
Key influencer is not working. This is a known limitation of Power BI on direct query. For more information, see Microsoft Power BI documentation.Â
Conditional formatting for the field value and icons is not working due to Power BI handling issue.
Sorting of month is not displaying as per the nomenclature because Power BI itself handles sorting.
Power BI generates queries in a such way due to which a user might get data inaccuracy or may get extra records in the case of topN query.
Related Topics
Copyright Kyvos, Inc. All rights reserved.