Is there a way to select 2 seperate date periods?

Printed From: Crystal Reports Book — Forum Name: Technical Questions

I have a report that I need to create where I need to show the first 6 months of 2017 and the first 6 months of 2018 Sales by customer.
Is there a way I can have 2 separate dates?

Customer    Sales 2017               Customer     Sales 2018
asdf            $2000.00                 asdf              $30000

Yes, but you probably will have to put in a formula in the select expert.

Something like this (very generic, syntax may not be correct).
{somedatefield} between date(2017,01,01) and date(2017,06,30) or
{somedatefield} between date(2018,01,01) and date(2018,06,30)