Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
Solved! Go to Solution.
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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
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/
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.
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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.