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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jessem
Frequent Visitor

Need help with custom API query

Greetings,

I'm trying to get retreive my list growth data from MailChimp. The standard MailChimp content pack unfortunately doesn't give me what I need. Instead, I'd like to create a custom list growth query using MailChimp's API. Documentation found here:

http://developer.mailchimp.com/documentation/mailchimp/reference/lists/growth-history/#read-get_list...

 

I should be okay once I get an idea of which path I need to take to implement this, I'm just not sure where to even begin in PBI Desktop.  

 

Forgive me if this has already been explained, I've looked but could not find the answer (maybe I'm looking in the wrong spot).

Thanks!

1 ACCEPTED SOLUTION
TPalmer
Employee
Employee

Hi there - the MailChimp connector in the Desktop also offers functions that can allow you to interact with the MailChimp API directly. We included those functions knowing that the tables we offered in the navigation pane were only a subset.

 

The documenation for these functions is actively being improved, but they take the subset of the API path as you saw in the Mailchimp documention. Try something like this (replacing the list ID):

 

= MailChimp.Instance("lists/{list-id}/growth-history")

The function will return the raw result which you can open and parse into a table. Using your example also showed a bug in our MailChimp.Collections function which is the preferred function for this operation (Instance is a raw single page vs. Collections will actually page through all the data into a single table). We'll work on fixing that bug in a future update.

 

 

Hope that helps!

View solution in original post

4 REPLIES 4
ReportGuru
Helper IV
Helper IV

Hi @jessem I know this reply is very late. Since the Mailchimp service pack was deprecated and also the desktop coonnector is not available anymore, you would have to look for another way. As a workaround, maybe you can use a 3rd party connector, it can save you a lot of time compared to other options. I've tried windsor.ai, supermetrics (which doesn't have PBI as a destination, so you first have to export to Google Sheets and then export to PBI) and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options

TPalmer
Employee
Employee

Hi there - the MailChimp connector in the Desktop also offers functions that can allow you to interact with the MailChimp API directly. We included those functions knowing that the tables we offered in the navigation pane were only a subset.

 

The documenation for these functions is actively being improved, but they take the subset of the API path as you saw in the Mailchimp documention. Try something like this (replacing the list ID):

 

= MailChimp.Instance("lists/{list-id}/growth-history")

The function will return the raw result which you can open and parse into a table. Using your example also showed a bug in our MailChimp.Collections function which is the preferred function for this operation (Instance is a raw single page vs. Collections will actually page through all the data into a single table). We'll work on fixing that bug in a future update.

 

 

Hope that helps!

Can we do the same with other Connectors (like for interacting with the Adobe Reporting API and modifying the connector dataset)?

Awesome, thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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