Power BI: Using Maps
How I’m Using Maps for Analysis
I find maps really helpful in picturing where the “action” is congregated. In my case, when I’m looking at where the coronavirus is especially severe, a top ten list of states, shown in map form, can sometimes highlight that a certain area of the country is undergoing a surge much better than a list or a line/bar graph.
I’ve put two examples of maps that show the current state of affairs in the US: surges are clustered around the Great Lakes area, in the eastern part of the Midwest and in the Northeast. A table of data, which I’ve included, usually don’t help me picture what part of the US the surges are occurring; hence, a map really does the job. The map on the left shows the top 10 states with cumulative number of cases over the last 21 days, as of 12/15/2021. The map on the right shows the top 10 states with the most cases on 12/15/2021 (a single day).
It’s almost, but not quite, the story of a same set of states that are showing high number of cases on 12/15/2021, have been racking up the count over the last 21 days. I prefer to look over 14 or 21 days to get a sense of which state is surging rather than just one day because a lot of states don’t report every day. Michigan reports every other day, and yet, it is tops in cumulative count for 21 days.
While a single day can be deceiving, I like to look at a single day because I can get a sense of each state’s daily levels, something that 14 or 21 days hide. I’m looking at how high the count gets for a single day. That aspect also interests me.
By the way, the data comes from John Hopkins University, See the “Sources of Data” box at the end of the post.
Types of Maps
Just a little note on the map tools that I choose. I previously was using the ArcsGis (I think that is what it is called) but I have stopped because a change was made, and it appears I now have to log into their site. I just don’t want another login id and password and don’t want to go through that hassle. I might even have to pay to subscribe.
So I’m using Microsoft’s version, but I will say, the ArcsGis are nicer because you have some ability to control the set up. I will have to play around some more to see if Microsoft’s maps do provide more flexibility than I’m thinking.
Sources of Data
WORLD : Cases and deaths from Wikipedia website https://en.wikipedia.org/wiki/COVID-19_pandemic_by_country_and_territory
US and STATES : Five main sources of data are available – Wikipedia, COVID Tracking Project, CDC, JHU, and HHS
Wikipedia: Wikipedia has broken out their tables into four links, separating out the cases from deaths and separating out the years.
New Cases 2021: https://en.wikipedia.org/wiki/Template:2019–20_coronavirus_pandemic_data/United_States_medical_cases
New Cases 2020: https://en.wikipedia.org/wiki/Template:COVID-19_pandemic_data/United_States_daily_cases_in_2020
New Deaths 2021: https://en.wikipedia.org/wiki/Template:COVID-19_pandemic_data/United_States_daily_deaths
New Deaths 2020: https://en.wikipedia.org/wiki/Template:COVID-19_pandemic_data/United_States_daily_deaths_in_2020
COVID Tracking Project: The COVID Tracking Project was a collaborative effort of free labor overseen by The Atlantic. This project ended on 3/7/2021. The Atlantic’s COVID Tracking Project was provided under Common Creative license “CC BY-NC-4.0” and covered cases, deaths, hospitalization, and positivity, amongst other data.
API: https://covidtracking.com/api/v1/states/daily.csv
Table: daily
CDC: CDC has become a replacement for the COVID Tracking Project for me although the data will often come in a few days later. Hospitalization comes in a week later. I’m tracking cases, deaths, hospitalization, and positivity.
Centers for Disease Control and Prevention, COVID-19 Response. COVID-19 Case Surveillance Public Data Access, Summary, and Limitations
Table: rows
API:
Cases and deaths: https://data.cdc.gov/api/views/9mfq-cb36/rows.csv
Hospitalization: https://beta.healthdata.gov/api/views/g62h-syeh/rows.csv (Good data doesn’t start until about 7/15/2020)
Testing: https://beta.healthdata.gov/api/views/j8mb-icvb/rows.csv
Positivity: https://beta.healthdata.gov/api/views/j8mb-icvb/rows.csv
John Hopkins University (JHU): I rarely show these sets of data; I mostly use Wikipedia or CDC but sometimes I like to reference the JHU.
Please cite our Lancet Article for any use of this data in a publication (link)
Provided by Johns Hopkins University
Center for Systems Science and Engineering (JHU CSSE):
https://systems.jhu.edu/
Terms of Use:
1. This data set is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) by the Johns Hopkins University on behalf of its Center for Systems Science in Engineering. Copyright Johns Hopkins University 2020.
2. Attribute the data as the “COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University” or “JHU CSSE COVID-19 Data” for short, and the
url: https://github.com/CSSEGISandData/COVID-19.
3. For publications that use the data, please cite the following publication: “Dong E, Du H, Gardner L. An interactive web-based dashboard to track COVID-19 in real time. Lancet Inf Dis. 20(5):533-534. doi: 10.1016/S1473-3099(20)30120-1”
Website https://github.com/CSSEGISandData/COVID-19
HHS: Hospitalization data for US – can be US level, state level or county level