I have updated the instructions and the code for the Custom Connector for CBS Open Data / Statline. Please see the original post:

Power BI Connector for CBS Open Data / Statline