Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Taffalaffa
Helper I
Helper I

P6 Join UDF's with Activities

Hi. I REALLY need help figuring out how to join some UDF's with my activities in P6.  I have Activity codes joined with the activity ID's but I just can't figure out the UDF's.  Below is my example - the first set is the joining of an activity code named Responsible Party.  This works great.  The next is the attempted joining of a UDF for BL Duration but it isn't working. Please help!

 

SELECT PROJECT.PROJ_ID AS PROJ_ID
             ,PROJECT.PROJ_SHORT_NAME AS PROJ_SHORT_NAME
       ,TASK.TASK_ID AS TASK_ID
       ,TASK.TASK_CODE AS TASK_CODE
       ,TASK.TASK_NAME AS TASK_NAME
      ,(SELECT TOP (1) ac.[actv_code_name]
      FROM [PMDB].[dbo].[TASK] t
      join [PMDB].[dbo].[TASKACTV] ta on t.task_id = ta.task_id
      join [PMDB].[dbo].[ACTVCODE] ac on ta.actv_code_id = ac.actv_code_id

      where t.task_id = TASK.TASK_ID and ac.actv_code_type_id = 21137) AS [Responsible Party]
      ,(SELECT TOP (1) ac.[actv_code_name]
      FROM [PMDB].[dbo].[TASK] t
      join [PMDB].[dbo].[TASKACTV] ta on t.task_id = ta.task_id
      join [PMDB].[dbo].[ACTVCODE] ac on ta.actv_code_id = ac.actv_code_id

      where t.task_id = TASK.TASK_ID and ac.udf_type_id = 6314) AS [BL Duration]
      ,(SELECT TOP (1) ac.[actv_code_name]
      FROM [PMDB].[dbo].[TASK] t
      join [PMDB].[dbo].[TASKACTV] ta on t.task_id = ta.task_id
      join [PMDB].[dbo].[UDFCODE] ac on ta.udf_code_id = ac.udf_code_id
 
FROM DBO.PROJECT PROJECT
          JOIN DBO.PROJWBS PROJWBS ON PROJECT.PROJ_ID = PROJWBS.PROJ_ID
              JOIN DBO.PROJPCAT PROJPCAT ON PROJPCAT.PROJ_ID = PROJECT.PROJ_ID
                JOIN DBO.PCATTYPE PCATTYPE ON PCATTYPE.PROJ_CATG_TYPE_ID = PROJPCAT.PROJ_CATG_TYPE_ID 
                  JOIN DBO.PCATVAL PCATVAL ON PCATVAL.PROJ_CATG_ID = PROJPCAT.PROJ_CATG_ID
                      JOIN DBO.UDFTYPE UDFTYPE ON UDFTYPE.UDF_TYPE_ID = UDFTYPE.UDF_TYPE_ID                
                        JOIN DBO.UDFVALUE UDFVALUE ON UDFVALUE.UDF_TYPE_ID = UDFTYPE.UDF_TYPE_ID
1 ACCEPTED SOLUTION
v-xiaoyan-msft
Community Support
Community Support

Hi @Taffalaffa ,

 

I found a similar thread, hope it works for you:

"If the database administrator does not grant you read access, you must open the XER file with Excel (or Notepad) and then connect that file to Power BI."

Please click on the links below and read them.

Understanding Primavera XER Files 

How to clean a Primavera P6 XER file using the XER File Parser 

 

The original post:Here 

 

Hope it helps,


Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xiaoyan-msft
Community Support
Community Support

Hi @Taffalaffa ,

 

I found a similar thread, hope it works for you:

"If the database administrator does not grant you read access, you must open the XER file with Excel (or Notepad) and then connect that file to Power BI."

Please click on the links below and read them.

Understanding Primavera XER Files 

How to clean a Primavera P6 XER file using the XER File Parser 

 

The original post:Here 

 

Hope it helps,


Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.