51黑料不打烊

Project treemap queries

You can use the queries in this article to create data visualizations similar to those in Enhanced Analytics.

IMPORTANT
Queries will produce similar results to those shown in Enhanced Analytics, but they may not match exactly.

Prerequisites

Before you begin, you must

  1. Establish a connection with your Business Intelligence (BI) tool:

    1. Create a reader account or connection for Snowflake
    2. Establish a connection to Workfront Data Connect

Once you establish a connection, you can use the queries in this article to extract and visualize data.

Projects planned hours retired

WITH task_daily_work as (
聽聽聽 SELECT
聽聽聽聽聽聽聽 taskid,
聽聽聽聽聽聽聽 projectid,
聽聽聽聽聽聽聽 workrequired,
聽聽聽聽聽聽聽 percentcomplete,
聽聽聽聽聽聽聽 calendardate,
聽聽聽聽聽聽聽 (workrequired - (workrequired * percentcomplete)) as remainingMinutes
聽聽聽 FROM tasks_daily_history
)

SELECT
聽聽聽 p.name,
聽聽聽 p.projectid,
聽聽聽 sum(tdw.workrequired) as projectTotalWork,
聽聽聽 sum(tdw.remainingMinutes) as projectRemainingWork,
聽聽聽 tdw.calendardate
FROM projects_current p
聽聽聽 JOIN task_daily_work tdw ON p.projectid = tdw.projectid
GROUP BY p.projectid, p.name, tdw.calendardate

Projects planned hours retired: burndown

WITH task_daily_work as (
聽聽聽 SELECT
聽聽聽聽聽聽聽 taskid,
聽聽聽聽聽聽聽 projectid,
聽聽聽聽聽聽聽 workrequired,
聽聽聽聽聽聽聽 percentcomplete,
聽聽聽聽聽聽聽 calendardate,
聽聽聽聽聽聽聽 (workrequired - (workrequired * percentcomplete)) as remainingMinutes
聽聽聽 FROM tasks_daily_history
)

SELECT
聽聽聽 p.name,
聽聽聽 p.projectid,
聽聽聽 sum(tdw.workrequired) as projectTotalWork,
聽聽聽 sum(tdw.remainingMinutes) as projectRemainingWork,
聽聽聽 tdw.calendardate
FROM projects_current p
聽聽聽 JOIN task_daily_work tdw ON p.projectid = tdw.projectid
GROUP BY p.projectid, p.name, tdw.calendardate

Projects planned duration retired

WITH task_daily_work as (
聽聽聽 SELECT
聽聽聽聽聽聽聽 taskid,
聽聽聽聽聽聽聽 projectid,
聽聽聽聽聽聽聽 planneddurationminutes,
聽聽聽聽聽聽聽 percentcomplete,
聽聽聽聽聽聽聽 calendardate,
聽聽聽聽聽聽聽 (planneddurationminutes - (planneddurationminutes * percentcomplete)) as remainingDurationMinutes
聽聽聽 FROM tasks_daily_history
)

SELECT
聽聽聽 p.name,
聽聽聽 p.projectid,
聽聽聽 sum(tdw.planneddurationminutes) as projectTotalWork,
聽聽聽 sum(tdw.remainingDurationMinutes) as projectRemainingWork,
聽聽聽 tdw.calendardate
FROM projects_current p
聽聽聽 JOIN task_daily_work tdw ON p.projectid = tdw.projectid
GROUP BY p.projectid, p.name, tdw.calendardate

Projects planned duration retired: burndown

WITH task_daily_work as (
聽聽聽 SELECT
聽聽聽聽聽聽聽 taskid,
聽聽聽聽聽聽聽 projectid,
聽聽聽聽聽聽聽 planneddurationminutes,
聽聽聽聽聽聽聽 percentcomplete,
聽聽聽聽聽聽聽 calendardate,
聽聽聽聽聽聽聽 (planneddurationminutes - (planneddurationminutes * percentcomplete)) as remainingDurationMinutes
聽聽聽 FROM tasks_daily_history
)

SELECT
聽聽聽 p.name,
聽聽聽 p.projectid,
聽聽聽 sum(tdw.planneddurationminutes) as projectTotalWork,
聽聽聽 sum(tdw.remainingDurationMinutes) as projectRemainingWork,
聽聽聽 tdw.calendardate
FROM projects_current p
聽聽聽 JOIN task_daily_work tdw ON p.projectid = tdw.projectid
GROUP BY p.projectid, p.name, tdw.calendardate
recommendation-more-help
5f00cc6b-2202-40d6-bcd0-3ee0c2316b43