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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
danielllin
Helper I
Helper I

how to avoid axis of chart combine same value?

Hi,

 

i can't describe whole question in subject, so i use this example to explain.

on the right side, in this data, both of emp0004 and emp0008 are Daniell

two of them are different person but have same name

if i use bar chart, how can i avoid emp_name combine automatically?

or how can i use emp_id as y-axis, but shows emp_name value instead of emp_id?擷取2.PNG

 

 

 

Thanks in advance!

2 ACCEPTED SOLUTIONS

Thanks for replying.

I can't use white box to cover id, because length of id are dynamic in different company,

but first step is considerable, it's almost same effect as creating a new column to combine id & name, i will use this method if there are no other better and proper way. 

View solution in original post

@danielllin,

I  think that the best approach is to create a calculated column to combine emp_id and emp_name.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5

Maybe a bit of a hack, but try putting both Id and name on the axis, then drill down using the button to maintain hierarchy (the 3rd button moving left to right on the top left corner of the chart, the one with the horizontal bar above the down arrows). Then hide the ids under a white box



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Thanks for replying.

I can't use white box to cover id, because length of id are dynamic in different company,

but first step is considerable, it's almost same effect as creating a new column to combine id & name, i will use this method if there are no other better and proper way. 

@danielllin,

I  think that the best approach is to create a calculated column to combine emp_id and emp_name.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I see, thanks!

Has anyone found a correct (non-hack) method of doing this in Power BI? Our customer Id's are sensative and absolutely cannot be concatenated to their values, but we don't want to automatically "group" equal values.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.