Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: urgently need help :'( Post Reply Post New Topic
Author Message
alan
Newbie
Newbie


Joined: 15 Aug 2012
Location: Malaysia
Online Status: Offline
Posts: 4
Quote alan Replybullet Topic: urgently need help :'(
    Posted: 15 Aug 2012 at 7:31pm
i have to make a report like dis





CODE  NAME  JAN  FEB  MARCH  APR  MAY  JUN  JUL  AUG  SEP OCT NOV DIS
 1         KAY      X     X       X         200  300   X      X      X     X      X     X    100



THIS EXAMPLE  OF My REPORT FOR PAYMENT FOR ONE USER IN EVERYMONTH... "x" means the user not paid during that month... i using cross tab already but still it wont happen as i use "if-then-else" to determine the spesific month

if {table.month}= '1' then {table.amnt} else "x" i keep use dis syntax for all 12 month but.. da output will display two boxes first box if the statement is true(which display the amount) second box it display "x".. help me....
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 16 Aug 2012 at 3:16am
Hi
 
If your {table.month} consist of all months then you don't have to write any IF else statements.
 
In cross tab.. Place your {table.month} in columns and place Code / Name on rows and {table.amount} in summarized fileds.
 
This will take care of your desired output. 
 
To print 'X' in place of '0', right click on summariezed fields and go in Format Field--Common Tab--Display String --Formula Editor and give the following formula :
 
IF currentfieldvalue = 0 then Totext(currentfieldvalue) else 'X'
 
Thanks,
Sastry
IP IP Logged
alan
Newbie
Newbie


Joined: 15 Aug 2012
Location: Malaysia
Online Status: Offline
Posts: 4
Quote alan Replybullet Posted: 16 Aug 2012 at 4:49pm
hey sastry it wont give da output as what i wanted... it display da same output for dat 12 month.... maybe it doesnt detect on which month  dat da user make a payment... did u have any idea how the logic code where when u ser pay at certain month it display da payment on dat month only... else "0"

IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 17 Aug 2012 at 3:37am
Hi
 
Is it possible to send the report with saved data to sastrydsvs@gmail.com
 
Thanks,
Sastry
IP IP Logged
alan
Newbie
Newbie


Joined: 15 Aug 2012
Location: Malaysia
Online Status: Offline
Posts: 4
Quote alan Replybullet Posted: 26 Aug 2012 at 3:40pm
hey i already gave u da email.... sorry if i's for u to understand.... really appreciate ur help
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.012 seconds.