You can add the additional field from the Reporting Project that you created. Here is what I did:
Create a new Reporting Project Add TfsReportDS and TfsOlapReportDS (these will not be deployed because they already exist)
Change the project properties (Right click Project and select properties) OverwriteDataSource = false TargetDataSourceFolder = / TargetReportFolder = /Your_Project_Name/ TargetServerURL = http://Your_Report_Server/ReportServer
Download your Builds report and add it to your project using "Add existing item". I suggest renaming the report or backing up the original in case anything goes horribly wrong. For example renamed mine from Build to Build2.
Add Build Type to the query: Double click the report to open it with the designer and select the Data Tab Select the Dataset: dsBuilds from the dataset dropdown In the inner NONEMPTYCROSSJOIN add [Build].[Build Type].[Build Type] and change the 3 to a 4. This should result in an inner section looking like:
NONEMPTYCROSSJOIN
( GENERATE(STRTOSET(@BuildParam) AS s, DESCENDANTS(s.CURRENTMEMBER,[Build].[Build].[Build])), [Build].[Build Type].[Build Type], GENERATE(STRTOSET(@PlatformParam) AS s, DESCENDANTS(s.CURRENTMEMBER,[Platform].[Platform].[Platform])), GENERATE(STRTOSET(@FlavorParam) AS s, DESCENDANTS(s.CURRENTMEMBER,[Flavor].[Build Flavor].[Build Flavor])), [Measures].[Build Project Count],4 ),
Modify the Query Parameters so the query will execute in the designer. Click the button that looks like a report with an @ sign written over it on the bar directly above the query Change the Project Parameters Default value to YOUR_PROJECT_NAME OK
Execute the query This should return a list of all your builds including Build Type
Save
Edit the Layout to display the Build Type On the Layout tab right click a column on the table and add a new column Give the column a name in the top row In the 2nd row enter =Fields!Build_Type.Value
Save
Edit the Report Parameter ExplicitProject parameter Still on the Layout Tab select Report -> Report Parameter Under ExplicitProject set the Default Value to Non-queried with the value of YOUR_PROJECT_NAME OK
Save
Go to the Preview Tab - View Report should display your report with the Build Type data
Deploy
Go to the Report Web site and verify the report works
Let me know how it goes. |