Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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 |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |