This article describes how to use data from the InstantAtlas National Data Service in Microsoft Power BI. The National Data Service is delivered as ArcGIS Online feature layers.
The steps for using data in ArcGIS in Power BI are described here. It is possible to use the steps in the Appendix to bring data from the National Data Service into Power BI.
However, when using data from the National Data Service specifically, a better result can be achieved using a custom query in the Power BI Advanced Editor. The steps for doing this are described below.
Sign in to the Data Catalog Hub and use the Data Explorer app to search for the indicator you are interested in. Click on any of the tabs and click the button to view the item in ArcGIS Online.
In ArcGIS Online, on the item overview page, click the layer corresponding to the geography you want to display data for in Power BI. Then click the Copy button on the right to copy the URL.
Amend this URL (e.g. in Notepad) to add this to the end:
Open Power BI Desktop and click Get Data, Web. Paste your URL into the URL box and click OK.
You will get something like this:
Click Transform Data. The Power Query Editor will open. Click Advanced Editor.
Replace the query in the Advanced Editor with the one below. Make sure you adjust the URL at the start of the query (shown in red) to the one you are actually using.
let
Source = Table.FromColumns({Lines.FromBinary(Web.Contents("https://services1.arcgis.com/HumUw0sDQHwJuboT/arcgis/rest/services/Suffolk_Pop_Est_Female/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=false&resultRecordCount=0&f=json"), null, null, 65001)}),
#"Parsed JSON" = Table.TransformColumns(Source,{},Json.Document),
Column1 = #"Parsed JSON"{0}[Column1],
fieldSet = Column1[fields],
fieldNames = List.Transform(fieldSet, each Record.Field(_, "name")),
fieldAliases = List.Transform(fieldSet, each Text.Combine({Text.Replace(Record.Field(_, "alias"), "|", " | "), " (", Record.Field(_, "name"),")"})),
features = Column1[features],
#"Converted to Table" = Table.FromList(features, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"attributes"}, {"Column1.attributes"}),
#"Expanded Column1.attributes" = Table.ExpandRecordColumn(#"Expanded Column1", "Column1.attributes", fieldNames, fieldAliases)
in
#"Expanded Column1.attributes"
Click Done.
Note that the data type for the columns is text. You should change this for the data you wish to use. Select the columns in question, right-click, Change Type and choose the appropriate type.
Then click Close & Apply in the ribbon.
You can then create your visualisation with the data from the feature layer.
Crime data (June) updated on the 30th of July. All affected reports updated by 7th of August.
Children & Education
NEET (2020) and Absence (2018-2019) data were last updated on the 12th of August and all affected reports on the 13th of the same month.
Deprivation
Fuel Poverty statistics (2018) were uploaded on the 18th of August.
Economy & Employment
Claimant Count (July) updated on the 11th of August. All affected reports were updated on the 13th.
Environment
Electricity and Gas Consumption and Carbon Emissions statistics (2018) were uploaded on the 19th and on the 24th of August, respectively. No reports affected.
Health
Several indicators from the Public Health Outcomes Framework (PHOF) dataset have been updated on the 20th of August.
Please, find below an extract of the indicators included in this update:
Low Birth Weight of Term Babies
Inequality in life expectancy at birth
Population vaccination coverage
Heart failure indicators
GP registered population
Several Cancer related indicators , including screenings and new cases
Breastfeeding, including initiation, first feed and prevalence
Fertility rates and Conception Rates for U18s and U16s
Housing
Stock of properties data (2019) and vacant dwellings data (2017-2019) were uploaded on the 4th of August. All affected reports were updated on the 13th of August.
Crime data (May) updated 1 July. All affected reports updated by 6 July.
Children & Education
The following education data was updated in July and relative reports updated by the 29th of July:
2018/19 Key stage 2
2018/19 Key Stage 4
2018/19 Key Stage 5
2018/19 Special Educational Needs (SEN)
2018/19 Free School Meals (FSM)
2018/19 Pupils Characteristics
Economy & Employment
Claimant Count (June) updated during July.
April 2019 to March 2020 Annual Population Survey (APS) updated during July. Reports updated by the 22nd of July.
A detailed breakdown of statistics included within the APS is listed below:
Disability (Equality Act) core level by economic activity
Economic activity of those with health conditions or illnesses lasting more than 12 months
Economic activity rate
Economically inactive
Employment rate
Ethnic group by economic activity
Full-time and part-time employment
Hours worked weekly
Industry of employment (SIC 2007)
Nationality by white/ethnic minority
Occupation (SOC2010) major group of employment
Public and private sector employment
Qualifications (GCSE/NVQ)
Self-employed, employees and non-permanent employment
Unemployment rate
White/ethnic minority by age
Estimates of unemployment (model-based)
Deprivation
HMRC and DWP’s previous statistics relative to children in low income families have been replaced and deprecated to provide a more coherent picture of this category for both Relative and Absolute Low Income.
Latest data for Children in Low Income Families Data has been updated on the 21st of July, from financial year 2014/15 to 2018/19.
Crime data updated 3 June. All affected reports updated by 4 June.
Claimant count
Claimant count data updated on day of publication 16 June. All affected reports updated by 18 June.
Population estimates
The finalised population estimates were released and checked. Only metadata changes were required – see update for May 2020.
Net Housing Additions
The Net Housing Additions data for 2018-19 was added on 15 June.
Notes
With the COVID response demands reducing and a new member of staff joining the Data team we will be aiming to catch up on non-API data sources over the next couple of months.
We are continuing to add processing improvements into the system. These will be rolling out behind the scenes aimed at improving the speed of data being available in the system and the outputs.
March data available in system from 1 May and all affected reports updated.
Claimant count
Claimant count data updated on day of publication 19 May. Reports followed with all affected reports updated by 25 May.
Population estimates
Provisional Population Estimates for large areas for 2019 were released on 6 May. Generally we avoid provisional data to avoid changing numbers. This was an unusual step on behalf of ONS as part of measures to support the COVID-19 response. We made the data available on the 13 May and updated the affected reports by 15 May. The metadata denoted the provisional nature of the figures. ONS released the final version of the figures on 24 June. The only change from the provisional data was additional data for Northern Ireland so the English National Data Service data was unaffected beyond an update to the metadata.
Claimant Counts for March 2020 with Feb 2020 revision: Released 21 April. On system 21 April. Reports updated.
Annual Population Survey
Annual Population Survey for Jan-19 to Dec-19: Released 21 April. On system 22 April. Reports updated.
Crime
February data released at start of month, March 2020 data released at end of month. March data available in system from 1 May. Reports updated.
Health
Fingertips data has been refreshed across a number of themes. We are aiming to include the Local Health dataset in the next month.
Apprenticeships
Apprenticeship data: Updated with 2018-19 data on 15 April.
Population Estimates
We added the number and percentage of over 70s on 30 March as this is a key COVID response age grouping.
Public Health Outcomes Framework:
The PHOF dataset was updated on 24 Feb with the February data. A change to the processing has led to a number of indicators being reorded. A number of indicators have now been deprecated. These are available in the system but will no longer be updated. We have adjusted the indicator names to include the term DEPRECATED. If you have used these indicators in your reports we advise amending your reports to use the new indicators that will continue to be updated.
Wards
Following discussion with affected customers we are in the process of updating Wards (and other geographies) to the latest boundaries. As there can be a significant delay between new boundaries being released and data being made available for them we will be calculating where possible estimated values for the new areas based on the best fit of smaller geographies. The metadata for affected data will be amended to reflect that the source may be a mixture of published and derived values.