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
ksan048
Frequent Visitor

Map with lines (linestring type)

Hi all,

 

I have a shapefile that contains linestring types which shows a road network and I would like to use this to show the traffic volume along the different roads. However, it seems that PowerBI doesn't support linestrings.

 

Has anyone found a workaround for this or have any suggestions?

4 REPLIES 4
some1else
Helper II
Helper II

I did solve this. Converted the SHP file to CSV -> WKT using QGIS. This resulted in multiple lines of the coordinates I needed. So it was just a matter of transposing in Excel the lines I had that matched the category I supplied. Final look is like this: LINESTRING(coor1 coor2, coor3 coor4, etc)

What do you select in location type when using the format  LINESTRING(coor1 coor2, coor3 coor4, etc)? I tried this format and the map is still showing up blank.

 

Thank you!

HarishKM
Impactful Individual
Impactful Individual

@ksan048 No Power BI map currently supports linestrings. If you want to try a potential workaround, you could try converting lines to polygons using a tool such as QGIS, then converting to TopoJSON and bringing it into the Shape Map. That may work for you .

@some1else Try That bruh

Give a try ✌️

some1else
Helper II
Helper II

Also interested on this. Anyone got some input? Would be great if passing the mouse cursor over the line, it giving more info about that particular set of start/end point.

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.