Customer GPS coordinates - sql

We are a sales distribution company that serves more than 15,000 customer during the month. we have collected all customer GEO coordinates using GPS device in my MS SQL server along with customer details (CustomerID,Name, visit day,visit sequence ..). I would like to import this information to Google map to draw and show each salesman territory and locate each customer in the map according to visit pattern that I have for each customer.
Please let me know the best possible way to do the same. This should be enable me to see all my customer in the map and filter them by visit day or by salesman.

Have you looked at Google Fusion Tables? You could add a polygon layer to define the area for each salesman and use a different color marker for visit days (using the 'bucket' option in Fusion Tables Map Options).

Related

Display google map for multiple locations

Sales person will visit different locations in a day and coordinates will store with location name in a model.
I want to display google map for a sales person showing all location on map along with complete path.
enter image description here

Wikipedia API - Retrieve USA Power Plants by Date Built

I'm racking my brain how to use the Wikipedia API to get a list of the power plants in https://en.wikipedia.org/wiki/Category:Coal-fired_power_stations_in_the_United_States_by_state
Then include the data from the Commission Date field next to each plant. (Alternatively, cross-reference with the "energy infrastructure completed in 19XX" category)
Where do I start? EIA this information, but only for the actual generators that are still in use, not the date for the powerplants housing those generators. I also found some Data related to Co2 production, but those dates go back only to 1945.
Any help would be greatly appreciated!

Data lookup based on measure

I am looking for some help in creating a measure to figure out data based on a ranking measure.
I have attached my Power BI file showing my issues and formulae.
https://www.dropbox.com/s/s7xted6lhh38dpo/Test.pbix?dl=0
Essentially, I have few tables that have been mapped. Showing revenue achieved by each employee for each product. The employees are split into 3 Teams.
I want to be able to rank these teams based on various filters that can be selected from one of the visualisations. – I have created the measure to do this using the below formulae:
Rev Measure = SUM(Sales[Rev])
Team Rank = RANKX(ALLSELECTED(Org[Team]),CALCULATE([Rev Measure]))
Now I want to create 2 card visualisation that dynamically fills in the data based on the ranking. So one card would read:
Commentary 1 = "Overall Sales was at $"& [Rev Measure] &". With the best performing Team being Team C bringing in $1220 of Revenue"
In the above commentary I am able to dynamically input the total revenue. However, I am unsure how to proceed with showing the best performing team data.
In the second card visualisation I want to show the worst performing team.
Any help on this would be greatly appreciated.
Thanks!

Gooddata Report Showing Weather by Store

I do have in my project model 3 datasets showing stores (DS_SITE), cities (Cidades) and weather (DS_DADOS_CLIMA) like in the image below:
datasets
And I want to see the name of the store with it's respectively weather information, but when I try select the store name to the report, it's not permitted:
report
how
There is some way to show the weather with the store name in the same report? I've changed the model and the metric several times trying to do it, but it didn't work.
Here is the metric I used in the example above (DS_DC_TEMP_MAX = weather fact):
metric
The direction of the arrow between City and Weather is what's preventing you from slicing temperature by Store.
Are you're sure about it? (as modeled, each city can have multiple weathers, each weather belongs to at most one city)?
If the direction is correct (you're probably tracking history of weathers), you'll need to lift weather to city, see explicit lifting:
https://help.gooddata.com/display/doc/Explicit+Lifting.
If you don't need to track history, just reverse the direction of the arrow between city & weather and you should be able to slice temperature by store (show them side by side).
Hope that helps.

Get profit center/cost center from RBKP invoice receipt number

How can I get the cost center, profit center? I am from RSEG and RBKP tables is there any other way to get those, I can't use vbseg tables cause the doc no. are stored in RSEG and RBKP since I created the document using MIR7. please help. thanks
Firstly you should find accounting document number from invoice number (RBKP-BELNR). You can do this by two ways:
Via reference key (AWKEY). You should concatenate fields BELNR and GJAHR and link this with BKPF-AWKEY.
Another way to find this number is via GUI. Enter your RBKP-BELNR into MIRO transaction and press Follow-on documents, here you will see it as well.
After finding that BKPF number take it along with full key and go to BSEG. You will find cost center there (KOSTL field).
Profit centers can be found by cost centers from CSKS link-table.