Forum Discussion
tiannie
1 year agoRegular Visitor
Automating API link updates
I've been using PowerBI to directly import a web API to get up-to-date clinical trial information for my dashboard (from Clinicaltrials.gov, example link with 2 random studies here: clinicaltrials.go...
- 1 year ago
Hey tiannie,
Based on your requirement to dynamically update the ClinicalTrials.gov API URL without manual intervention, here are the recommended approach:Power Query List Processing
- Load your Excel NCT list into Power Query Editor
- Transform the NCT column into a list using Table.Column()
- Use Text.Combine() function to join list items with "%7C" separator
- Build the complete API URL string dynamically: "clinicaltrials.gov/api/v2/studies?postFilter.ids=" & [Combined_NCTs] & "&pageSize=400"
- This approach ensures the URL rebuilds each time data refreshes
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
jaineshp
1 year agoMemorable Member
Hey tiannie,
Based on your requirement to dynamically update the ClinicalTrials.gov API URL without manual intervention, here are the recommended approach:
Power Query List Processing
- Load your Excel NCT list into Power Query Editor
- Transform the NCT column into a list using Table.Column()
- Use Text.Combine() function to join list items with "%7C" separator
- Build the complete API URL string dynamically: "clinicaltrials.gov/api/v2/studies?postFilter.ids=" & [Combined_NCTs] & "&pageSize=400"
- This approach ensures the URL rebuilds each time data refreshes
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
- tiannie1 year agoRegular Visitor
Perfect, thanks Jainesh!