Connecting to the NOMIS API in PowerBI

Office for National Statistics
Office for National StatisticsOffice for National Statistics

This guide was prepared by Suffolk County Council to support others in constructing their dashboards, using the NOMIS API through PowerBI.

Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023)
phc_analytics@suffolk.gov.uk
Connecting to the NOMIS API in Power BI
Introduction
Using the NOMIS API allows data to be updated automatically when the dataset is refreshed
in the Power BI Service or Power BI Desktop. The method described in this guide was initially
created with assistance from colleagues at Norfolk County Council.
Using the NOMIS website to get queries
Queries are compiled using the NOMIS website. This allows you to select variables of
interest and set parameters for data to download. Once you have made your selections,
choose the NOMIS API data format.
Click Download Data. From this screen, right-click on Link (data.csv) and copy this link.
Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023)
phc_analytics@suffolk.gov.uk
This link will be used as a query in Power BI Desktop to connect to the API. No API key is
required.
Using NOMIS queries in Power BI
In Power BI desktop, click ‘Get data’ then select the ‘Web’ source. Paste the copied URL (this
is known as the Query to the API) from the NOMIS website and click OK. Click Transform
data from the Preview window.
Once the query has been added, you may wish to use the formula bar or advanced editor to
remove the date parameter. This means your query will return data for all available dates.
To use Advanced Editor, click on the Home tab, then Advanced Editor.
Remove the part of the query that contains the word date. Delete everything from the start
of the word ‘date’ to the following ampersand (&). For example, in the query below, the text
highlighted in red would be deleted.
https://www.nomisweb.co.uk/api/v01/dataset/NM_17_5.data.csv?geography=1853882369
...1853882372,1853882374...1853882379&date=latest&variable=18,45,248,249,84,83,111,1
Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023)
phc_analytics@suffolk.gov.uk
487,1488,27,54,250,251,93,92,120,1489,1490,36,63,252,253,102,101,129,1491,1492,1532..
.1540,594,820,841,290,720...722,335,344&measures=20599,21001,21002,21003
If asked which credentials to use for this data source, select Anonymous credentials and
Public privacy level.
Transforming data for use in the report
To use the data to build reports in Power BI Desktop, transformations will need to be
applied. From the Transform tab, select Use first row as headers. Now that each column is
correctly labelled, only keep the columns that are required. This is good practice as it
reduces the size of the dataset. From the Home tab, click Choose Columns. The columns
that will usually be required are:
• DATE
• DATE_NAME
• GEOGRAPHY_NAME
• GEOGRAPHY_CODE
• GEOGRAPHY_TYPE
• VARIABLE_NAME
• VARIABLE_SORTORDER
• MEASURES_NAME
• OBS_VALUE
Next, pivot the MEASURES_NAME column to obtain a separate column for each measure.
That is, a column for the numerator, denominator and percentage (where applicable). Click
the MEASURES_NAME column, then click Pivot Column from the Transform tab. The values
column is OBS_VALUE. Under the Advanced options, select Don’t Aggregate for the
Aggregate Value Function.
Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023)
phc_analytics@suffolk.gov.uk
The MEASURES_NAME and OBS_VALUE columns of the table should have been replaced by
columns in the format below:
Further recommended transformations on this data (not detailed here) are:
• Renaming columns as appropriate.
• Changing data types for each column as appropriate.
• Dividing values in the Variable column by 100 to get data as a percentage.
Refreshing data
Queries to the NOMIS API will return the latest available data whenever they are refreshed.
This can include scheduled dataset refreshes in the Power BI service. When NOMIS are
updating the data in the API, the query will fail and any Power BI dataset including a query
to the NOMIS API refreshed during this period will fail. This is usually a temporary issue that
will be automatically resolved once NOMIS have finished updating the data in the API.
More information
https://www.nomisweb.co.uk/api/v01/help

Recommandé

Connecting to the StatXplore API in PowerBI par
Connecting to the StatXplore API in PowerBIConnecting to the StatXplore API in PowerBI
Connecting to the StatXplore API in PowerBIOffice for National Statistics
98 vues22 diapositives
ONS Local presents Suffolk County Council's Cost of Living Dashboard par
ONS Local presents Suffolk County Council's Cost of Living DashboardONS Local presents Suffolk County Council's Cost of Living Dashboard
ONS Local presents Suffolk County Council's Cost of Living DashboardOffice for National Statistics
180 vues17 diapositives
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu... par
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...Cengage Learning
2K vues50 diapositives
Pivot Tables par
Pivot TablesPivot Tables
Pivot Tablesgjonesnemeth
7.9K vues51 diapositives
Santa claus is coming to town – justin bieber par
Santa claus is coming to town – justin bieberSanta claus is coming to town – justin bieber
Santa claus is coming to town – justin bieberMárcia Guayato
275 vues5 diapositives
Excel Crash Course: Pivot Tables par
Excel Crash Course: Pivot TablesExcel Crash Course: Pivot Tables
Excel Crash Course: Pivot TablesBobby Jones
2.6K vues27 diapositives

Contenu connexe

Tendances

Excel Pivot Tables par
Excel Pivot TablesExcel Pivot Tables
Excel Pivot TablesMatt Saragusa
4.3K vues15 diapositives
Excel SUMIFS Function par
Excel SUMIFS FunctionExcel SUMIFS Function
Excel SUMIFS FunctionExcel
3.2K vues10 diapositives
Electronic bank statement par
Electronic bank statementElectronic bank statement
Electronic bank statementCenk Kurter
3.6K vues11 diapositives
Pivot table par
Pivot tablePivot table
Pivot tableVijay Perepa
18.8K vues11 diapositives
Copa realignment par
Copa realignmentCopa realignment
Copa realignmentsuryanarayana tata
2.3K vues11 diapositives
Combined COPA in SAP par
Combined COPA in SAP  Combined COPA in SAP
Combined COPA in SAP Stridely Solutions
526 vues19 diapositives

Tendances(20)

Excel SUMIFS Function par Excel
Excel SUMIFS FunctionExcel SUMIFS Function
Excel SUMIFS Function
Excel3.2K vues
Electronic bank statement par Cenk Kurter
Electronic bank statementElectronic bank statement
Electronic bank statement
Cenk Kurter3.6K vues
Asset Accounting Configuration par marazban
Asset Accounting Configuration Asset Accounting Configuration
Asset Accounting Configuration
marazban14.4K vues
Excel Tutorials - Creating a Hyperlink in Excel par Merve Nur Taş
Excel Tutorials - Creating a Hyperlink in ExcelExcel Tutorials - Creating a Hyperlink in Excel
Excel Tutorials - Creating a Hyperlink in Excel
Merve Nur Taş1K vues
Report Painter in SAP: Introduction par Jonathan Eemans
Report Painter in SAP: IntroductionReport Painter in SAP: Introduction
Report Painter in SAP: Introduction
Jonathan Eemans2.5K vues
Conservation problems of the old Rangnath Venugopal temple, Pushkar, Rajasthan par Anshu Bharti
Conservation problems of the old Rangnath Venugopal temple, Pushkar, RajasthanConservation problems of the old Rangnath Venugopal temple, Pushkar, Rajasthan
Conservation problems of the old Rangnath Venugopal temple, Pushkar, Rajasthan
Anshu Bharti1.4K vues
EDM Overview of Profile and Settlement par Rakesh Dasgupta
EDM Overview of Profile and SettlementEDM Overview of Profile and Settlement
EDM Overview of Profile and Settlement
Rakesh Dasgupta11.8K vues
Excel CountIf with Multiple Criteria par Chester Tugwell
Excel CountIf with Multiple CriteriaExcel CountIf with Multiple Criteria
Excel CountIf with Multiple Criteria
Chester Tugwell1.3K vues
Kp26 Plan Activity Output On Cost Center par whocanbe1
Kp26 Plan Activity Output On Cost CenterKp26 Plan Activity Output On Cost Center
Kp26 Plan Activity Output On Cost Center
whocanbe18.7K vues
Kspi Execute Plan Price Calculation par whocanbe1
Kspi Execute Plan Price CalculationKspi Execute Plan Price Calculation
Kspi Execute Plan Price Calculation
whocanbe16.3K vues

Similaire à Connecting to the NOMIS API in PowerBI

Developing a ssrs report using a ssas data source par
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourcerelekarsushant
3.6K vues32 diapositives
JKJ_SSRS PPS Excel Services Project.Documentation par
JKJ_SSRS PPS Excel Services Project.DocumentationJKJ_SSRS PPS Excel Services Project.Documentation
JKJ_SSRS PPS Excel Services Project.DocumentationJeff Jacob
373 vues31 diapositives
William Schaffrans Bus Intelligence Portfolio par
William Schaffrans Bus Intelligence PortfolioWilliam Schaffrans Bus Intelligence Portfolio
William Schaffrans Bus Intelligence Portfoliowschaffr
241 vues35 diapositives
SSRS 2008 R2 par
SSRS 2008 R2SSRS 2008 R2
SSRS 2008 R2tomerl
2.5K vues26 diapositives
Informatica PowerAnalyzer 4.0 1 of 3 par
Informatica PowerAnalyzer 4.0 1 of 3Informatica PowerAnalyzer 4.0 1 of 3
Informatica PowerAnalyzer 4.0 1 of 3ganblues
2K vues59 diapositives
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdf par
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdfOracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdf
Oracle-Whitepaper-Optimizer-with-Oracle-Database-12c.pdfDetchDuvanGaelaCamar
2 vues38 diapositives

Similaire à Connecting to the NOMIS API in PowerBI(20)

Developing a ssrs report using a ssas data source par relekarsushant
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data source
relekarsushant3.6K vues
JKJ_SSRS PPS Excel Services Project.Documentation par Jeff Jacob
JKJ_SSRS PPS Excel Services Project.DocumentationJKJ_SSRS PPS Excel Services Project.Documentation
JKJ_SSRS PPS Excel Services Project.Documentation
Jeff Jacob373 vues
William Schaffrans Bus Intelligence Portfolio par wschaffr
William Schaffrans Bus Intelligence PortfolioWilliam Schaffrans Bus Intelligence Portfolio
William Schaffrans Bus Intelligence Portfolio
wschaffr241 vues
SSRS 2008 R2 par tomerl
SSRS 2008 R2SSRS 2008 R2
SSRS 2008 R2
tomerl2.5K vues
Informatica PowerAnalyzer 4.0 1 of 3 par ganblues
Informatica PowerAnalyzer 4.0 1 of 3Informatica PowerAnalyzer 4.0 1 of 3
Informatica PowerAnalyzer 4.0 1 of 3
ganblues2K vues
MS Bi Portfolio Gregory Lee par keeperx99
MS Bi Portfolio Gregory LeeMS Bi Portfolio Gregory Lee
MS Bi Portfolio Gregory Lee
keeperx99355 vues
Ssis Ssas Ssrs Sp Pps Hong Bing Li par Hong-Bing Li
Ssis Ssas Ssrs Sp Pps Hong Bing LiSsis Ssas Ssrs Sp Pps Hong Bing Li
Ssis Ssas Ssrs Sp Pps Hong Bing Li
Hong-Bing Li949 vues
SSIS_SSRS_PPS_SP_SSAS_Hong_Bing Li par Hong-Bing Li
SSIS_SSRS_PPS_SP_SSAS_Hong_Bing LiSSIS_SSRS_PPS_SP_SSAS_Hong_Bing Li
SSIS_SSRS_PPS_SP_SSAS_Hong_Bing Li
Hong-Bing Li274 vues
C:\fakepath\ssis ssas sssrs_pps_hong_bingli_v2003 par Hong-Bing Li
C:\fakepath\ssis ssas sssrs_pps_hong_bingli_v2003C:\fakepath\ssis ssas sssrs_pps_hong_bingli_v2003
C:\fakepath\ssis ssas sssrs_pps_hong_bingli_v2003
Hong-Bing Li271 vues
Kevin Fahy Bi Portfolio par KevinPFahy
Kevin Fahy   Bi PortfolioKevin Fahy   Bi Portfolio
Kevin Fahy Bi Portfolio
KevinPFahy488 vues
Tony Von Gusmann & MS BI par vongusmann
Tony Von Gusmann & MS BITony Von Gusmann & MS BI
Tony Von Gusmann & MS BI
vongusmann691 vues
Cognos framework manager par maxonlinetr
Cognos framework managerCognos framework manager
Cognos framework manager
maxonlinetr619 vues
6 bosch rexroth_eng_01 par vanclea2004
6 bosch rexroth_eng_016 bosch rexroth_eng_01
6 bosch rexroth_eng_01
vanclea2004242 vues
Optimizing Queries over Partitioned Tables in MPP Systems par EMC
Optimizing Queries over Partitioned Tables in MPP SystemsOptimizing Queries over Partitioned Tables in MPP Systems
Optimizing Queries over Partitioned Tables in MPP Systems
EMC1.4K vues
SSIS_SSAS_SSRS_SP_PPS_HongBingLi par Hong-Bing Li
SSIS_SSAS_SSRS_SP_PPS_HongBingLiSSIS_SSAS_SSRS_SP_PPS_HongBingLi
SSIS_SSAS_SSRS_SP_PPS_HongBingLi
Hong-Bing Li412 vues
10400_SGF_DDPO_Final_03_21_2016 par Sachin Verma
10400_SGF_DDPO_Final_03_21_201610400_SGF_DDPO_Final_03_21_2016
10400_SGF_DDPO_Final_03_21_2016
Sachin Verma93 vues
CREATING A DATASET FROM EXCEL IN POWER BI REPORT BUILDER par SagarDuttPhuloria
CREATING A DATASET FROM EXCEL IN POWER BI REPORT BUILDERCREATING A DATASET FROM EXCEL IN POWER BI REPORT BUILDER
CREATING A DATASET FROM EXCEL IN POWER BI REPORT BUILDER

Plus de Office for National Statistics

SlideShare ONS Economic Forum Slidepack - 13 November 2023 par
SlideShare ONS Economic Forum Slidepack - 13 November 2023SlideShare ONS Economic Forum Slidepack - 13 November 2023
SlideShare ONS Economic Forum Slidepack - 13 November 2023Office for National Statistics
68 vues40 diapositives
SlideShare ONS Economic Forum Slidepack - 16 October 2023 par
SlideShare ONS Economic Forum Slidepack - 16 October 2023SlideShare ONS Economic Forum Slidepack - 16 October 2023
SlideShare ONS Economic Forum Slidepack - 16 October 2023Office for National Statistics
11 vues36 diapositives
So what does ‘Beyond GDP’ mean for the UK – 12 October 2023 par
So what does ‘Beyond GDP’ mean for the UK – 12 October 2023So what does ‘Beyond GDP’ mean for the UK – 12 October 2023
So what does ‘Beyond GDP’ mean for the UK – 12 October 2023Office for National Statistics
158 vues37 diapositives
GDP after 2025: updating national accounts and balance of payments – 11 Octob... par
GDP after 2025: updating national accounts and balance of payments – 11 Octob...GDP after 2025: updating national accounts and balance of payments – 11 Octob...
GDP after 2025: updating national accounts and balance of payments – 11 Octob...Office for National Statistics
147 vues66 diapositives
SlideShare Measuring the Economy Slidepack - 29 September 2023 par
SlideShare Measuring the Economy Slidepack - 29 September 2023SlideShare Measuring the Economy Slidepack - 29 September 2023
SlideShare Measuring the Economy Slidepack - 29 September 2023Office for National Statistics
94 vues23 diapositives
Why dashboards? par
Why dashboards?Why dashboards?
Why dashboards?Office for National Statistics
8 vues3 diapositives

Plus de Office for National Statistics(20)

Dernier

Advancing and democratizing business data in Canada- Patrick Gill & Stephen Tapp par
Advancing and democratizing business data in Canada- Patrick Gill & Stephen TappAdvancing and democratizing business data in Canada- Patrick Gill & Stephen Tapp
Advancing and democratizing business data in Canada- Patrick Gill & Stephen TappOECD CFE
7 vues16 diapositives
2023 Q1-Q2 Newsletter - First Tee Puerto Rico par
2023 Q1-Q2 Newsletter - First Tee Puerto Rico2023 Q1-Q2 Newsletter - First Tee Puerto Rico
2023 Q1-Q2 Newsletter - First Tee Puerto RicoFirst Tee Puerto Rico
36 vues15 diapositives
Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS... par
Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS...Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS...
Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS...India Water Portal
22 vues15 diapositives
ΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑ par
ΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑ
ΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑssuser9e6212
172 vues18 diapositives
Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G... par
Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G...Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G...
Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G...India Water Portal
8 vues28 diapositives
Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th... par
Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th...Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th...
Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th...India Water Portal
10 vues19 diapositives

Dernier(20)

Advancing and democratizing business data in Canada- Patrick Gill & Stephen Tapp par OECD CFE
Advancing and democratizing business data in Canada- Patrick Gill & Stephen TappAdvancing and democratizing business data in Canada- Patrick Gill & Stephen Tapp
Advancing and democratizing business data in Canada- Patrick Gill & Stephen Tapp
OECD CFE7 vues
Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS... par India Water Portal
Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS...Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS...
Mukhya Mantri Gramin Peyjal Nishchay Yojana (MGPNY) – Bihar_Pankaj Kumar_AKRS...
ΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑ par ssuser9e6212
ΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑ
ΕΚΘΕΣΗ ΚΟΜΙΣΙΟΝ ΓΙΑ ΤΟΥΡΚΙΑ
ssuser9e6212172 vues
Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G... par India Water Portal
Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G...Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G...
Functioning of Single Village Drinking Water Supply Schemes in Rural Odisha_G...
Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th... par India Water Portal
Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th...Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th...
Financial sustainability of schemes managed by PHED in Punjab_Krishnakumar Th...
Bankrolling Terrorism: The Secret Financing Power of the Al-Kuwari Clan in Al... par aljazeeramasoom
Bankrolling Terrorism: The Secret Financing Power of the Al-Kuwari Clan in Al...Bankrolling Terrorism: The Secret Financing Power of the Al-Kuwari Clan in Al...
Bankrolling Terrorism: The Secret Financing Power of the Al-Kuwari Clan in Al...
Managing drinking water infrastructure in West Bengal Gram Panchayats_Sujata ... par India Water Portal
Managing drinking water infrastructure in West Bengal Gram Panchayats_Sujata ...Managing drinking water infrastructure in West Bengal Gram Panchayats_Sujata ...
Managing drinking water infrastructure in West Bengal Gram Panchayats_Sujata ...
Social behavioural change to drive community ownership_ Divyang Waghela_Tata ... par India Water Portal
Social behavioural change to drive community ownership_ Divyang Waghela_Tata ...Social behavioural change to drive community ownership_ Divyang Waghela_Tata ...
Social behavioural change to drive community ownership_ Divyang Waghela_Tata ...
COP28: Example of Formation of Negotiated Texts: Global StockTake par Energy for One World
COP28: Example of  Formation of Negotiated Texts: Global StockTakeCOP28: Example of  Formation of Negotiated Texts: Global StockTake
COP28: Example of Formation of Negotiated Texts: Global StockTake
AABS project overview par WorldFish
AABS project overviewAABS project overview
AABS project overview
WorldFish38 vues
Mr. Kenao Lao - 2023 ReSAKSS Conference.pptx par AKADEMIYA2063
 Mr. Kenao Lao - 2023 ReSAKSS Conference.pptx Mr. Kenao Lao - 2023 ReSAKSS Conference.pptx
Mr. Kenao Lao - 2023 ReSAKSS Conference.pptx
AKADEMIYA20637 vues
Cover Letter for Canada VISITOR visa.pdf par Ariful Saimon
Cover Letter for Canada VISITOR visa.pdfCover Letter for Canada VISITOR visa.pdf
Cover Letter for Canada VISITOR visa.pdf
Ariful Saimon8 vues

Connecting to the NOMIS API in PowerBI

  • 1. Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023) phc_analytics@suffolk.gov.uk Connecting to the NOMIS API in Power BI Introduction Using the NOMIS API allows data to be updated automatically when the dataset is refreshed in the Power BI Service or Power BI Desktop. The method described in this guide was initially created with assistance from colleagues at Norfolk County Council. Using the NOMIS website to get queries Queries are compiled using the NOMIS website. This allows you to select variables of interest and set parameters for data to download. Once you have made your selections, choose the NOMIS API data format. Click Download Data. From this screen, right-click on Link (data.csv) and copy this link.
  • 2. Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023) phc_analytics@suffolk.gov.uk This link will be used as a query in Power BI Desktop to connect to the API. No API key is required. Using NOMIS queries in Power BI In Power BI desktop, click ‘Get data’ then select the ‘Web’ source. Paste the copied URL (this is known as the Query to the API) from the NOMIS website and click OK. Click Transform data from the Preview window. Once the query has been added, you may wish to use the formula bar or advanced editor to remove the date parameter. This means your query will return data for all available dates. To use Advanced Editor, click on the Home tab, then Advanced Editor. Remove the part of the query that contains the word date. Delete everything from the start of the word ‘date’ to the following ampersand (&). For example, in the query below, the text highlighted in red would be deleted. https://www.nomisweb.co.uk/api/v01/dataset/NM_17_5.data.csv?geography=1853882369 ...1853882372,1853882374...1853882379&date=latest&variable=18,45,248,249,84,83,111,1
  • 3. Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023) phc_analytics@suffolk.gov.uk 487,1488,27,54,250,251,93,92,120,1489,1490,36,63,252,253,102,101,129,1491,1492,1532.. .1540,594,820,841,290,720...722,335,344&measures=20599,21001,21002,21003 If asked which credentials to use for this data source, select Anonymous credentials and Public privacy level. Transforming data for use in the report To use the data to build reports in Power BI Desktop, transformations will need to be applied. From the Transform tab, select Use first row as headers. Now that each column is correctly labelled, only keep the columns that are required. This is good practice as it reduces the size of the dataset. From the Home tab, click Choose Columns. The columns that will usually be required are: • DATE • DATE_NAME • GEOGRAPHY_NAME • GEOGRAPHY_CODE • GEOGRAPHY_TYPE • VARIABLE_NAME • VARIABLE_SORTORDER • MEASURES_NAME • OBS_VALUE Next, pivot the MEASURES_NAME column to obtain a separate column for each measure. That is, a column for the numerator, denominator and percentage (where applicable). Click the MEASURES_NAME column, then click Pivot Column from the Transform tab. The values column is OBS_VALUE. Under the Advanced options, select Don’t Aggregate for the Aggregate Value Function.
  • 4. Public Health & Communities Analytics | Suffolk County Council | Version 1.2 (September 2023) phc_analytics@suffolk.gov.uk The MEASURES_NAME and OBS_VALUE columns of the table should have been replaced by columns in the format below: Further recommended transformations on this data (not detailed here) are: • Renaming columns as appropriate. • Changing data types for each column as appropriate. • Dividing values in the Variable column by 100 to get data as a percentage. Refreshing data Queries to the NOMIS API will return the latest available data whenever they are refreshed. This can include scheduled dataset refreshes in the Power BI service. When NOMIS are updating the data in the API, the query will fail and any Power BI dataset including a query to the NOMIS API refreshed during this period will fail. This is usually a temporary issue that will be automatically resolved once NOMIS have finished updating the data in the API. More information https://www.nomisweb.co.uk/api/v01/help