Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
lennardsomera
Regular Visitor

Help Modelling This Data

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? 

1 ACCEPTED SOLUTION
ray_aramburo
Super User
Super User

You need to unpivot your data in order for your staff column to be unique (or a single one at least).

ray_aramburo_0-1732911892872.png

 

ray_aramburo_1-1732911911550.png

I'm attaching you the file I reproduced with your data. I hope it helps 🙂 

 

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
ray_aramburo
Super User
Super User

You need to unpivot your data in order for your staff column to be unique (or a single one at least).

ray_aramburo_0-1732911892872.png

 

ray_aramburo_1-1732911911550.png

I'm attaching you the file I reproduced with your data. I hope it helps 🙂 

 

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Thank you very much. I'm a newbie to power bi so will give this a go!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.