Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
I am hoping one of you kind forum folk can help me. I can't say I know too much about coding, but I feel like I am close! Essentially, I would like "Column1" to return the numeric value of the "data-event-id" attribute - so the first row should be 2710602.
At the moment my code says {"Column1", ".event", each[Attributes][href]} for populating that first column... But when I switch it to {"Column1", ".event", each[Attributes][data-event-id]} it returns an error that it cannot even define.
Am deliberately using the new Power BI desktop feature which can handle non-HTML tables and convert them. I know the rest of the script works: in other columns, I can already pull back text strings like 12.00PM, Jahn Regensburg and Darmstadt 98 in the above code with the respective CSS selectors: .time, .team1 and .team2.
As I say, just need to find a means of pulling back the ID string held within the "data-event-id" attribute, but I can't quite get there. Was also trying to use this tutorial (hence originally having [href] in the above).
Solved! Go to Solution.
Hi @jmillsjmills ,
use this.
{"Column1", ".event", each [Attributes][#"data-event-id"]}
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @jmillsjmills ,
You can also refer to this:https://ssbipolar.com/2018/10/27/web-scraping-with-html-table-in-power-query/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you!
Hi @jmillsjmills ,
use this.
{"Column1", ".event", each [Attributes][#"data-event-id"]}
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
That is fantastic - thank you so much!
| User | Count |
|---|---|
| 76 | |
| 34 | |
| 31 | |
| 29 | |
| 25 |