I'm looking to create a Power BI map visual of a residential area however, rather than have the map display dots for each of the xy coordinates denoting a particular address (coloured depending on a condition), I was wondering if there was a way of the map showing a line instead of the dots? For example, on a street with 10 houses where the first 5 houses are blue dots and the last 5 hours are red dots, can this be changed so the map shows a blue line connecting the first 5 houses and a red line connecting the last 5 houses?
Related
We got several OLAP Cubes in PowerBI Datasets.
One of the cubes has a dimension "dim_location" which contains columns for latitude and longitude. But each dataset has 2 pairs of values, let's call them start_latitude, start_longitude and end_latitude, end_longitude.
I got a fact table connected to that dim_location and want to show some of the measures on a map.
It works perfectly fine with both the map visual and the ArcGIS visual, if I use either the end or the start coordinates. I can show the values as circles with changing size or changing color dependent on the value of a measure. So far so good.
But what I instead want to accomplish is to show a line on the map for each dataset. Each line shall go from start point to end point, color dependent on measure value.
Is there a way to offer the coordinates in the cube dimension in some string syntax that will create a shape, like a polygon with only 2 points, which would result in a line, which can then be shown on the map?
As stated before everything works fine on the map and the ArcGIS visual with one point (lat/lon) per dataset. Tried to find help online for some polygon syntax but came up empty.
Please see picture :
Given the set of points marked in Red, I take two consecutive points (here 0 and 1 - these numbers are just for illustration , thus not the index in the array holding these points.).
I take their midpoint. From the midpoint I draw a normal on each segments in the Green set (segment = line between two consecutive points).
The blue line is such a normal. The intersection point falls between points 10 and 11. I record the length of it.
The black normal line however, is a normal on the line given by points 12 and 13. But, the intersection does not fall between 12 and 13 . So I reject it.
I want to get the median value of the lengths all such accepted lines, measured from the midpoints of the segments in the red set.
My Brute force algorithm is running at O(MN) time.
My questions :
Is there a standard algorithm for what I am seeking? That is to say, I do not know if the parameter I am measuring has a common name.
What is the fastest method of measuring it.
I would love to do some parallel processing, but I am using D, and I am getting :
"core.thread.threadbase.ThreadError#src/core/thread/threadbase.d(1219): Error creating thread"
Thank you.
The following is a screen shot from a Tableau report and I need to recreate this in PBI:
The map consists of two different data sets. The five square data points are latitude and longitude values based on a filter set. That's easy to reproduce. The 11 shaded areas represent 11 different zip code areas. For each of the 11 zip code areas, I need the area of the country represented by the zip code to be highlighted and shaded by a certain color gradient that is dependent upon a measure. For example, the orange shaded area is zip code 37122 near Nashville, TN.
Is anyone aware of PBI map visual that can do this? I've spent about two hours reviewing a few but no luck so far.
I discovered that a Filled Map visual in Power BI can do exactly this.
Description
Currently, I have 2 stacked column charts:
1. Number of people by country.
I use a stacked column chart to see the number of men and the number of women by country.
2. Number of pets by country.
I use a stacked column chart to see different groups (dogs / cats / other) by country.
Objective
My objective is to merge both to have only one graph.
For example, on Left Vertical axis, the number of people and on the Right Vertical axis, the number of pets.
Both (number of people, the number of pets) have to use the same X axis.
Is it possible to do this with PowerBI ?
Many thanks in advance
There's not a perfect solution to this.
One option would be to take a look at custom visuals like this one:
Clustered Stacked Bar Chart
With the built-in bar charts, you can do something similar if you shape your data right.
For example, if you shape your data like this:
then you can place Country and Type both on the x-axis and drill down to get a visual like this:
There aren't two vertical axes but it's not too far off.
I am looking for a target bar line graph for each category in Power BI as shown in the picture (This graph was created in SAS VA).
X-axis is showing quarter
Y-axis is showing values of quarter results of 3 options (in a group e.g. yes, no and either)
Target lines showing region values of 3 options (in a group e.g. yes, no and either)