Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Hi, Im stuck with a m ulti value web content call, I have try to follow the tutorial here : https://www.thebiccountant.com/2018/03/22/web-scraping-2-scrape-multiple-pages-power-bi-power-query/...
but with all my try, the table result is not dynamic from the context, here is my old version of the table, with query URL modify but the loop doesnt apply in the call.
let
Source = Web.Contents("https://www.chrono24.fr/audemarspiguet/index-1.htm?pageSize=30",
[Query = "www.chrono24.fr/audemarspiguet/index-"&Page&".htm?pageSize=30"]),
#"Table extraite à partir de code Html" = Html.Table(Source,
{{"Titre", ".text-sm.text-bold"},
{"Informations", ".text-sm.m-b-2"},
{"Prix", ".align-items-end .text-bold"},
{"Frais de port", ".text-sm.text-muted"},
{"Pays", ".text-uppercase"},
{"Type annonce", ".js-article-item-article-badge-wrapper"},
{"Type vendeur", ".article-item-seller-badge"},
{"Code Annonce", ".article-item-container a", each [Attributes][href]}},
[RowSelector=".js-article-item-article-badge-wrapper"]),
#"Type modifié" = Table.TransformColumnTypes(#"Table extraite à partir de code Html",{
{"Titre", type text},
{"Informations", type text},
{"Prix", type text},
{"Frais de port", type text},
{"Pays", type text},
{"Type annonce", type text},
{"Type vendeur", type text},
{"Code Annonce", type text}}),
#"URL Complète" = Table.AddColumn(#"Type modifié", "URL", each "https://www.chrono24.fr" & [Code Annonce]),
#"Type modifié1" = Table.TransformColumnTypes(#"URL Complète",{{"URL", type text}}),
#"Personnalisée ajoutée" = Table.AddColumn(#"Type modifié1", "Page", each Page),
#"Type modifié2" = Table.TransformColumnTypes(#"Personnalisée ajoutée",{{"Page", type text}})
in
#"Type modifié2"
Source = Web.Contents("https://www.chrono24.fr/audemarspiguet/index-1.htm?pageSize=30",
[Query = "www.chrono24.fr/audemarspiguet/index-"&Page&".htm?pageSize=30"]),
I think I miss something a the point.
Someone can help me to fix it ?
BR
Julien
Solved! Go to Solution.
Please follow the documentation. Use RelativePath and Query parameters. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1
Please follow the documentation. Use RelativePath and Query parameters. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
6 | |
5 | |
5 | |
5 |
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |