Forum Discussion
Get Data 'From Web' not showing all columns
- Anonymous4 years ago
Hi MarCat ,
Could this code return correct table?
let Source = Web.BrowserContents("https://en.wikipedia.org/wiki/List_of_nearest_stars_and_brown_dwarfs"), #"Extracted Table From Html" = Web.Page(Source), Data = #"Extracted Table From Html"{1}[Data] in DataIf the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - 4 years ago
Yes, that worked. However, having said that, it hardly makes using Power BI any friendlier. Power BI works great for simple stuff, but any time you're faced with a real-world problem it doesn't seem up to the task, which is kind of really disappointing. Anyways, thanks for your time and support, that's really appreciated and makes using this community part of Power BI really worthwhile.
Hi MarCat ,
I can get all columns using the Web.Page function.
let
Source = Web.BrowserContents("https://en.wikipedia.org/wiki/List_of_nearest_stars_and_brown_dwarfs"),
#"Extracted Table From Html" = Web.Page(Source),
Data = #"Extracted Table From Html"{1}[Data],
#"Changed Type" = Table.TransformColumnTypes(Data,{{"Designation System", type text}, {"Designation Star or (sub-) brown dwarf", type text}, {"Distance (ly (±err))[6]→→", type text}, {"Constellation", type text}, {"Coordinates: RA, Dec (Ep J2000, Eq J2000)[5]", type text}, {"Stellar class", type text}, {"Mass M☉", type text}, {"Magnitude (mV[5] or mJ) App.", type text}, {"Magnitude (mV[5] or mJ) Abs.", type text}, {"Parallax (mas (±err)) [5][note 1]", type text}, {"Notes and additional references", type text}})
in
#"Changed Type"
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Nope... If I try the above script then I get the following error:
Expression.Error: The column 'Coordinates: RA, Dec (Ep J2000, Eq J2000)[5]' of the table wasn't found.
Details: Coordinates: RA, Dec (Ep J2000, Eq J2000)[5]
- Anonymous4 years agoNot applicable
Hi MarCat ,
Could this code return correct table?
let Source = Web.BrowserContents("https://en.wikipedia.org/wiki/List_of_nearest_stars_and_brown_dwarfs"), #"Extracted Table From Html" = Web.Page(Source), Data = #"Extracted Table From Html"{1}[Data] in DataIf the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- MarCat4 years agoRegular Visitor
Yes, that worked. However, having said that, it hardly makes using Power BI any friendlier. Power BI works great for simple stuff, but any time you're faced with a real-world problem it doesn't seem up to the task, which is kind of really disappointing. Anyways, thanks for your time and support, that's really appreciated and makes using this community part of Power BI really worthwhile.