Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Bar Chart Q Post Reply Post New Topic
Author Message
lolly54
Groupie
Groupie
Avatar

Joined: 25 Sep 2011
Online Status: Offline
Posts: 58
Quote lolly54 Replybullet Topic: Bar Chart Q
    Posted: 27 Aug 2014 at 1:03am
Hi All,
 
I have a Q regarding the Bar Chart.
 
I want to display 12 months data regardless of the end date of project (last 6 months and next 5 months). For example, if the end date is Oct 2014, it will still show data till Jan 2015.
 
At the moment, the bar chart is only showing month with data in it, which is until Oct 2014.
 
is there anyway I can get the chart to display 12 months?
 
Thanks a lot, everyone!
 
 
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 27 Aug 2014 at 2:38am
If you are using SQL, you could create a table with dates and link to data table dates;
or you could create this as a temp table in Crystal using a SQL command;
 
 
or Three D Graphic third party software will also do it (this does cost money though).
 
I have used the software before for other functions, and remember seeing this as an option.
 


Edited by z9962 - 27 Aug 2014 at 2:53am
IP IP Logged
lolly54
Groupie
Groupie
Avatar

Joined: 25 Sep 2011
Online Status: Offline
Posts: 58
Quote lolly54 Replybullet Posted: 27 Aug 2014 at 2:52am
Hi z9962, thanks for answering my Q. I don't have the right to create temp table.. so using SQL command is out of the question. The company won't pay a third party software to do it either. Is there any other way?

Thanks!
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 27 Aug 2014 at 2:55am
using the Crystal SQL Command I dont think you need the rights, try something like this in Crystal...

IF

OBJECT_ID('tempdb..#TempDate') IS NOT NULL DROP TABLE #TempDate

CREATE

TABLE #TempDate (tDate DateTime)

DECLARE

@i INT

SET

@i = 1

WHILE

@i <= 12

BEGIN

INSERT INTO #TempDate (tDate) Values (DATEADD(month,@i,getdate()))

SET @i = @i + 1

END

SELECT

tDate FROM #TempDate

IP IP Logged
lolly54
Groupie
Groupie
Avatar

Joined: 25 Sep 2011
Online Status: Offline
Posts: 58
Quote lolly54 Replybullet Posted: 27 Aug 2014 at 2:59am
Thanks, z9962! I have not used SQL command before, let me try it out. :)
IP IP Logged
adavis
Senior Member
Senior Member


Joined: 30 Oct 2012
Online Status: Offline
Posts: 104
Quote adavis Replybullet Posted: 27 Aug 2014 at 4:09am
Be sure to report back lolly. I'm curious about this as well!

Thanks.
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.