This is the code I wrote to create a subset table with a local data filter. I get a table with the columns selected but with all rows i.e., the local filter is not working.
Data Table("JoinedData140523") << Subset(
Selected columns only(0),
columns(
:age 2022, :"# of children"n, :Gender, :Nationality, :Religiosity,
:Education 3, :TOP YN, :TOP NoRelig YN
),
Local Data Filter(
Add Filter(
columns(:"Sevirity>3"n, :TOP total),
Where(:"Sevirity>3"n == "1" & :TOP total == "Yes") // Combine the filter conditions
)
)
);
Any suggestions?