Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Edit: Solved, I was going about this the wrong way. Transpose columns before expanding rows and it works. Whoops
First time trying to use an API directly into Power BI and ran into some issues, or maybe I'm just doing it wrong?
I'm getting data from Statistics Sweden (Swedish government agency) through this link. Which I add as a "web" data source in Power BI.
What I want is a column for each of the categories with rows of values, like this:
region | type | tablecontent | 2020K1 | 2020K2 | 2020K3 | 2020K4 |
x | z | a1 | 1741 | 1721 | 659 | 1232 |
x | z | a2 | 961 | 968 | 873 | 1004 |
x | y | b1 | 116 | 57 | 54 | 69 |
x | y | b2 | 94 | 117 | 46 | 118 |
But instead I get this:
code | text | valuetexts | elimination |
Region | region | [List] | TRUE |
Hustyp | hustyp | [List] | TRUE |
ContentsCode | tabellinnehåll | [List] | null |
Tid | kvartal | [List] | null |
And if I expand the [List] to new rows I just get a long list with the data in a single column like mentioned.
Am I missing something in the previous "Applied Steps" in my query settings?
Thanks
Solved! Go to Solution.
Thanks, I was doing it wrong...
If i Transpose the columns before expanding the lists it works.
Hi @Anonymous ,
Try to connect to this data source and expanded the List. Then, transform the table.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks, I was doing it wrong...
If i Transpose the columns before expanding the lists it works.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |