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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Mekist
Helper III
Helper III

Dynamic URL Refresh

Hello

I want to retrieve the data by changing the "produce Name" section using the dynamic url address.

How can I

For example; ADEL, ULKER

 

"https://www.isyatirim.com.tr/_layouts/15/IsYatirim.Website/Common/Data.aspx/MaliTablo?companyCode=" & produceName & "&exchange=TRY&financialGroup=XI_29&year1=2024&period1=12&year2=2024&period2=9&year3=2024&period3=6&year4=2024&period4=3"

 

produceName = "EREGL"

8 REPLIES 8
Omid_Motamedise
Super User
Super User

You can use the list definitaion and using List.Transform. SO creat a list including all the product name as :

 

a={"ADEL", "ULKER"} ,

 

then use list.transform to convert the text to the url as bellow.

 

b=List.Transform(a, each 

"https://www.isyatirim.com.tr/_layouts/15/IsYatirim.Website/Common/Data.aspx/MaliTablo?companyCode=" & _ & "&exchange=TRY&financialGroup=XI_29&year1=2024&period1=12&year2=2024&period2=9&year3=2024&period3=6&year4=2024&period4=3")

it going to convert all the text into the url so  in the next step you can load the data by another list.transform as

 

=List.Transform(b, each Web.Contents(_))

 

 

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

I don't understand exactly how it is done, if you don't mind, is it possible for you to share your PBI transfer?

Just go to the power query Editer, and then Advance editor, and past the next code.

 

 

let
    Part1="https://www.isyatirim.com.tr/_layouts/15/IsYatirim.Website/Common/Data.aspx/MaliTablo?companyCode=",
    
    Part3="&exchange=TRY&financialGroup=XI_29&year1=2024&period1=12&year2=2024&period2=9&year3=2024&period3=6&year4=2024&period4=3",

    Products={"ADEL", "ULKER"},

    Combine=List.Transform(Products, each  Json.Document(Web.Contents(Part1&_&Part3)))
in
    Combine
If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

Thank you very much

Can I have it poured into the products table?

Mekist_0-1728686304432.pngMekist_1-1728686323365.png

 

Can you share the image of your product table?

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

Adding pbix file does not allow

 

Can you proceed with the product codes in the example?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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