You almost simply deleted selectfrom case statement. Since all values come from the same table, there is no need select, if the case statement just saves column name, it will get the corresponding column value.
SELECT CASE
WHEN Column1 = 'a' THEN Column2
WHEN Column4 = 'b' THEN Column5
ELSE Column6
END AS [Test]
FROM tableA
source
share