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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Employee
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

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
Employee
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
Employee
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors