The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
Power BI first timer here looking at migrate from the darkside (Tableau).
I am looking to connect to a URL: http://live.tissottiming.com/?id=00030E0002010264FFFFFFFFFFFFFFF2&style=Tissot
The web option doesn't find the table of data within the web page.
Can anyone tell me the prerequisites when connecting via the web and also where i'm going wrong here?
I'm sure this is a silly question but I seem to be stuck at the first hurdle.
Thanks for any help.
Lewis
Solved! Go to Solution.
@LewisM1991 wrote:
Hi,
Power BI first timer here looking at migrate from the darkside (Tableau).
I am looking to connect to a URL: http://live.tissottiming.com/?id=00030E0002010264FFFFFFFFFFFFFFF2&style=Tissot
The web option doesn't find the table of data within the web page.
Can anyone tell me the prerequisites when connecting via the web and also where i'm going wrong here?
I'm sure this is a silly question but I seem to be stuck at the first hurdle.
Thanks for any help.
Lewis
I think it is the limitation. When connecting to a web page, the "web" connector can only get the plain/static html. And yes, the table is not there when viewing the html page source.
I think it is some ajax that fills the page with data after the page loaded. When monitoring the network traffic we can actually capture the ajax request and reponse. There‘s a workaround by using Power Query but it might be not reliable.
let url = "http://live.tissottiming.com/signalr/send?transport=serverSentEvents&clientProtocol=1.5&connectionToken=H8tgsE0L2n0T5MugiJaNzFlb91%2B4AtmorAddMex8lOXVxZcnw6DTWVj3QOSVeKy6dCutjqka78%2B3ta5ZEvfkb9I0yTw8DxdJkxFOM6OIgEuMHb1bdwGsI3AGXp4PQfyq&connectionData=%5B%7B%22name%22%3A%22livehub%22%7D%5D", body = "data={""H"":""livehub"",""M"":""GetLastData"",""A"":[""00030E0002010264FFFFFFFFFFFFFFF2""],""I"":1}", Source = Json.Document(Web.Contents(url,[ Headers = [#"Content-Type"="application/x-www-form-urlencoded; charset=UTF-8"], Content = Text.ToBinary(body) ] )), #"Converted to Table" = Record.ToTable(Source), #"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Value] <> "1")), #"Expanded Value" = Table.ExpandRecordColumn(#"Filtered Rows", "Value", {"CssVersion", "Datas", "DocMgmtId", "GeneratedTime", "JavascriptVersion", "MessageNumber", "Sport", "Template", "TypeXML"}, {"Value.CssVersion", "Value.Datas", "Value.DocMgmtId", "Value.GeneratedTime", "Value.JavascriptVersion", "Value.MessageNumber", "Value.Sport", "Value.Template", "Value.TypeXML"}), #"Removed Columns" = Table.RemoveColumns(#"Expanded Value",{"Value.DocMgmtId", "Value.GeneratedTime", "Value.JavascriptVersion", "Value.MessageNumber", "Value.Sport", "Value.Template", "Value.TypeXML", "Value.CssVersion", "Name"}), #"Added Custom" = Table.AddColumn(#"Removed Columns", "Custom", each Xml.Document([Value.Datas])) in #"Added Custom"
@LewisM1991 wrote:
Hi,
Power BI first timer here looking at migrate from the darkside (Tableau).
I am looking to connect to a URL: http://live.tissottiming.com/?id=00030E0002010264FFFFFFFFFFFFFFF2&style=Tissot
The web option doesn't find the table of data within the web page.
Can anyone tell me the prerequisites when connecting via the web and also where i'm going wrong here?
I'm sure this is a silly question but I seem to be stuck at the first hurdle.
Thanks for any help.
Lewis
I think it is the limitation. When connecting to a web page, the "web" connector can only get the plain/static html. And yes, the table is not there when viewing the html page source.
I think it is some ajax that fills the page with data after the page loaded. When monitoring the network traffic we can actually capture the ajax request and reponse. There‘s a workaround by using Power Query but it might be not reliable.
let url = "http://live.tissottiming.com/signalr/send?transport=serverSentEvents&clientProtocol=1.5&connectionToken=H8tgsE0L2n0T5MugiJaNzFlb91%2B4AtmorAddMex8lOXVxZcnw6DTWVj3QOSVeKy6dCutjqka78%2B3ta5ZEvfkb9I0yTw8DxdJkxFOM6OIgEuMHb1bdwGsI3AGXp4PQfyq&connectionData=%5B%7B%22name%22%3A%22livehub%22%7D%5D", body = "data={""H"":""livehub"",""M"":""GetLastData"",""A"":[""00030E0002010264FFFFFFFFFFFFFFF2""],""I"":1}", Source = Json.Document(Web.Contents(url,[ Headers = [#"Content-Type"="application/x-www-form-urlencoded; charset=UTF-8"], Content = Text.ToBinary(body) ] )), #"Converted to Table" = Record.ToTable(Source), #"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Value] <> "1")), #"Expanded Value" = Table.ExpandRecordColumn(#"Filtered Rows", "Value", {"CssVersion", "Datas", "DocMgmtId", "GeneratedTime", "JavascriptVersion", "MessageNumber", "Sport", "Template", "TypeXML"}, {"Value.CssVersion", "Value.Datas", "Value.DocMgmtId", "Value.GeneratedTime", "Value.JavascriptVersion", "Value.MessageNumber", "Value.Sport", "Value.Template", "Value.TypeXML"}), #"Removed Columns" = Table.RemoveColumns(#"Expanded Value",{"Value.DocMgmtId", "Value.GeneratedTime", "Value.JavascriptVersion", "Value.MessageNumber", "Value.Sport", "Value.Template", "Value.TypeXML", "Value.CssVersion", "Name"}), #"Added Custom" = Table.AddColumn(#"Removed Columns", "Custom", each Xml.Document([Value.Datas])) in #"Added Custom"
Thanks for taking the time to reply, I'll give this a go.
Much appreciated.
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
203 | |
82 | |
65 | |
48 | |
38 |