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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
GStout824
Frequent Visitor

Scatterplot Non-Distinct Data Labels, without X- and Y-axes Summing

Hi all.  My apologies if this was answered elsewhere, I just can't seem to find a post addressing this.

I'd like to use non-distinct data labels in the Values field of a scatterplot, but not have those values get summed on the X- and Y-axes.  I'd like to use Last_Name as the data label, but that means that anyone with same last name gets their values summed.  Obviously I could use a unique value like Employee_ID or something, but a string of numbers is sort of useless, certainly nowhere near as convenient as just seeing Last_Name next to the marker.  Nor do I want to have both Employee_ID and Last_Name as part of the label.  Just Last_Name.

I realize it's inherently in conflict to try to plot non-distinct values distinctly, when the X- and Y-axes need to sum.  I get it.  Nonetheless, thought I'd see if there were any creative solutions out there.

 

I thought about trying to use a Calculate measure for my X- and Y-axes that could somehow ignore the Last_Name and therefore plot non-summed Last_Name values, but I'm not sure that's the way to go.

 

Any suggestions?

 

Many thanks in advance.

 

Screenshot 2024-08-29 151346.jpg

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @GStout824 

One method you can use here is to set the Group By Columns propery of the Last_Name column to Employee_ID.

This effectively instructs Power BI to include Employee_ID with Last_Name whenever Last_Name is used in a visual, as a grouping or filtering column. This property can only be set in Tabular Editor.

 

When Last_Name is used as a grouping field in a visual, Employee_ID will automatically be added as an (invisible) grouping column. 

 

I have attached a small example where I have set the Last_Name column's Group By Columns property to Employee_ID.

 

OwenAuger_0-1724971630284.png

See this article for a more detailed description:

https://www.sqlbi.com/articles/understanding-group-by-columns-in-power-bi


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi @GStout824 

One method you can use here is to set the Group By Columns propery of the Last_Name column to Employee_ID.

This effectively instructs Power BI to include Employee_ID with Last_Name whenever Last_Name is used in a visual, as a grouping or filtering column. This property can only be set in Tabular Editor.

 

When Last_Name is used as a grouping field in a visual, Employee_ID will automatically be added as an (invisible) grouping column. 

 

I have attached a small example where I have set the Last_Name column's Group By Columns property to Employee_ID.

 

OwenAuger_0-1724971630284.png

See this article for a more detailed description:

https://www.sqlbi.com/articles/understanding-group-by-columns-in-power-bi


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Yahtzee!!  This is incredible!  @OwenAuger Thank you so, so much.  Took me a minute because I needed to download a later version of Tabular Editor 2, but once I did the Keep Unique Key field was present and I was able to change to True.  From there, pure gold.  Thank you again!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors