


Access VBA delete Table records with SQL using DoCMD.RunSQL Method.MS Access select the first record of each group using First Function.Now you can enter “1” in filterA column to indicate you want to include that row of data, enter 0 (or Null input) to exclude data.Ĭategories Categories Archives Archives Recent Posts In the Select Cases Option, select the forth option Use filter variable and then move filterA to the box This option is to manually select which row of data to include or exclude.įirst, in Variable View, create a field called filterA Go back to Data View, now you can see only row 2 to row 6 are left. Select the third option Based on time or case range > click on Range button This option allows you to filter specific row number range. SPSS Select Cases – Based on time or case range Now you can see 4 random rows from row 1 to 7 remain. Click on Continue button and go back to Data View. Go back to the previous screen and select the second option. Go back to Data View and you can see only 3 cases out of 8 cases are filtered. But note that it is only “Approximately”, the number of cases filtered could vary significantly. The first option is to filter a certain percentage of cases. Select the second option Random sample of cases > click on Sample… button This option allows you to randomly select rows in the data. SPSS Select Cases – Random sample of cases When you run statistics report, you will only find the population size N is only 6. The slash means those rows are excluded in the dataset. Now you can see row 6 and row 8 (salary = 9545) have a slash on the row number.

Salary>20000 AND Allowance=0 (0 can represent Null data) You can also use AND OR operator in the Text Box, for example Press Continue button > Press OK button to exit the Select Cases dialog box Select the first option If condition is satisfied > click on If… buttonįor example, if we only want to use data where Salary is larger than 20000, then we type the followings in the text box

This option allows you to select data based on criteria. SPSS Select Cases – If condition is satisfied We will talk about each option in the below section. There are several options in this Select Cases box. In this tutorial, we will talk about the options are available to facilitate data filtering. SPSS has similar function but it is called “ Select Cases“. In Excel, you can apply Autofilter and enter criteria to select data what you want. This SPSS tutorial explains how to filter data using Select Cases Function.
