jamesdales
4 years agoKudo Kingpin
Icon Map Capabilities and Guide
Icon Map is a custom visual providing a flexible set of mapping capabilities for Power BI.
Background layers:
A choice of raster background layers including custom URLs that can be configur...
rawandshoraa
1 year agoFrequent Visitor
Hello,
could you please help with the following case:
i'm using icon map to draw a list of polygons based on x,y,seq for each polygon.
I need to add center point for each polygon based on x,y for each.
here's my query:
PolygonWithCenter =
IF (
HASONEVALUE ( POINTS[name] ),
VAR PointList =
CONCATENATEX (
POINTS,
POINTS[X_GOOGLE] & " " & POINTS[Y_GOOGLE],
",",
POINTS[SEQ]
)
VAR CenterX = MAX(CENTERS[X_GOOGLE])
VAR CenterY = MAX(CENTERS[Y_GOOGLE])
VAR CenterPoint = CenterX & " " & CenterY
VAR Polygon = "POLYGON((" & PointList & "))"
VAR MarkCenter = "POINT(" & CenterPoint & ")"
RETURN
Polygon & "|" & MarkCenter
)