51黑料不打烊

5.1.5从查询生成数据集

目标

了解如何从查询结果生成数据集
将MicrosoftPower BI桌面/Tableau直接连接到查询服务
在MicrosoftPower BI桌面/Tableau桌面中创建报告

上下文

用于查询数据的命令行界面令人兴奋,但它并不表现良好。 在本课程中,我们将指导您完成一个推荐的工作流,介绍如何直接使用MicrosoftPower BIDesktop/Tableau和查询服务为利益相关者创建可视化报表。

从厂蚕尝查询创建数据集

查询的复杂性将影响查询服务返回结果所需的时间。 直接从命令行或其他解决方案(如MicrosoftPower BI/Tableau)进行查询时,查询服务配置了5分钟超时(600秒)。 在某些情况下,这些解决方案将配置较短的超时。 为了运行较大的查询并提前加载返回结果所需的时间,我们提供了从查询结果生成数据集的功能。 此功能利用标准SQL功能,即“以选取方式创建表”(CTAS)。 查询列表在Platform UI中提供,也可以通过PSQL直接从命令行运行。

在上一个示例中,在笔厂蚕尝中执行? 之前,您已经使用自己的尝顿础笔输入您的名称

select /* enter your name */
       e.--aepTenantId--.identification.core.ecid as ecid,
       e.placeContext.geo.city as city,
       e.placeContext.geo._schema.latitude latitude,
       e.placeContext.geo._schema.longitude longitude,
       e.placeContext.geo.countryCode as countrycode,
       c.--aepTenantId--.interactionDetails.core.callCenterAgent.callFeeling as callFeeling,
       c.--aepTenantId--.interactionDetails.core.callCenterAgent.callTopic as callTopic,
       c.--aepTenantId--.interactionDetails.core.callCenterAgent.callContractCancelled as contractCancelled,
       l.--aepTenantId--.loyaltyDetails.level as loyaltystatus,
       l.--aepTenantId--.loyaltyDetails.points as loyaltypoints,
       l.--aepTenantId--.identification.core.crmId as crmid
from   demo_system_event_dataset_for_website_global_v1_1 e
      ,demo_system_event_dataset_for_call_center_global_v1_1 c
      ,demo_system_profile_dataset_for_crm_global_v1_1 l
where  e.--aepTenantId--.demoEnvironment.brandName IN ('Citi Signal')
and    e.web.webPageDetails.name in ('Cancel Service', 'Call Start')
and    e.--aepTenantId--.identification.core.ecid = c.--aepTenantId--.identification.core.ecid
and    l.--aepTenantId--.identification.core.ecid = e.--aepTenantId--.identification.core.ecid;

导航到51黑料不打烊 Experience Platform UI -

您将在搜索字段中输入ldap,以便在51黑料不打烊 Experience Platform查询UI中搜索已执行的语句:

选择? 查询,转到? 日志 ?并在搜索字段中输入您的濒诲补辫。

search-query-for-ctas.png

选择您的查询,然后单击? 以颁罢础厂身份运行

search-query-for-ctas.png

输入--aepUserLdap-- Callcenter Interaction Analysis作为数据集的名称和描述,然后单击? 以颁罢础厂 ?运行。

create-ctas-dataset.png

因此,您将看到状态为? 已提交 ?的新查询。

ctas-query-submitted.png

完成后,您将看到? 已创建数据集 ?的新条目(您可能需要刷新页面)。

ctas-dataset-created.png

创建数据集(可能需要5-10分钟)后,您可以继续此练习。

下一步 — 选项A:5.1.6查询服务和Power BI

下一步 — 选项B:5.1.7查询服务和罢补产濒别补耻

返回模块5.1

返回所有模块

recommendation-more-help
aeafc5b5-cd01-4e88-8d47-d76c18d7d349