cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
park77
Helper I
Helper I

N/A

N/A

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

I think you can make this work if you get the table in this format:

Index x y

i.e. get the x2,y2 columns appended.  You can do this in Power Query by duplicating the table twice. Then remove 2 columns from each copy(x,y on one ; x2,y2 on the other).  Rename the columns to be  x and y and then append them together.

You should then be able to plot a line chart with x on x axis, y in values, index in tooltips.

It won't work if you have an index with 2 values with the same x value (because powerbi will sum the y values) but you may not have that in the data

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

Merge has specific meaning in powerbi so i definitely mean append but as an example the first row would move to :

Index x y

0      20.9 98.9

0      24.5 89.2

 

and in the title it says scatter plot but this would be on a line chart

HotChilli
Super User
Super User

I think you can make this work if you get the table in this format:

Index x y

i.e. get the x2,y2 columns appended.  You can do this in Power Query by duplicating the table twice. Then remove 2 columns from each copy(x,y on one ; x2,y2 on the other).  Rename the columns to be  x and y and then append them together.

You should then be able to plot a line chart with x on x axis, y in values, index in tooltips.

It won't work if you have an index with 2 values with the same x value (because powerbi will sum the y values) but you may not have that in the data

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors