4.4 Generate a dataset from a query
Query Service - Power BI/Tableau
Objective
Learn how to generate datasets from query results Connect Microsoft Power BI Desktop/Tableau directly to the Query Service Creating a report in Microsoft Power BI Desktop/Tableau Desktop
Lesson Context
A command line interface to query data is exciting but it doesn't present well. In this lesson, we will guide you through a recommended workflow for how you can use Microsoft Power BI Desktop/Tableau directly the Query Service to create visual reports for your stakeholders.
4.4.1 Create a dataset from a SQL query
The complexity of your query will impact how long it takes for the Query Service to return results. And when querying directly from the command line or other solutions like Microsoft Power BI/Tableau the Query Service is configured with a 5 minute timeout (600 seconds). And in certain cases these solutions will be configured with shorter timeouts. To run larger queries and front load the time it takes to return results we offer a feature to generate a dataset from the query results. This feature utilizes the standard SQL feature know as Create Table As Select (CTAS). It is available in the Platform UI from the Query List and also available to be run directly from the command line with PSQL.
In the previous you've replaced enter your name with your own ldap before executing it in PSQL.
Navigate to the Adobe Experience Platform UI - https://experience.adobe.com/platform
You will search for your executed statement in the Adobe Experience Platform Query UI by entering your ldap in the search field:
Select Queries, go to Log and enter your ldap in the search field.
Select your query and click Output Dataset.
Enter --demoProfileLdap-- Callcenter Interaction Analysis
as name and description for the dataset and press the Run Query button
As a result, you will see a new query with a status Submitted.
Upon completion, you will see a new entry for Dataset Created (you might need to refresh the page).
As soon as your dataset is created (which can take 5-10 minutes), you can continue the exercise.
Next Step - Option A: 4.5 Query Service and Power BI
Next Step - Option B: 4.6 Query Service and Tableau
Last updated