Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Can an Excel Report with Multivalue Custom field list report on one row per task

$
0
0

I have a ECF Multi Value field (MVF) at the Task Level and have created a report.  In Excel it wants to add it as a Pivotable, which makes sense and I end up with a row for each MVF.  If a Task has 3 MV selected there are 3 rows returned.

I want to see if it will return only one row (row per task). 

Example of Result Required

PTask name , MVf Value1, MVF Value2, MVF Value 3.

Build Car             X                                     X

Build Bike            X                     X

Is it possible?  is there something in my SQL Query I can do or is there something in Excel I can configure?

Result being Returned

PTask name , MVf Value1, MVF Value2, MVF Value 3.

Build Car             X                                    

Build Car                                                    X

Build Bike            X                    

Build Bike                                 X

SQL Query

SELECT

MSP_EpmProject_UserView.ProjectOwnerName,

MSP_EpmProject_UserView.ProjectName,

MSP_EpmTask_UserView.TaskName,

MSP_EpmLookupTable.MemberFullValue AS [Item],

Iif(MSP_EpmLookupTable.MemberFullValue LIKE '%' + 'CPT' + '%','X','') AS [CPT],

Iif(MSP_EpmLookupTable.MemberFullValue LIKE '%' + 'TS' + '%','X','') AS [TS],

Iif(MSP_EpmLookupTable.MemberFullValue LIKE '%' + 'CSAs' + '%','X','') AS [CSAs],

Iif(MSP_EpmLookupTable.MemberFullValue LIKE '%' + 'EM' + '%','X','') AS [EM],

Iif(MSP_EpmLookupTable.MemberFullValue LIKE '%' + 'RS' + '%','X','') AS [RS],

Iif(MSP_EpmLookupTable.MemberFullValue LIKE '%' + 'IS' + '%','X','') AS [IS]

 

FROM

MSP_EpmProject_UserView INNER JOIN

MSP_EpmTask_UserView ON

MSP_EpmProject_UserView.ProjectUID = MSP_EpmTask_UserView.ProjectUID

LEFT OUTER JOIN

[MSPCFTASK_Service Areas_AssociationView] ON

MSP_EpmTask_UserView.TaskUID = [MSPCFTASK_Service Areas_AssociationView].EntityUID

LEFT OUTER JOIN

MSP_EpmLookupTable ON

[MSPCFTASK_Service Areas_AssociationView].LookupMemberUID = MSP_EpmLookupTable.MemberUID

 

WHERE datalength(MSP_EpmLookupTable.MemberFullValue) > 0


Andrew Payze


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>