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
Kirt1965
Helper III
Helper III

Dealing with more than one person with same name when creating a chart

To start I'll once again say I'm new to Power BI.  Looking to see how other people may have dealt with this situation.

 

I have a chart showing overtime hours per employee.  The problem is that there are multiple employees with the same name.  Every employee has a unique ID (like a SSN but not).  If I ran the chart off the ID, then I'd get a bar for each ID, but showing IDs on the axis isn't very user friendly.  Names would be better.  But if I use names, then people get grouped together because of having the same name.

 

What I wish I could do is run the chart off the ID but display the name associated with that ID instead of the actual ID.

 

Hoping this makes sense and someone has a good idea.

 

Thank you,

Kirt

5 REPLIES 5
vishal097
Helper II
Helper II

Did you got solution for this ?

 

if yes, then can you help me as I have the same situation.

We're just showing names followed by employee ID such as "Smith, Joe - 12345".  I couldn't come up with any other way to do it.

v-shex-msft
Community Support
Community Support

HI @Kirt1965,

I'd like to suggest you use multiple fields(username, Lastname, or user name, unique id) on your chart axis.
These records who has similar username will be aggregated when the chart axis is on the top level. You can drill to next axis level to break this wrong aggregated and expand records with current hierarchy level username, unique keys.

If these not help, can you please share some dummy data to test?
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
negi007
Community Champion
Community Champion

@Kirt1965Can you create a calculated column like below then use new column on the axis. 

 

Name_ID = 'Table'[User_Name]&'Table'[SSN]



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Thank you for the reply.  Yes, we can do this.  The cause of the problem mostly is that upper managerment just wants to see LastName, FirstInitialMiddleInitial and that results in duplicated names.  The driver for showing names in that format is they want to save space for the actual charts.  Adding the number on the end makes it as long as if we just kept the full name.  I was hoping there was some clever way to use the ID for the axis but display an associated value (the name) instead.

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.