Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Hope everyone is good. My problem is simple one but I am missing some point here. I am trying to pull the data from URL and use that into QlikView. Let me explain you sample scenario.
Let’s say that we have a URL (given below) and I am trying to pull the data from it. I am only interested to pull data from table 19 as
shown below. But this table # in URL keeps changing e.g. tomorrow the same information may be available at table 22. So, Instead of hardcoding this table in my script, is there a way where QlikView will automatically determine the table number where fields F1, 1 Year, Current etc. exists? I only want fields F1, 1 Year, Current and rest can be deleted and I do not want then data model.
http://www.moneycontrol.com/india/stockpricequote/miscellaneous/thomascookindia/TCI
http://www.moneycontrol.com/india/stockpricequote/computerssoftware/tataconsultancyservices/TCS
FYI, I have around 10 URLs with same data structure but different table number where fields F1, 1 Year, Current etc. exists.
Regards,
Sharma
Hi,
maybe you could load the column names of the different tables using a crosstable load and check, if the columns exist, that you are interested in:
FOR vTableNo = 1 to 27
tabColumns:
CrossTable (ColumnName, ColumnValue)
LOAD $(vTableNo) as TableNo,
*
FROM [http://www.moneycontrol.com/india/stockpricequote/miscellaneous/thomascookindia/TCI]
(html, codepage is 1252, embedded labels, table is @$(vTableNo))
Where RecNo()=1;
NEXT;
DROP Fields ColumnValue;
You then would load only the relevant table(s).
In your case there are more than one tables containing the columns of you are looking for:
hope this helps
regards
Marco
Hello Marco, I want to thank you for the efforts you have taken to help me out here. Thanks much.
But problem comes when I add more than one URL to your logic. There are many other table are getting created during load e.g. Table-1, table-2 etc. Below are the issues which I want to address:
Having any ideas?
Regards,
Sharma
Is there any possibility of using xml files from web url? will that be easier?