A Kruskal Wallis Test compares the difference between more than two independent groups, such as comparing the difference between groups A, B and C. If your data only has two groups such as Male/Female or Present/Absent you should consider the Independent-Samples t-Test
It is considered a non-parametric test and is suitable for non-parametric data. To check if your data is parametric, please check out the dedicated guide: Parametric or Not Guide (PDF)
If your data is parametric you should consider using a One-Way Between-Subjects ANOVA
Click Analyze > Nonparametric > Legagy Dialogs > K Indepenedent Samples
Within the "Tests for Several Independent Samples" Window, select the test variable or dependent variable you are analysing and move it to the "Test Variables List" box. Then move your independent/grouping variable into the “Grouping Variable” box.
Click "Define Range". Select the numbers corresponding to your maximum and minimums values, I have 3 groups labelled 1,2 and 3, so I will use 1 and 3.
Click "Options". Within the "Several Independent Samples: Options" window select "Descriptives"
Select Continue à OK
SPSS will generate three tables, to correctly report this test we need three, the "Descriptives", the "Kruskal-Wallis Test", and the ANOVA Effect Sizes:
This table shows the specific test results including the H-statistic (H, which you may also see reported as the χ2), the degrees of freedom (df) the two-tailed significance/p-value (Asymp. Sig), we need to report all three.
In addition, if your ANOVA is significant you must also report your post-hoc results. Mann-Whitney would be an appropriate test here between the pairs of unrelated groups. You have options for which correction (for multiple test) to use, here we have used the Bonferroni adjustment: