Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have an already resident table "abc"
I want to make a new table from abc by using filtering the same table. I want to filter the table one one column, column Unique ID such that column Indicator is True. So basically something like the in clause in SQL
In sql I would do select Unique ID, Indicator from abc where Unique ID in (select select Unique ID, Indicator from abc where Indicator = 'True'). Want to do same thing in Qlik
Please help
[New Table]:
LOAD Unique ID,
Indicator
Resident abc
Where Indicator = 'True';
DROP Table abc;
To achieve this, you can follow these steps:
newTable: LOAD [Unique ID], [Indicator] Resident abc Where [Unique ID] = [Unique ID] and [Indicator] = 'True';
This will create a new table called "newTable" that only includes rows where the "Indicator" column is true. The dollar sign expansion in the "Where" clause ensures that you are referencing the correct column in the existing table.