Projecting Live Data Through Maps Using Web As Source
Projecting Live Data Through Maps Using Web As Source
Getting data from a web page lets users easily extract data from web pages and
import that data into Power BI Desktop. Often however, data on Web pages aren't in
tidy tables that are easy to extract. Getting data from such pages can be challenging,
even if the data is structured and consistent.
There's a solution. With the Get Data from Web by example feature, you can
essentially show Power BI Desktop which data you want to extract by providing one
or more examples within the connector dialog. Power BI Desktop gathers other data
on the page that match your examples. With this solution you can extract all sorts of
data from Web pages, including data found in tables and other non-table data.
Projecting web page data in maps without geocodes is also challenging so power BI
came with solution as we can projecting data directly based on country, state names
so user can see live maps from webpage.
As part of POC, taken open source web information data and now a days COVID 19 is
impacting all over the world so am using same the stats information to show case
this business scenario.
Am using below links to get the base data for this business scenario.
https://www.worldometers.info/coronavirus/#countries
https://economictimes.indiatimes.com/news/politics-and-nation/coronavirus-india-must-do-
more-genomic-sequencing-to-enable-faster-decision-making/articleshow/74799884.cms
1. Go to get data and choose “web” as source so this will allows to mention link
to extract data ( Note : in the link table type data to be available )
2. Once link is loaded then power BI tool automatically recognises tables in the
specified link and we required to choose the specific table as mentioned the
below mentioned screen print.
3. Same steps ( step 1 and 2) to be followed to get state wise data within India.
4. Once we extracted both world and India COVID 19 data from respective
websites then we need to link up both the tables but in our case there is no
common key available so added additional column “country” and enter
“India” as constant and below are the sub steps to achieve .
Go to edit query -> choose the India specific data table -> go to “
Add Column” tab -> choose column from examples -> enter “
India” .
5. Link both the tables with country and specify the cardinality.
8. With simple refresh we can get the live data from respective website
(intentionally refreshed after one day just to show case )