You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AB#48647: Feature Progress rollup sample Power BI report (Power BI, New, Phase 3)
AB#29135: CFD report
AB#29140: Cycle time and lead time control charts - Azure DevOps Services
:::image type="content" source="media/reports-boards/bug-trends-selections.png" alt-text="Screenshot of Power BI Visualizations and Fields selections for Bug trends report. ":::
129
128
130
129
For a simple report, do the following steps:
131
130
@@ -138,13 +137,9 @@ For a simple report, do the following steps:
Copy file name to clipboardExpand all lines: docs/report/powerbi/includes/query-filters-work-items.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,6 @@ ms.date: 12/05/2022
7
7
---
8
8
9
9
> [!NOTE]
10
-
> To determine available properties for filter or report purposes, see [Metadata reference for Azure Boards](../analytics/entity-reference-boards.md). You can filter your queries or return properties using any of the `Property` values under an `EntityType` or `NavigationPropertyBinding Path` values available with an `EntitySet`. Each `EntitySet` corresponds to an `EntityType`. To learn more about the data type of each value, review the metadata provided for the corresponding `EntityType`.
10
+
> To determine available properties for filter or report purposes, see [Metadata reference for Azure Boards](../../analytics/entity-reference-boards.md). You can filter your queries or return properties using any of the `Property` values under an `EntityType` or `NavigationPropertyBinding Path` values available with an `EntitySet`. Each `EntitySet` corresponds to an `EntityType`. To learn more about the data type of each value, review the metadata provided for the corresponding `EntityType`.
This article shows you how to display, for a given set of open Bugs, the number of Bugs in each State, trended over a period of time. The following image shows an example of such a trend.
19
-
20
-
21
-
:::image type="content" source="media/odatapowerbi-bugtrend-report.png" alt-text="Screenshot of Bug trends sample line chart report.":::
18
+
Bug trend reports are useful to see how well a team is closing active bugs. This article shows you how to display the number of bugs in a given state over a period of time. The following image shows an example of a bug trends report.
22
19
20
+
:::image type="content" source="media/reports-boards/bug-trends-report.png" alt-text="Screenshot of Bug trends line chart report.":::
-`{project}` - Your team project name, or omit "/{project}" entirely, for a cross-project query
88
86
-`{areapath}` - Your Area Path. Example format: `Project\Level1\Level2`
89
-
-`{startdate}` - The date to start your trend report. Format: YYYY-MM-DDZ. Example: `2019-04-01Z` represents 2019-April-01. Don't enclose in quotes.
87
+
-`{startdate}` - Start your report for items completed on or after a given date with the format: `YYYY-MM-DDZ`. For example: `2022-04-01Z` represents 2022-April-01. Don't enclose in quotes.
90
88
91
89
<!--- How specify the end date? -->
92
90
@@ -186,7 +184,7 @@ The following table describes each part of the query.
186
184
187
185
188
186
189
-
### Bug trends filtered by Teams
187
+
### Bug trend filtered by Teams
190
188
191
189
You can query for bug trends by team name rather than Area Path.
Expand the `Area/AreaPath)` and `Iteration/IterationPath` columns. Expanding the columns flattens the record into specific fields. To learn how, see [Transform Analytics data to generate Power BI reports](transform-analytics-data-report-generation.md).
346
340
347
341
348
-
###(Optional) Rename fields
342
+
## (Optional) Rename fields
349
343
350
344
Once you have expanded the columns, you may want to rename one or more fields. For example, you can rename the column `AreaPath` to `Area Path`. To learn how, see [Rename column fields](transform-analytics-data-report-generation.md#rename-column-fields).
351
345
352
346
353
-
### (Optional) Rename query
354
-
355
-
You can the default query label, *Query1* to something more meaningful. To do so, see [Rename the query](transform-analytics-data-report-generation.md#rename-the-query).
356
-
357
-
358
347
## Create the Line chart report
359
348
360
349
1. In Power BI, choose the **Line chart** report under **Visualizations** and select the fields as shown in the following image.
361
350
362
351
:::image type="content" source="media/reports-boards/bug-trends-selections.png" alt-text="Screenshot of Power BI Visualizations and Fields selections for Bug trends report. ":::
363
352
364
-
1. Add the field "**DateValue**" to **X-axis**.
365
-
- Right-click **DateValue** and select **DateValue**, rather than **Date Hierarchy**.
353
+
1. Add `DateValue`" to **X-axis**, and right-click `DateValue` and select `DateValue` rather than `Date Hierarchy`.
366
354
367
-
1. Add the field Count to **Y-axis**.
368
-
- Right-click **Count** and ensure **Sum** is selected.
355
+
1. Add `Count` to **Y-axis**, and right-click `Count` and ensure **Sum** is selected.
369
356
370
-
1. Add the State to **Legend**.
357
+
1. Add `State` to **Legend**.
371
358
372
359
The example report displays.
373
360
374
-
:::image type="content" source="media/odatapowerbi-bugtrend-report.png" alt-text="Screenshot of Sample Bug trends line chart report.":::
361
+
:::image type="content" source="media/reports-boards/bug-trends-report.png" alt-text="Screenshot of Sample Bug trends line chart report.":::
375
362
376
363
### Modify report format visuals
377
364
378
365
- To modify format elements of the report, choose the **Format your visual** (paintbrush) icon and modify one or more available settings. For example, you can modify the line colors used in the trend chart.
379
366
380
367
:::image type="content" source="media/reports-boards/bug-trends-change-color.png" alt-text="Screenshot of Power BI Format visual selections for Bug trends report. ":::
381
368
382
-
To learn more, see [Get started with the formatting pane](/power-bi/visuals/service-getting-started-with-color-formatting-and-axis-properties)
369
+
To learn more, see [Get started with the formatting pane](/power-bi/visuals/service-getting-started-with-color-formatting-and-axis-properties).
-`{project}` - Your team project name, or omit "/{project}" entirely, for a cross-project query
83
83
*`{teamname}` - The name of the team to display CFD data
84
-
*`{startdate}` - The date to start the CFD chart from. Format: YYYY-MM-DDZ. Example: `2019-04-01Z` represents 2019-April-01. Don't enclose in quotes.
84
+
-`{startdate}` - Start your report for items completed on or after a given date with the format: `YYYY-MM-DDZ`. For example: `2022-04-01Z` represents 2022-April-01. Don't enclose in quotes.
85
85
86
86
87
87
### Query breakdown
@@ -191,23 +191,23 @@ In the follow example, the query was renamed to *CFD*, but no columns were renam
191
191
1. Add `DateValue` to **Axis** and then right-click `DateValue` and select `DateValue`, rather than `Date Hierarchy`.
192
192
193
193
1. Add `Count` to **Values**.
194
-
2.
194
+
195
195
1. Add `ColumnName` to **Legend**.
196
196
197
-
1. In the Filters pane, expand `ColumnName`, and select only the values you want to appear on the chart. For example, you may want to unselect *New*, *Proposed*, *Done*, or *Closed*.
197
+
1. In the **Filters** pane, expand `ColumnName`, and select only the values you want to appear on the chart. For example, you may want to unselect *New*, *Proposed*, *Done*, or *Closed*.
198
198
199
199
:::image type="content" source="media/reports-boards/cfd-columnname-filters.png" alt-text="Screenshot of Power BI Filters for ColumnName. ":::
200
200
201
201
202
-
The example report displays the columns in alphabetic order.
202
+
The example report displays the columns in alphabetic order. However, the preferred order is to sort the data according to the Kanban column order, or progressive order.
203
203
204
204
:::image type="content" source="media/reports-boards/cfd-stacked-area-chart.png" alt-text="Screenshot of Sample Power BI Cumulative Flow stacked area chart report, columns sorted in alphabetic order.":::
205
205
206
206
### Sort columns in progressive order
207
207
208
-
To sort the chart columns in the order specific on the board, do the following steps:
208
+
To sort the chart columns in the order specific on the Kanban board, do the following steps:
209
209
210
-
1.Use the query below to create a new query in Power BI. When done, rename the query to *ColumnOrder*.
210
+
1.Create a new query in Power BI per the following queries. When done, rename the query to *ColumnOrder*.
1. Select **Column Tools** and then **Sort by Column** and choose `ColumnOrder`.
250
250
:::image type="content" source="media/reports-boards/cfd-sort-by-column.png" alt-text="Screenshot of Power BI Column Tools, Sort by Column selection.":::
251
251
252
-
1. Select the **Modeling** menu, and then select **Manage Relationships**. Ensure there's a relationship between `CFD.ColumnName` and `ColumnOrder.ColumnName`. It's likely that the relationship was autodetected.
252
+
1. Select the **Modeling** menu, and then **Manage Relationships**. Ensure there's a relationship between `CFD.ColumnName` and `ColumnOrder.ColumnName`. It's likely that the relationship was autodetected.
253
253
254
254
:::image type="content" source="media/reports-boards/cfd-manage-relationships-dialog.png" alt-text="Dialog for Manage Relationships showing a relationship between CFD.ColumnName and ColumnOrder.ColumnName":::
0 commit comments