If you have SQL Server Analysis Services installed, you can request a relationship. Here's how to do it in Excel:
- Connect to the Tfs_Analysis cube in Excel (Data โ Other Sources โ Analysis Services)
- Select the fields "Changes in the working class",
- Take a look at measuring version control settings and select a parameter set identifier
- Find the size of the work item and select ID
This will allow you to query the relationship between work items and change sets. If you display it as a Row field and the other as a column field, and then get subtotals for each row, this will give you the number of change sets for each work item (as well as the number of work items for the change set).
Note, however, that running this query on a very large project in TFS can be prohibitively expensive, so you should do this for a small range of change sets and few work items. To do this, note that you need to use a date dimension to filter dates for change sets, while you need to use one of the work item fields to create dates for work items (creation date, date modified, etc.).
Perhaps you may modify the OLAP cube to get this information for the actual tables for you by changing your ETL process from stock, in which case you can simply request a set of changes account.
source share