Kyvos offers a Query Playground feature that enables you to browse semantic models using popular query languages, such as SQL and MDX. You can write and execute the queries directly without relying on a visualization layer or third-party tools. This makes it easier to extract data for downstream applications, validate data in a semantic model, or debug query performance. Additionally, users can export querying data in JSON or CSV and JSON format.
To navigate to Query Playground, click the Toolbox and select Utilities > Query Playground. The Query Playground page is displayed in a new window.
...
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Note
|
...
When selecting a semantic model for SQL and MDQ MDX queries, ensure the following:
...
Click the Toolbox and select Utilities > Query Playground. The Query Playground page is displayed in a new window.
To execute a query, select one of the following:
Spark SQL: To execute SQL queries with or without selecting a semantic model, start typing your queries in the editor. As you enter text, suggested statements, functions, operators, and so on are displayed. Click an item to auto-fill it.
The following image displays how to execute an SQL query without selecting a semantic model.The following image displays how to execute an SQL query by selecting a semantic model.
MDX: To execute an MDX query, click the Select Semantic Model link. The Select Semantic Model dialog will appear. The semantic model's dimension and measure will be displayed in the left pane. Using the Kyvos Copilot, you can also create MDX expressions for calculated measures in semantic models and Kyvos worksheets.
For further details on how to use Kyvos Copilot for MDX queries, see the section Creating expression using Kyvos Copilot section.
Click Execute. You will view a Preview of the executed query.
...