Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date - fiscal year Post Reply Post New Topic
Author Message
fusion
Groupie
Groupie


Joined: 12 Nov 2007
Location: United States
Online Status: Offline
Posts: 93
Quote fusion Replybullet Topic: Date - fiscal year
    Posted: 30 Nov 2007 at 6:54am
Hello Experts Please help me solve this problem.
In the report that I am creating, user selects a period 200710 which is a parameter value, then the formula must add the opening balance filed with the months in between that period 

Here is the Scenario:
Fiscal year 2008 starts from July 2007 (i.e. 200707 and ends in June 2008 (i.e. 200806).
I have fields as below
Period as YEND, opening balance as OBAL, balance for july 2007 as MM01, balance for aug 2007 as MM02, balance for sept 2007 as MM03, balance for Oct 2007 as MM04,... , balance for May 2008 as MM11, balance for June 2008 as MM12

User selects a period which is in number format say 200708.
Now based on the user input for August I need to add the opening balance field OBAL with the balance for JUl field MM01

similary, if user input is 200710
I need to add fileds: OBAL, MM01, MM02, MM03, MM04.

Please advise.

Thanks


Edited by fusion - 30 Nov 2007 at 1:41pm
IP IP Logged
fusion
Groupie
Groupie


Joined: 12 Nov 2007
Location: United States
Online Status: Offline
Posts: 93
Quote fusion Replybullet Posted: 30 Nov 2007 at 1:45pm
Update to the above post.
My date filed G2yend is just the year i.e. YYYY. The user wants to use the parameter as YYYYMM where MM corresponds to corresponding month  i.e. Jun, July, Aug and so on.

all the months are in same row for a specific year YYYY.


IP IP Logged
fusion
Groupie
Groupie


Joined: 12 Nov 2007
Location: United States
Online Status: Offline
Posts: 93
Quote fusion Replybullet Posted: 03 Dec 2007 at 11:22am
Problem Solved:

I used parameter (Type: Number) without assigning any fields to it. So the parameter takes input as YYYYMM. Then I created formula F1 which separates the YYYY part of the parameter and then F2 which separates the MM part of the parameter. Now based on values of MM i used If-Then-Else statement to add different fileds.

Thank you.
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.015 seconds.