cancel
Showing results for 
Search instead for 
Did you mean: 
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
Super User
Super User

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

4 REPLIES 4
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
Super User
Super User

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

artemus
Microsoft
Microsoft

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
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors