Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I was wondering if you could help me.
I have a large dataset from which I would like to load into my QV only observations for which EITHER of the following two fields equals to 10: Home_location or Work_location.
While I've thought of other ways to extract only the data needed, I'm wondering whether it's possible to use a condition in the load script to load only data where either Home_location=10 or Work_location=10. I need to keep both these fields in the data.
I would greatly appreciate any suggestions. I've attached a sample data, actual dataset is much bigger.
Many thanks in advance,
Marketa
LOAD WorkerID,
Home_location,
Work_location,
Hours
FROM
(ooxml, embedded labels, table is Sheet1)
WHERE Home_location=10 OR Work_location=10
LOAD WorkerID,
Home_location,
Work_location,
Hours
FROM
(ooxml, embedded labels, table is Sheet1)
WHERE Home_location=10 OR Work_location=10
Add one line to your script:
LOAD WorkerID,
Home_location,
Work_location,
Hours
FROM
(
WHERE Home_location=10 OR Work_location=10;
Wonderful, thank you both! I knew there must have been some simple solution....
Thanks!
You are welcome.
Thanks for feedback
or
WHERE 10 in (Home_location,Work_location)