Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello people
I am new to Power Query and I am trying to get data using an api.
The source is this:
https://api.statbank.dk/v1/data
The script is this:
{
"table": "FOLK1a",
"format": "BULK",
"valuePresentation": "Code",
"delimiter": "Semicolon",
"variables": [
{
"code": "OMRÅDE",
"values": [
"084"
]
},
{
"code": "Tid",
"values": [
"2010K1",
"2015K1",
"2020K1"
]
},
{
"code": "CIVILSTAND",
"values": [
"U"
]
},
{
"code": "KØN",
"values": [
"1",
"2"
]
},
{
"code": "ALDER",
"values": [
"25",
"45",
"65"
]
}
]
}
The expected output is this:
OMRÅDE;TID;CIVILSTAND;KØN;ALDER;INDHOLD
084;2010K1;U;1;25;10281
084;2010K1;U;1;45;3806
084;2010K1;U;1;65;872
084;2010K1;U;2;25;10290
084;2010K1;U;2;45;2823
084;2010K1;U;2;65;688
084;2015K1;U;1;25;13072
084;2015K1;U;1;45;3586
084;2015K1;U;1;65;1102
084;2015K1;U;2;25;13162
084;2015K1;U;2;45;2687
084;2015K1;U;2;65;829
084;2020K1;U;1;25;14604
084;2020K1;U;1;45;4066
084;2020K1;U;1;65;1405
084;2020K1;U;2;25;14848
084;2020K1;U;2;45;3300
084;2020K1;U;2;65;1171
I hope you can help me by creating the total script in power query based on the information above!
Kind regards
Hi @Anonymous
It is possible to connect to the api followed by the second url from amitchandak.
But it would need a proper authentication type.
Best Regards
Maggie
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |