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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nunesrfm
Regular Visitor

Scatterplot with a slicer for each axis.

Hi there. I'm new to PowerBI and have a bit of a problem, maybe someone here can help.


I have a table, SAMPLES, similar to the following example:

SAMPLE_ID

VARIABLE_IDVALUE

1

112

1

23

1

387

2

115

2

25
2365

 

and another table, VARIABLES:

VARIABLE_ID

VARIABLE_NAME
1MY_VAR
2ANOTHER_VAR
3YET_ANOTHER

VARIABLE_ID is connected between tables


I wish to make a scatterplot where i can select my VARIABLE_NAME independently for each axis, and plot the VALUE for that. 
So basically having a slicer that allows me to select between the different VARIABLE_NAME for X axis and another to select between the different VARIABLE_NAME for Y axis.

I have also pivoted the SAMPLES table into the following form

SAMPLE_ID123
112387
215565

 

and in that form I can get the scatterplot that I want, by selecting the appropriate columns for each axis. However I cant use the slicer to select by name.

What are my options to do the scatterplot? Thanks in advance

Thanks in advance.

2 REPLIES 2
Anonymous
Not applicable

Hi  @nunesrfm ,

 

Not quite sure what you mean, are you referring to using a slicer to display [VARIABLE_NAME] and [SAMPLE_ID] .

You might consider placing [VARIABLE_NAME] to the X-axis and [SAMPLE_ID]. Place it to the Legend so that when you select the slicer, it will show different data.

Refer to:

Scatter, bubble, and dot plot charts in Power BI - Power BI | Microsoft Learn

vyangliumsft_0-1717639757559.png

Can you put the expected results in picture form so we can help you better?

 

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.

Thanks for your answer @Anonymous. That's not exactly it - What I need is to make a scatterplot that displays in the X-axis one of the variables values, say the values of MY_VAR, and on the Y-axis another variable, say ANOTHER_VAR. 

I can do it using the pivoted table, where MY_VAR corresponds to "1" and ANOTHER_VAR corresponds to "2", in the following manner (changed the automatic axis ranges to make the points visible):

nunesrfm_0-1717666148965.png


The above is the scatterplot for that I need. But I want to be able to select what VARIABLE_NAME is in each axis, so I can then change the scatterplot to display for instance MY_VAR vs. YET_ANOTHER by selecting the display variables in a slicer for the X-axis and another slicer for Y-axis. 

Once again, thank you. 




 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.