Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula for Specific Days of the Week Post Reply Post New Topic
Author Message
GPDJJ
Newbie
Newbie


Joined: 07 May 2018
Online Status: Offline
Posts: 6
Quote GPDJJ Replybullet Topic: Formula for Specific Days of the Week
    Posted: 09 May 2018 at 10:13am
So I created the formula below and the use the Select Expert to select days of the week. Is there a better way to do this in an all encompassing formula rather than doing two steps? For instance like only selecting on records on a Wednesday or Thursday.

weekdayname(dayofweek({table.field}))



IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 May 2018 at 2:52am
maybe create a static parameter with the 7 days of the week as the description but the numeric values as 1-7

In your select expert use either datepart or dayofweek functions
{?Week Day} = dayofweek({table.date})

You can also set it to allow multiple selections

Edited by DBlank - 10 May 2018 at 2:52am
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.016 seconds.