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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Vialle_Diego
Frequent Visitor

How to use Relative Path ?

I'm using an API to bring the state and city columns according to my zip code column. However, to enable auto-scheduling in Power BI Service, I need to use the Relative Path function in Power Query. How to use ?

 

Vialle_Diego_0-1659384381908.png

"This dataset includes a dynamic data source. Since dynamic data sources are not updated in the Power BI service, this dataset will not be updated."

Vialle_Diego_1-1659384764781.png

Vialle_Diego_2-1659385546632.png

 

1 ACCEPTED SOLUTION

 

I found the answer:

Json.Document(Web.Contents("https://brasilapi.com.br/api/cep/v1/",[RelativePath = [CEP]]))

 

View solution in original post

2 REPLIES 2
jbwtp
Memorable Member
Memorable Member

Hi @Vialle_Diego,

 

Interesting... I am sure I used to be able to do paginating HTTP requests in PBI.

Do you want to try to create a separate column which would be complete URL, rather than combining it in the Web.Content function? Maybe this can help.

 

Kind regards,

John 

 

I found the answer:

Json.Document(Web.Contents("https://brasilapi.com.br/api/cep/v1/",[RelativePath = [CEP]]))

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.