Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Is there a way to select 2 seperate date periods? Post Reply Post New Topic
Author Message
anoble1
Newbie
Newbie
Avatar

Joined: 02 Oct 2015
Location: United States
Online Status: Offline
Posts: 5
Quote anoble1 Replybullet Topic: Is there a way to select 2 seperate date periods?
    Posted: 24 Jul 2018 at 4:44am
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

IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 25 Jul 2018 at 4:27am
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)
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.