Report question

Question: How can I use if statement after a CTE (SQL Server 2005)