Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Tuan
Helper III
Helper III

Shopify API - JSON Query Parsing

I'm a newbie at querying JSON APIs. I'm currently pulling Shopify api with read access. It comes into power query as a flat list. Is there a good way to break up all the Dimension and Facts tables or do I have to go through the data one step at a time?

 

I'm also pulling in the data once as a connector and referencing that connection to build out my Dimension and fact tables. I'm not sure if this is the correct way to do it. Any advice would be much appreciated.

 

Image of my progress.

Tuan_0-1593920249409.png

 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You should be able to do all of this in the query editor, and not need DAX tables.  Your approach to reference your initial query to make your other tables is a good practice, but there are some settings to consider when doing this.  This video has a good explanation of them, and their impact on the number of API calls made.

https://www.youtube.com/watch?v=3uKNNZqBIkg

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

5 REPLIES 5
CoderZen08
Helper V
Helper V

Hi @Tuan were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector, which pulls data from the Shopify API directly. I've tried windsor.ai, supemetrics and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the Shopify connector in the data sources list:

 

SHOPIFY-1.jpg

 

After that, you need to follow instructions and install the windsor.ai app from the Shopify App Store:

 

SHOPIFY-1.5.png

 

then on preview and destination page you will see a preview of your Shopify fields

 

SHOPIFY-2.jpg

 

There just select the fields you need. Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url

 

SELECT_DESTINATION_NEW.png

Syndicate_Admin
Administrator
Administrator

This tutorial will be help you for Shopify API - JSON Query Parsing https://www.youtube.com/watch?v=U2nIleAHQXE

 

you can also find shopify web designer and developers

v-juanli-msft
Community Support
Community Support

Hi @Tuan 

It is best to use power bi to connect to Shopify API and get tables (fact and dimension) directly.

If it can't be accomplished, you could create tables from a flat table using Power query or Dax which are suggested by mahoneypat and artemus.

Besides, i provide some links to do this:

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-calculated-tables

https://community.powerbi.com/t5/Desktop/create-table-from-existing-table/td-p/123553

https://ssbi-blog.de/blog/technical-topics-english/tables-in-power-query-how-when-and-why/

https://community.powerbi.com/t5/Desktop/Create-New-Table-and-Column-from-existing-Table-with-filter...

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mahoneypat
Microsoft Employee
Microsoft Employee

You should be able to do all of this in the query editor, and not need DAX tables.  Your approach to reference your initial query to make your other tables is a good practice, but there are some settings to consider when doing this.  This video has a good explanation of them, and their impact on the number of API calls made.

https://www.youtube.com/watch?v=3uKNNZqBIkg

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


artemus
Microsoft Employee
Microsoft Employee

I would advise against doing this. Each table in power query is created in isolation. So you will end up hitting the end point multiple times. To get around this, import the flat table, and use dax to create dimension tables. Use power query to add any additional calculated columns to help display the data.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.