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
AdamMG
Helper I
Helper I

Measures - values sorted ASC

Hi everyone.
Basically I need to create a scatter plot where I will have x and y sorted ascending and plot against each other, ... so the number are not correlated to each other anymore

My table is quite big so I think would be better to have two measures x and y?
Please help...
BTW. I am going to use DENEB and Vega-Lite to plot the scatterplot
AdamMG_0-1716769519457.png

 

4 REPLIES 4
AdamMG
Helper I
Helper I

Hi @Anonymous 
I know how to create scatterplot in vega....
I don;t know how to create the measures ... 😉

Anonymous
Not applicable

Hi @AdamMG ,

 

Do you mean an ordering measures of x and y?

Rank_X = RANKX(ALLSELECTED('Table'),[x],MAX('Table'[x]),ASC,Dense) 
Rank_Y = RANKX(ALLSELECTED('Table'),[y],MAX('Table'[y]),ASC,Dense) 

Best Regards,

Neeko Tang

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

Hi @Anonymous 
Not really....
Please take first table and try to create second chart.

Anonymous
Not applicable

Hi @AdamMG ,

 

First, you'll need to create two separate measures for your x and y axes. Once you have your measures or ranked columns ready, you can use them in DENEB with a Vega-Lite specification. Here is a basic example of how you might structure your Vega-Lite JSON to plot the sorted values:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "A scatterplot showing sorted x and y values.",
  "data": {
    "name": "dataset"
  },
  "mark": "point",
  "encoding": {
    "x": {"field": "SortedX", "type": "quantitative"},
    "y": {"field": "SortedY", "type": "quantitative"}
  }
}

 

Best Regards,

Neeko Tang

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

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.