March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi
Hoping someone can help.
I have the following table:
Project ID | Project Lead | Supporting Lead |
Project 1 | Staff 1 | Staff 3 |
Project 2 | Staff 3 |
|
Project 3 | Staff 1 | Staff 4 |
Project 4 | Staff 2 | Staff 3 |
Project 5 | Staff 4 |
|
which I am hoping to put in a visual table that looks like this, which returns the number of changes each staff is Leading and Supporting
Staff ID | Number of Projects Led | Number of Projects Supporting |
Staff 1 | 2 |
|
Staff 2 | 1 |
|
Staff 3 | 1 | 2 |
Staff 4 | 1 | 1 |
However, this is what I am getting - the 'Number of Project Led' column is returning the correct result; however, the 'Number of Projects Supporting' is returning the incorrect result. It's counting the number of each staff's project which is being supporting by another staff, not the number of projects that they are supporting.
| Number of Projects Led | Number of Projects Supported |
Staff 1 | 2 | 2 |
Staff 2 | 1 | 1 |
Staff 3 | 1 |
|
Staff 4 | 1 | 1 |
So Staff one is leading 2 projects and is not supporting any projects. I'm expecting 2 and 0 for Staff 1
However, I am getting 2 and 2.
'Staff N' pulls the staff's names and email address from a dimension table.
Any help on why power BI is pulling/calculting the wrong figures and how i can rectify this?
Solved! Go to Solution.
You need to unpivot your data in order for your staff column to be unique (or a single one at least).
I'm attaching you the file I reproduced with your data. I hope it helps 🙂
Proud to be a Super User!
You need to unpivot your data in order for your staff column to be unique (or a single one at least).
I'm attaching you the file I reproduced with your data. I hope it helps 🙂
Proud to be a Super User!
Thank you very much. I'm a newbie to power bi so will give this a go!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |