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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
id47
Regular Visitor

EnhancedScatter Legend and Shape Inputs

I am trying to build a scatter plot using EnchancedScatter visualization in PBI that I was able to import from Microsoft App Source. I want to have the data points be the same color based on the same Legend value and the same shape based on the same value of the input to the Shape field. How can I do that? Is there any other way of doing this, ie plot the data on scatter plot using a legend for colors and another legend for the shapes? For example: Plot "Sales" and "Product" on the X and Y axes and then split the data by "Country" for colors and "Quarter" for shapes (such as triangles, circles, squares, etc.)

3 REPLIES 3
id47
Regular Visitor

Thanks a lot for responding to my question. I am attaching a sample data. It has 4 columns "Product", "Sales", "Country" and "Quarter". I need to plot the raw values of "Product" and "Sales" on the X and Y axes of the scatter plot respectively, then color code all the scatter points with the same country as the same color. Within each color, I want to symbol-code the data in the same quarter as the same symbol (within each color-coded country).

 

I am having several issues though. Firstly, EnhancedScatter does not allow me to choose the raw X, Y value as such. I do not want to use any of the statistics as follows:

id47_0-1717784232907.png

How can I choose the X, Y raw values?

Secondly, I chose the Legend as "Country" and Shape as "Quarter". However, it doesn't simply choose the value of the "Quarter" but gives me the following options, none of which work:

id47_1-1717784802857.png

The graph that I am looking for, is as follows:

id47_2-1717784934461.png

Is it possible to generate a graph like this in Power BI?

Thanks again!

 

id47
Regular Visitor

I am unable to attach the data, so pasting an image here:

id47_0-1717788696793.png

 

v-yangliu-msft
Community Support
Community Support

Hi  @id47 ,

 

You can download the sample data and related videos for Enhanced Scatter from the link below, which can help you customize colors and use shapes correctly. 

In the visual, you can set the colors for each category in the Legend under Data colors; whatever color you set, that color will be displayed.

vyangliumsft_0-1717729723373.png

You may also consider adding a color column and placing it into Customized Color to display the corresponding color.

vyangliumsft_1-1717729723374.png

vyangliumsft_2-1717729743059.png

Place the created [Shape] column into Shape.

vyangliumsft_3-1717729752880.png

Refer to:

Enhanced Scatter (microsoft.com)

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors