Jump to content
  • 0

Get First Sunday


TroubleShooter

Question

1 answer to this question

Recommended Posts

  • 0

Hi @TroubleShooter,

 

You may use the syntax below on a Calculated Value to get the First Sunday of the Month.

 

Virtual 1 represents numeric month

Virtual 2 represents numeric year

DATEADD (
  day,
  (( 8 - DATEPART(weekday, CAST('[@cbParamVirtual1]/1/[@cbParamVirtual3]' as DATE) )) % 7 ),
  CAST('[@cbParamVirtual1]/1/[@cbParamVirtual3]' as DATE)
)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...