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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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