Hi Willbye,
Just one add-on to Nuno's answer, you should use the syntax CASE WHEN <condition> THEN <value> ELSE <value> END make sure the <value> of both THEN and ELSE branches is the same (both have to be number or date, etc.).
You will also need to have the same CASE in the SELECT statement as you have in GROUP BY, otherwise you'll have an SQL error.
It should be something like the example below:
SELECT CASE WHEN {Client}.[IsActive] = 1 THEN 'Active' ELSE 'Inactive' END
FROM {Client}
GROUP BY CASE WHEN {Client}.[IsActive] = 1 THEN 'Active' ELSE 'Inactive' END
Regards,
João