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
cozywolf
New Member

How to connect a list of two xy series (start-end points)?

Hello

 

I am trying plot a few hundred or maybe thousands of paired (start and end) xy series with a line connected the two points. I have done it successfully in Excel by follwoing this tutorial The data and the plot look like this: example.JPG

I am wondering if I can do the same in PowerBI so I can add filters to filter the data base on the criteria.

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

If you model your data like the below then you can use the native line chart visualisation.

 

You need to do the following:

 

1) Add a unique transaction \ event id

2) pivot the start and end coordinates onto their own row

 

2019-07-22_12h43_26.png

 

I have included the solution on a PBIX workbook you can download here: Download

 

2019-07-22_13h14_13.png

 

View solution in original post

4 REPLIES 4
cozywolf
New Member

To fenchurchio

This is perfect, thanks so much for the help.

 

To v-chuncz-msft (Community Support Team)

I didn't know that it can interface with R, I will definitely look into it.

 

Anonymous
Not applicable

If you model your data like the below then you can use the native line chart visualisation.

 

You need to do the following:

 

1) Add a unique transaction \ event id

2) pivot the start and end coordinates onto their own row

 

2019-07-22_12h43_26.png

 

I have included the solution on a PBIX workbook you can download here: Download

 

2019-07-22_13h14_13.png

 

Hi, 

thanks, this is exactly what I was looking for. However, this does not seem to work with vertical lines or am i doing something wrong?

stefano123_1-1692346764124.png

 

stefano123_0-1692346745039.png

thanks

Stefan

v-chuncz-msft
Community Support
Community Support

@cozywolf 

 

You may try Create Power BI visuals using R.

https://www.rdocumentation.org/packages/graphics/versions/3.6.1/topics/segments

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.