Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Chart by months and week together Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Jul 2013 at 5:31am
you might consider using a stored proc but you can also alter your view
you could much more esialy include in the column for 'current month' as defined by your week straddling in that then use that column as your way to break out the data in the report.
you can use an inner query to get the one value for each week number filtering on the currentmonth and join that back to your current data set on the week.
IP IP Logged
wibni
Newbie
Newbie


Joined: 16 Apr 2013
Online Status: Offline
Posts: 14
Quote wibni Replybullet Posted: 25 Jul 2013 at 2:15am
Thanks for your help!
Much appreciated.

I can also use this formula as my 'on change of' field to get my desired result - or at least parts of it.

If      Month({Data.Date}) <> Month(CurrentDate)
Then    DateSerial(Year({Data.Date}), Month({Data.Date}) + 1, 1) - 1
Else    {Data.Date} 

What this does is, for every month prior to the current month, amend the date to the last day of its respective month, but leave the dates for the current month unchanged.

IP IP Logged
<< Prev Page  of 2
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.