Skip to content

Commit 615f54d

Browse files
committed
Updates to transform data. Start of work on feature progress report.
AB#48647: Feature Progress rollup sample Power BI report (Power BI, New, Phase 3)
1 parent 8398f6f commit 615f54d

12 files changed

+27
-12
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/report/powerbi/sample-boards-featureprogress.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This article shows you how to create a stacked bar report to display progress of
3636
let
3737
Source = OData.Feed ("https://analytics.dev.azure.com/{organization}/{project}/_odata/v3.0-preview/WorkItems?"
3838
&"$filter=WorkItemType eq 'Feature' "
39-
&"and State ne 'Cut' "
39+
&"and State ne 'Removed' "
4040
&"and startswith(Area/AreaPath,'{areapath}') "
4141
&"and Descendants/any()"
4242
&"&$select=WorkItemId,Title,Area,Iteration,AssignedTo,WorkItemType,State,AreaSK"
@@ -57,7 +57,7 @@ in
5757
```
5858
https://analytics.dev.azure.com/{organization}/{project}/_odata/v3.0-preview/WorkItems?
5959
$filter=WorkItemType eq 'Feature'
60-
and State ne 'Cut'
60+
and State ne 'Removed'
6161
and startswith(Area/AreaPath,'{areapath}')
6262
and Descendants/any()
6363
&$select=WorkItemId,Title,Area,Iteration,AssignedTo,WorkItemType,State,AreaSK

docs/report/powerbi/transform-analytics-data-report-generation.md

+25-10
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Expand Teams
2525

2626
## Expand columns
2727

28-
The query returns several columns that you need to expand before you can use them in Power BI. Any entity pulled in using an OData **$expand** statement returns a record with potentially several fields. You need to expand the record to flatten the entity into its fields. Examples of such entities are: AssignedTo, Iteration, and Area.
28+
The query returns several columns that you need to expand before you can use them in Power BI. Any entity pulled in using an OData **$expand** statement returns a record with potentially several fields. You need to expand the record to flatten the entity into its fields. Examples of such entities are: **AssignedTo**, **Iteration**, and **Area**.
2929

3030
After closing the Advanced Editor and while remaining in the Power Query Editor, select the expand button on the entities you need to flatten.
3131

@@ -53,20 +53,30 @@ After closing the Advanced Editor and while remaining in the Power Query Editor,
5353

5454
### Expand Descendants column
5555

56-
1. Choose the expand button, and select the columns to report on:
56+
1. Choose the **Expand** button, and select the columns to report on:
5757

58-
> [!div class="mx-imgBorder"]
59-
> ![Power BI + OData - expanding an entity column](media/odatapowerbi-expanddescendants.png)
58+
:::image type="content" source="media/transform-data/descendants-column-expand.png" alt-text="Screenshot of Power BI Descendants column. ":::
6059

6160
2. Check all the columns and choose **OK**.
6261

63-
> [!div class="mx-imgBorder"]
64-
> ![Power BI + OData - expanding Descendants](media/odatapowerbi-expandrollup.png)
62+
:::image type="content" source="media/transform-data/expand-descendents-property.png" alt-text="Screenshot of Power BI Descendants column, expand options. ":::
6563

6664
3. The Descendants entity is flattened to the selected columns:
6765

68-
> [!div class="mx-imgBorder"]
69-
> ![Power BI + OData - expanded Descendants](media/odatapowerbi-expandedrollup.png)
66+
:::image type="content" source="media/transform-data/descendents-expanded-columns.png" alt-text="Screenshot of Power BI Descendants column, expand options. ":::
67+
68+
69+
#### Pivot Descendants.StateCategory column
70+
71+
1. Select the 1Descendants.StateCategory1 column header to select it.
72+
73+
1. Select **Transform** menu and then **Pivot Column**.
74+
:::image type="content" source="media/transform-data/transform-menu-pivot-column.png" alt-text="Transform menu, Pivot Column option.":::
75+
76+
1. In the Pivot Column dialog, for **Values** select `Descendants.TotalStoryPoints`, and then press **OK**.
77+
Power BI creates a column for every StateCategory value.
78+
79+
:::image type="content" source="media/transform-data/descendants-pivot-column-dialog.png" alt-text="Dialog of Pivot Column for Descendants.TotalStoryPoints column. ":::
7080

7181
<a id="rename-column-fields" />
7282

@@ -81,8 +91,6 @@ When finished with your expansion, you may choose to rename one or more columns.
8191

8292
1. Enter a new label for the column field and then press Enter.
8393

84-
85-
8694
## Rename the query
8795

8896
1. You can rename the query from the default **Query1**, to something more meaningful.
@@ -95,3 +103,10 @@ When finished with your expansion, you may choose to rename one or more columns.
95103
> [!div class="mx-imgBorder"]
96104
> ![Power BI Close & Apply](/azure/devops/report/powerbi/media/powerbi-close-apply.png)
97105

106+
107+
108+
## TBD
109+
- Create custom fields - such as a percentage
110+
- Can't pivot if you have unexpanded records - will get an error message about nested columns
111+
- Must remove Null fields - use Replace values (why does this not work in some instances)
112+
-

0 commit comments

Comments
 (0)