paulturley / Power-BI-COVID-19-MVP

Power BI project using COVID-19 case daily updates from CDC & Johns Hopkins University

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Country/State "Key" Issues

SQLMonger opened this issue · comments

The [State-Country] column in the Case Details data set has cases where the country name is doubled up, for example, "France, France", due to the differences between the pre and post 3/21 data sources. This affects results when grouping by [State-Country], as "France" and "France, France" are not grouped together.

Can logic be added to the M script to only use the country name if the country name and state name are identical? I'll take a look at it, but figure someone more familiar with the Power Query steps will be able to zero in on it and fix it quicker.

Using the Geography Hierarchy is the solution.