Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hello,
I'd like to visualize data from Microsoft DevOps with Power BI.
Therefore I want to create a bar chart that shows the number of User Stories in their current state.
My dataset (simplified) looks like this:
Date | WorkitemId | Revision | State |
2020-05-01 | 14146 | 1 | New |
2020-05-02 | 14146 | 2 | Active |
2020-05-03 | 14146 | 3 | Closed |
2020-05-01 | 15537 | 1 | New |
2020-05-02 | 15537 | 2 | Active |
I created the following measure to get the latest state:
Now I'd like to create a bar chart that counts the number of User Stories at their latest/current state.
The bar chart should look like this:
Apparently I can't use my created measure within the bar chart. Therefore all I get is currently a bar chart that looks like this:
Which is the best approach to solve this problem?
Thanks in advance
Solved! Go to Solution.
Hi @Anonymous ,
You need to add [workitemid] in axis, which should work correctly. In addition, your measure is used to calculate [state] instead of calculate count, so it can't put in Value field. You could refer to my sample for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You need to add [workitemid] in axis, which should work correctly. In addition, your measure is used to calculate [state] instead of calculate count, so it can't put in Value field. You could refer to my sample for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @dax, that helped!
But what if I have >1000 WorkItems and can't use WorkItemId in axis or legend because I just want to show the count of WorkItemId's at the current state.
Hi @Anonymous
as I understand, you can easily filter by desired Status in Filters Pane.
User | Count |
---|---|
123 | |
96 | |
89 | |
73 | |
63 |
User | Count |
---|---|
138 | |
115 | |
111 | |
98 | |
95 |