Crosstab showing 0 and 2.3 percent

I am using Crosstab to calculate my working days and jobs. The report displays the information fine however, right on top of the Crosstab it shows
0 - 2.34%
I am wondering what is this and why is it showing 0 and if it is showing 0 then 0 / 23007 should be 0% and not 2.34%.
Where is this percentage coming from I have no idea and why is that 0 coming up I have no clue either.
Here is the layout of the report
Days - Jobs - Percentage
            0        2.34%
1          6958  23.94%
2          6231  26.45%
Total - 23007 -  100%
here is the code used:
WhileprintingRecords;
Local DateVar Start := {order_header.date_entered};   // Starting Date
Local DateVar End := {order_header.act_despatch};  // Ending Date
Local NumberVar Weeks; // Number of weeks
Local NumberVar Days; // Number of days
Local Numbervar Hol:=0; //Number of holidays
Shared DateVar Array Holidays; // Bank holidays dates array
Weeks:=(Truncate(End - dayofweek(End) + 1 - (Start - dayofweek(Start) + 1))/7)*5;
Days:=DayOfWeek(end) - Dayofweek(Start) + 1
+ (if dayofweek(start) = 1 then -1 else 0) //adjust for starting on sunday:
+(if dayofweek(end) = 7 then -1 else 0); //adjust for ending on a saturday:
//Check for bank holidays
Local NumberVar i;
For i := 1 to Count (Holidays)
do (if DayOfWeek (Holidays<i>) in 2 to 6 and
Holidays<i> in Start to End then Hol:=Hol+1 );
Weeks + Days - Hol;
Can someone please help me to identify this problem, i suspect it is coming because I have put in
Days:=DayOfWeek(end) - Dayofweek(Start) + 1
+ (if dayofweek(start) = 1 then -1 else 0) //adjust for starting on sunday:
+(if dayofweek(end) = 7 then -1 else 0); //adjust for ending on a saturday:
however not sure.
Please help
many thanks
Kind Regards
Jehanzeb

Morning Vitaly,
Thanks for your quick reply. I didn't do any fancy coding on Crosstab.
I created the formula which is shown above post,and then put the Crosstab in the Report Footer.
In the row section of Crosstab I put in the Formula (NumofDays) and in Summarize field I entered the same formula but with Count. Underneath it I added another Count but with Percentage.
That is all I did.
Strange thing is that when I do the same percentage for specific customer it works out fine with no 0 - % whereas when I take a whole month like for example 01/06/2008 - 30/06/2008 it shows 0 with 2.34% next to it. The Day 1 comes under with 6958 Jobs and 29.53%.
The crosstab is calculating the percentage from Total Jobs shipped i.e. 23008. That is what I am getting.
I am not sure why 0 is poping up with that percentage.
here is the screenshot
[http://i46.photobucket.com/albums/f115/jaytheguru/Report0Percentshowing.jpg]
Regards
Jehanzeb
Edited by: Jehanzeb Navid on Jul 29, 2008 9:33 AM
I think I know the problem however, I don't know how to correct this.
When an order is placed obvious reasons the Dispatch date will be set to null as we don't know when it will be shipped.
I think there is a option in the report section where it says Convert null values to 0. Something like this I read it somewhere and I am wondering if that option is enabled.
Do you know where I can find that option?

Similar Messages

  • How to avoid crosstab - Show number of days according to groups

    Morning all,
    I think you all would agree with me that even having crosstab as a great tool in Crystal 2008, there are still quite allot of limitations to it.
    I have created a report using crosstab which shows number of days and jobs according to those days grouped by account number, product code, sales area. This report is working fine until my director asked me to further group those days according to sub categories of lenses.
    For example
    Crosstab shows
    Number of days - Day 1,day 2, day 3
    Number of jobs - 111----123--1213
    Percentage - -
    12%---34% 60%
    Now if you look at the example it says day 1, 111 jobs went out. What the director would like to see is those jobs being sub divided into types of lenses.
    So out of 111 jobs, 25 would be Finished lenses, 30 could be uncut lenses and so on.
    The new report should be like this
    Number of days -
    Day1---Day2---Day3
    Number of Jobs:-
    Finished -
    25--34-----23
    Uncut--3045-----23
    AR--7056-----76
    Total----125135----122
    Percentage:-
    Finished -
    25%--34%-----23%
    Uncut--30%45%-----23%
    AR--70%56%-----76%
    Total----100%100%----100%
    Now if we look at the above criteria it seems that I have to use groups even further down the report where I am using crosstab at the moment. This means I have to get rid of the crosstab and run a report manually.
    However the big question is, how to get the report calculating number of days and jobs according to customer account number, product code and sales area manually?
    I tried the following formula but this requires to write way too many formulas, for example some of the jobs have taken more than 60 days and if i use this formula I have to write 60 formulas for number of days which is not feasable.
    **//provided by IIbas in another forum**
    whileprintingrecords;
    numbervar day0;
    numbervar day1;
    numbervar day2;
    if {@workingdays} = 0 then
    day0 := day0 + 1 else
    if {@workingdays} = 1 then
    day1 := day1 + 1 else
    if {@workingdays} = 2 then
    day2 := day2 + 1 else //up to the maximum number of days.
    Then in the report footer, reference the days in separate formulas, and identify them with text boxes, e.g.,
    //{@day0};
    whileprintingrecords;
    numbervar day0;
    I can sort out the Finished, uncut,AR by grouping them however I am wondering how to create a manual running total of jobs complying with number of days without using crosstab.
    Any ideas?
    Many thanks
    Regards
    Jehanzeb

    no answer closing

  • Can crosstab show multiple objects in top header?

    can crosstab show multiple objects in top header?
    for example, the data showed as :
    customer  city name  city value      product name  product value
        A             Paris          1             food              N
        A             London          2             milk              T
        B             London          3             food              E
        B             Paris          4             milk              M
        C             London          6             food              W
        C             Paris          3             milk              Q
        D             London          1             food              E
        D             Paris          2             milk              R
    i want show these data in crosstab, and customer is the left header, city name and product name are the top header, and city value and product value are measures in the crosstab,
    and i want show the data as below:
         London     Paris     food     milk
    A     2     1     N     T
    B     3     4     E     M
    C     6     3     W     Q
    D     1     2     E     R
    but actually i got below result in crosstab:
         London     food     London     milk     Paris     food     Paris     milk     
    A               2     T     1     N               
    B     3     E                         4     M     
    C     6     W                         3     Q     
    D     1     E                         2     R     
    anyone can help me on this?
    thanks.

    Can you see this image?
    https://weblogs.sdn.sap.com/weblogs/images/252123862/trick2.JPG
    The steps I did to get it were:
    1. Insert a crosstab.  In the first column put this formula
    =[customer]
    2. In the blue row cell do not put the city name directly but this formula:
    ="*London*"
    3. Add 3 columns. In each blue cell (header cells) put this formulas: ="Paris", ="food"
    , ="*milk*"
    4. Now, in the white cells:
    In the first column put this formula:
    =Max([city_value] Where ([city_name]="London"))
    In the second
    =Max([city_value] Where ([city_name]="Paris"))
    In the third column:
    =Max([product value] Where ([product_name]="food"))
    In the fourth column:
    =Max([product value] Where ([product_name]="milk"))
    Sadly this is not dynamic as you can see, but is the only way to achieve what you want to display.
    Otherwise better follow the advice by the other posters.
    Edited by: PadawanGirl on Mar 2, 2011 5:48 PM

  • Remaining duration is showing 0 for incomplet duration percent  activities

    Hi all,
    remaining duration is showing 0 for incompleted duration percent activities.The acitivities having 90 to 95 percent are showing remaining duration 0.
    any solution please i dont want to change duration type to physical
    thanks

    Remaining Duration is showing 0 because you are using 0 Decimals for the "Time Units". If the original duration for the activity is 3 days for example and it is 95% complete, this means the remaining duration for this activity is now 0.15 day. P6 is rounding it up to 0 day. To display the 0.15 day do the following:
    Edit - User Preferences - Time Units Tab - select the (2) decimal for both units, hour and day - go to Dates Tab - select "24 hour" time Format - Close. Then you will notice that the remaining duration is not zero and the time for the finish date is not 17:00 PM as it should be.
    Therefore, in my opinion the best practice is to change the remaining duration to 1 day and not to use 95% complete in this case.

  • How to capture show layer and hide layer event in photoshop through a plugin???

    How to capture show layer and hide layer event in photoshop through a plugin???for mac

    Use the Listener plug-in found in the SDK to see how you can monitor the show/hide layer event. You can also use the Getter plug-in to show what information you can find out about the current state of Photoshop.

  • TS1702 I bought 100 minutes for my daughters pinger ex app. The minutes never showed up and it says "You've already purchased this In-App purchase but it hasn't been downloaded". What do I do? How do I download it??

    I purchased 100 Pinger EX minutes on my daughters ipod, the minutes never showed up  and it says "You've already purchased this In-App Purchase but it hasn't been downloaded". How do I download it????

    -First try contacting the app developer/go to their support site.
    Next contact iTunes
    Apple - Support - iTunes - Contact Us

  • When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id,  I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.

    When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id,  I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.

    Finally got through to tech support and found someone who seemed to know what was going on, he walked me through and using appleid.applesupport got me to a point where i could get a new password for the apple id that kept showing up. 
    I think you were on the right trail and I want to say thanks for your help.  Much appreciated
    ccl43

  • Hey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    ey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    At the bottom of the page Settings > Messages you should have a section headed "SMS/MMS" Turn MMS messaging on then you can turn group message on.

  • Flash installed, but computer doesn't show it and sites don't recognize it

    I have an iMac, running Mac OSX 10.6.8, Safari browser.  Have repeatedly tried to download Flash player over the last month or so - when I do, it seems to download, but then I can't find it on the computer anywhere and when I try to play videos that require Flash player, they don't show up and I see a message to download Flash Player.  So today I looked on the Adobe website and ran the Flash Player uninstaller for my version of OSX, then downloaded the latest Flash Player.  Same problem.  When I go to the page on this site to see if I have Flash Player installed, it shows that I have the latest (11.5.whatever it is today).  When I click on the link, I see the little video.  I've gone down that page - everything is enabled that should be enabled.  But I still can't play videos requiring Flash Player!  The videos simply don't load; there is blank space and a message saying I need to install Adobe Flash Player.  And I still can't find any mention of it on my computer.
    I'm at my wit's end; can you all think of what else I should try?  Thank you very much.
    By the way, I'm having the same problem with my Macbook Pro, running an older version of OSX (maybe 10.4?  Don't have it here in front of me.)  So it is not just this computer with the problem.

    Hi Chris - I can see both videos.  Perhaps it's just Flash Player videos
    embedded in blog posts that I can't see - could that be it?  For example, I
    can't see the embedded video on the following page.  I just see black space
    with purple lettering telling me I need to download Flash Player:
    http://www.breitbart.com/Breitbart-TV/2012/11/16/Pelosi-Displays-Frightening-Lack-of-Knowl eg-on-Amendments-of-the-Constitution.
    Doing a quick search on youtube, I would bet this is the same video (or a
    portion of it), and I can see this on youtube:
    http://www.youtube.com/watch?v=c2SC7yXKFBI.
    Can you tell me where on my computer files I can find the installation of
    Flash Player?  I just don't see it anywhere, yet obviously I've got it
    somehow, since I can see the videos you sent, but then again I can't access
    embedded videos . . . .
    Thanks,
    ~Melanie

  • TS3274 I just synced my old iPad to my new iPad....the apps show "waiting" and I do not know why

    I just synced my old iPad to my new iPad....the apps show "waiting" and I do not know why.  It has been 2 days.  I wiped my old iPad even?

    Connect to iTune; and Check for available download (under Store). When download is completed, sync to iPad.
    http://i1224.photobucket.com/albums/ee374/Diavonex/f5c1b271.jpg

  • When I open a new tab, my pins do not show up, and I cannot find the square with the 9 boxes to turn it on at the top, what do I do

    When I open a new tab, the page is blank, and I cannot view my pins. I tried searching for the box with the 9 squares in it at the top of the screen to turn it back on, but it does not show up. How do I get my pins back?

    Hello,
    First go to '''Tools''' >> '''Options''' >> '''Privacy''' >> '''Firefox will''' change to '''Remember history''', then go to '''about:config''' and search for '''browser.newtab.url''' change its value to '''about:newtab'''.
    *[http://kb.mozillazine.org/About:config about:config]
    Also:
    *[https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites New tab page]

  • Exchange - iPhone still shows deleted and cancelled appointments / meetings

    I have an iPhone set up to correctly sync with Microsoft Exchange, and email and contacts appear to work correctly. The calendar, however, keeps showing appointments and meetings which were deleted, cancelled, or moved in the past. These are typically repeating meetings originally scheduled in Exchange by another person, where I accepted the meeting invite and then the meeting cancellation a while ago.
    I am thinking of deleting the entire calendar and starting over, but somehow I'm not sure this will resolve the issue. Any advice?
    (I have the iPhone set to sync mail, calendar, and contacts to my company's Exchange server).

    Interesting; the turning sync off then back on approach seemed to work. Sort of. I did the following, and it seems to have worked -- for now:
    1. In Microsoft Outlook on my Windows machine, I went and straightened up my schedule, declining any leftover meeting invitations (but not sending a reply) to all the items I wanted off of my schedule.
    2. On my iPhone, went to Settings, then Mail, Contacts, Calendar, then the Exchange account. Calendars was set to "On" and I switched it off". Tapped on "Stop Syncing", and then I confirmed the calendar was erased from my iPhone.
    3. Went back into Settings for the Exchange account, then switched Calendars back to "On". Made sure I had a WiFi/high speed connection active, since I'm on an original iPhone and re-loading my whole calendar over EDGE didn't seem like a good idea.
    Also, not that it makes a difference, I also have my "Mail days to sync" set as far back as it'll go (1 Month).

  • When I put a lost lock on my iPad will it still show notifications and message previews on the Home Screen?

    When I put a lost lock on my iPad will it still show notifications and message previews on the Home Screen?

    What format are these movies in?
    From this article: http://support.apple.com/kb/HT2729
    What video content works with iTunes and mobile devices?
    iTunes:
    Video content purchased from the iTunes Store.
    QuickTime and MPEG-4 movie files that end in ".mov", ".m4v", or ".mp4" and are playable in QuickTime Player.
    Video podcasts.
    iTunes Digital Copies.
    iTunes Store Movie Rentals (Requires iTunes 9 or later).
    B-rock

  • I recently bought a new computer and downloaded itunes but when i try to sync it, someone else's apple i.d. shows up and i don't know the password.  I try to authorize my computer but it still won't let me

    I recently bought a new computer and downloaded itunes onto it.  When i sync my ipod it prompts me to authorize my computer
    with the purchases that i've made, but when i try to do so, my apple i.d. is not what shows up and so my ipod won't sync any of my songs or apps.  I have no idea who's username i'm seeing and i've never seen it before.  That's the only thing that is stopping my ipod to sync, a password that isn't mine!! I am beyond frustrated and don't know what else to do, if someone can please help me i would be so appreciative you have no idea.  Thank you so much

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • I got the new iPhone 5C. In my cellular settings, under "Use cellular data for", it only show passbook and facetime. How can I add other apps? Also, my carrier is AT&T

    I got the new iPhone 5C. In my cellular settings, under "Use cellular data for", it only show passbook and facetime. How can I add other apps? Also, my carrier is AT&amp;T

    Hello Sophie59
    You should be able to see two different tabs when setting up the email if you go to Other > Add Mail Account. Once you enter in the email address and password, you should be at the next screen to provide more details about the email as far as incoming and outgoing servers and at the top there will be a blue section to add it in as a POP or IMAP email account. Check out the article below for further troubleshooting and emails setup options.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    iOS: Adding an email account
    http://support.apple.com/kb/ht4810
    Regards,
    -Norm G.

Maybe you are looking for

  • Full 64-bit Aperture 3 Performance Maxed

    All Macs running Snow Leopard that are Core2Duo or better are capable of full 64-bit, but from reading the threads I would say almost nobody is doing this. Currently, of all Macs on the market now, only the X-Serve boots into full 64 bit mode by defa

  • Can't add songs to iTunes

    One day I noticed that several of my albums in iTunes were missing songs. I searched high and low for them, and sure enough, they are not to be found in iTunes. They are, however, very much on my HD, and they work with WMP, MM, etc. I used mp3checker

  • How to send encrypted data through XI. Pls advice urgent

    Hi All, There is some customer confidental information that I need to send from source system to XI and then to target system. So client wants that data to be encrypted.Source and Target system can be File System or can be wsdl files. Please send me

  • FileMonitor issue for date time stamp change.

    Hi I have an app that runs with a minor issue and I am looking for some insight for a workaround or code change. I have a File Monitor that checks a specific directory every second. Users send a batch run to this directory throughout the day. There a

  • Document attaching to Customer Object link

    Hi all, I have created a document relevant for Sales. In object links i have attached this document to Customer object. Here in the Customer master data (After double clicking the Customer object link in the DIR), Can i attach any document to the Cus