Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
551 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Connecting to the UK Bank Holiday API |
---|
Pull through the official list of Bank Holidays in the UK. |
Working out when UK bank holidays fall every year can be a pain when creating your PBI report.
Thankfully there is an easy option you can use, the UK bank holiday API.
You can test the output by putting the Endpoint directly in your browser.
Copy the Endpoint URL into the Web connector data source.
This is an open API so doesn't require a key.
Once connected you will see a list of UK countries, feel free to filter this to the country you need.
Click on this icon to expand the data.
The List datatype can be made up of multiple rows and columns. We need to split this into rows to make it useable.
Choose Expand to New Rows to return one row for each day.
The Record datatype is a row that has multiple columns, we need to expand this to extract the separate columns.
Expand the records to get separate columns.
From here you can untick any columns that you don't need returned.
Click OK to return the ticked columns.
We now have a table listing all bank holidays back to 2018. We can now join this onto our calendar table to check which days are bank holidays.
My favourite column is events.bunting, very important stuff!
Switching back to the Model view we see all our existing tables.
We need to connect this table into our model.
Drag the events.date column from bank-holidays table and drop it onto the Date column of your Calendar table.
Power BI has highlighted the two columns we connected together.
Click Save and you should see the new relationship has been created between the tables.
Now you can use this table for filtering your data!
Some other pages relevant to the above blog include:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.