Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

N/A

N/A

  • 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

2 Replies

  • HotChilli's avatar
    HotChilli
    Community Champion

    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

  • HotChilli's avatar
    HotChilli
    Community Champion

    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