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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
MKins_86
Frequent Visitor

Joining 2 XY datapoints - method not working

Hello,

 

@Rayshin 

I am trying to connect 2 XY data points ith a line. I have found this blog Advanced Sport Visualisations in Power BI - Microsoft Fabric Community and it appears to show exactly what I am looking to do. 

 

This is an example of the data table I create when following the above method:

 

MKins_86_1-1730195672242.png

 

However, when following the steps suggested to create a lin chart, I cannot create the line chart where there are only (in the example above) 2 colours available for each line.

 

I need to drag my 'Index' column or unique identifier column into the legend to create lines that are connected through two points, and as a result I create this chart:

MKins_86_0-1730195509443.png

I really would like the chart to resemble the one in the blog article, where a pass is either 'successful' i.e. green, or unsuccessful i.e. red. 

 

Does anyone have any suggestions or insight into what I could do or am likely doing wrong?

 

Thanks in advance,

 

Marc

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @MKins_86 

An interesting puzzle, I think the answer is they are using a custom visual that allows this.

You could use Small Multiples to achieve this result:

SamWiseOwl_0-1730198495725.png

 

Alternatively you can set each lines colour manually:

SamWiseOwl_1-1730198778801.png

 

It feels strange but with the current data I can't see how you would get it to work!


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

2 REPLIES 2
SamWiseOwl
Super User
Super User

Hi @MKins_86 

An interesting puzzle, I think the answer is they are using a custom visual that allows this.

You could use Small Multiples to achieve this result:

SamWiseOwl_0-1730198495725.png

 

Alternatively you can set each lines colour manually:

SamWiseOwl_1-1730198778801.png

 

It feels strange but with the current data I can't see how you would get it to work!


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

@SamWiseOwl thanks for the solution. It does seem weird that this not a basic function within power bi. 

The 'problem' I will have with this soluton is that there will be instances where i have more lines than those i create a template report from; and therefore, each time more data comes in I will need to manually adjust the line colours.

thanks!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors