PowerBi Map Interactions - powerbi

I have 2 maps in PowerBi, one shows a job count and the other a material spend. If I zoom one map to look at a problem area I want the other maps to zoom to that point too. I cant find any mention of how this could be done but wondering if anyone knows?
PowerBi Map

The best you can do would be to add a Slicer based on "area", which would apply to both maps.

Related

What would be the best visually appealing power BI chart/graph to compare numbers with huge differences?

I need to compare Year Month values somehow next to each other.
But the difference is so big that it is not very visually appealing.
I tried to find a good chart to display those, but so far no success.
Any recommendation?
If you want them to share the same axis as you have in your image, you could switch the scale to logarithmic instead of linear. Otherwise, you could try putting them on separate axes so they scale independently.
Another option would be to normalize them somehow. If one set were monthly, then you could multiply it by 12 to "annualize" it.

Specify number of map points display on maps in Microsoft PowerBi

I am working with Longitude-Latitude values using the default powerBi map visualization. I want to be able to specify a certain distance and also be able to specify how many map points will be displayed within that radius. For example I would like maps to plot 500 or less lat-long points within any 1 mile radius in the US. Just to be clear, maps should plot all map points within the US that are quantity 500 or less in any 1 mile radius.
Can anyone help me to solve this in PowerBi or is there any other visualization tool in powerBi that can help me to do this?

Power BI. Using custom map as base map

Currently, I am trying to find a way to load a custom map as a base map in Power BI. As I want to be able to load the map even when I have no connection to the internet, I have considered using my company's WMS servers, however that does not seem to be possible in Power BI right now.
Thus, I'm trying to convert this file https://data.gov.sg/dataset/master-plan-2014-planning-area-boundary-web to the TopoJSON format so I am able to use it as a shape map in Power BI.
After using the Mapshaper tool, the file appears fine on Mapshaper:
However, in Power BI, it appears like this:
Am I doing something wrong or do is there extra steps I need to do? Or is there any other way to load my own custom map in Power BI as a base map?
This is similar to the issues that I faced when trying to create a custom shape map. The 'picasso-like' rendering of the map was the same. It turned out to be the projection of the new map was not one of the projections the Power BI likes. If you can change the projection of your map, it should work. In mapshaper, load the map, then select console, then enter PROJ WGS84, and it should work. If your starting projection is one that mapshaper doesn't recognize, you have to reproject the original map into something that mapshaper knows. In my case it didn't recognize the EPSG:3005 projection initially, but when I re-projected in EPSG:4326, then used mapshaper to convert to topojson, I was able to use my custom shape map.

how to query the database to return all zip codes with a given distance (ie 5 miles) from a given zip code using geopy

Hi frens I am using geopy to calculate the latitude and longitude. Now I want to get the list of areas given distance from a zipcode.How to get that?
Well, as I can see, geopy doesn't have any built-in capability to get a list of areas around some coordinates.
But you can use a workaround. Take your geocode and calculate coordinates (latitue and longitude). Then imagine a grid on the map with a cell size equal to area of the smallest one you need to find around your location.
Use geopy to get an area name belonging to the each cell corner of your grid. Is that ok for you? It will get you some kind of approximation because a grid is not a circle and you may miss some small areas. But I think in most cases the solution will work fine.
It is much easier to locate zipcodes inside a rectangle than in a circle so I would recommend that you approximate your problem by looking for zipcodes inside a given rectangle.
Here are answers to the question of how to get list of zipcodes in given polygone: Find zipcodes inside polygon shape using google maps api
Summary
You need geometry for each zipcode. Once you have that you need to be able to query it using database that supports geoquery. One such database is Google's Fusion Table and there is already a geometry data table for zipcodes available here: https://www.google.com/fusiontables/DataSource?docid=1AxB511DayCdtmyBuYOIPHIe_WM9iG87Q3jKh6EQ#rows:id=1
Here's the sample query for Fusion Table data.
Another approach is server side code using PHP and CSV data. Here's live demo: http://daim.snm.ku.dk/demo/zip/. The page also has download for code.
If you use any of above technique please make sure to upvote answers of original authors :).

Google Visualization Annotated Time Line, removing data points

I am trying to build a graph that will change resolution depending on how far you are zoomed in. Here is what it looks like when you are complete zoomed out.
So this looks good so when I zoom in I get a higher resolution data and my graph looks like this:
The problem is when I zoom out the higher resolution data does not get cleared out of the graph:
The tables below the graphs are table display what is in the DataTable. This is what drawing code looks like.
var g_graph = new google.visualization.AnnotatedTimeLine(document.getElementById('graph_div_json'));
var table = new google.visualization.Table(document.getElementById('table_div_json'));
function handleQueryResponse(response){
log("Drawing graph")
var data = response.getDataTable()
g_graph.draw(data, {allowRedraw:true, thickness:2, fill:50, scaleType:'maximized'})
table.draw(data, {allowRedraw:true})
}
I am try to find a way for it to only displaying the data that is in the DataTable. I have tried removing the allowRedraw flag but then it breaks the zooming operation.
Any help would be greatly appreciated.
Thanks
See also
Annotated TimeLine when zoomed-out, Too Many Datapoints.
you can remove the allow redraw flag.
In that case you have to put the data points manually in your data table
The latest date of the actual whole data
The most outdated date in the actual whole data.
this will retain your zooming operation.
I think you have already seen removing the allowRedraw flag, works but with a small problem, flickering the whole chart.
It seems to me that the best solution would be to draw every nth data point, depending on your level of zoom. On the Google Finance graph(s), the zoom levels are pre-determined at the top: 1m, 5m, 1h, 1 day, 5 days, etc. It seems evident that this is exactly what Google is doing. At the max view level, they're plotting points that fall on the month. If you're polling 1000 times a day (with each poll generating a single point), then you'd be taking every 30,000th point (the fist point being the very first one of the month, and the 30,000th one being the last point).
Each of these zoom levels would implement a different plot of the data points. Each point should have a time stamp with accuracy to the second, so you'll easily be able to scale the plot based on the level of detail.