Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to include included variable in new table

I have the following script that inserts a variable into a web page and then pulls data.  How can I include the variable that I am injecting into the string into each pull?  So for instance, if PDGA Number is 1 then I would want PDGA Number 1 inserted into the tournament detail table.  This way I can join the two tables together by PDGANumber.

Set a = 'PDGANumber';

set ErrorMode=0;

PlayerStats:

LOAD Team,

  Player,

     PDGANumber,

     FirstRating,

     Driving,

     Approach,

     Putting

FROM

(ooxml, embedded labels, table is D2);

For each a in FieldValueList('PDGANumber')

TournamentDetail:

LOAD Tournament,

     Date,

     Round,

     Score,

     Rating,

     Included

FROM

[http://www.pdga.com/player/$(a)/details]

(html, codepage is 1252, embedded labels, table is @1);

Next

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Add a reference to $(a) into your TournamentDetal LOAD.

TournamentDetail:

    LOAD Tournament,

    '$(a)' as PDGANumber,

     Date,

     Round,

     Score,

     Rating,

     Included

FROM

[http://www.pdga.com/player/$(a)/details]

(html, codepage is 1252, embedded labels, table is @1);

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Add a reference to $(a) into your TournamentDetal LOAD.

TournamentDetail:

    LOAD Tournament,

    '$(a)' as PDGANumber,

     Date,

     Round,

     Score,

     Rating,

     Included

FROM

[http://www.pdga.com/player/$(a)/details]

(html, codepage is 1252, embedded labels, table is @1);

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

Not applicable
Author

Thank you, sometimes it is so simple I try and over complicate it and overlook the solution.....