When minutes total less than '10' how do I display a '0' in front of the number

Post Author: Kara
CA Forum: Formula
Hi,
I am using v9. I have written a report that has formulas in it to add two times together giving the total in HH:MM. However, I can't get the total to display correctly if the number of minutes is less than 10. For example: 12 hrs 8 mins is displaying as 12:8 rather than 12:08. My formulas are as follows:
(Maximum ({JOURNAL.PANELLOCALTZDT}, {Person.PersonID})-Minimum ({JOURNAL.PANELLOCALTZDT}, {Person.PersonID}))*24
Truncate ({@Hours Worked})
Remainder ({@Hours Worked},1 )*60
I have tried using format editor to change the way it displays but this didn't work so I guess there must be something I can change in the formula...
Anyone got any ideas?

Post Author: synapsevampire
CA Forum: Formula
The trick is to use totext({@yourformula},"00")
Check this out:
whileprintingrecords;numberVar dur := datediff("s",{Orders.Order Date}, currentdate); //get the seconds between 2 datesnumberVar hrs;numberVar min;numberVar sec;stringVar hhmmss;hrs := Truncate(Truncate(dur/60)/60);min := Remainder(Truncate(dur/60),60);sec := Remainder(dur,60);hhmmss := totext(hrs,"00") + ":" + totext(min,"00") + ":" + totext(sec,"00");hhmmss

Similar Messages

  • Ipad usage totals less than apps - how to find

    My 16GB 3 says 12GB used but apps only total 5GB. I can not download an SD movie without deleting something, but where are those other 7GB hiding? I am traveling and not near my iMAC.

    If you don't have cameras on the iPad then it's the first gen iPad, if it does have cameras then it's a 2 or 3 - if you put the serial number (Settings > General > About > Version) in this page, then it should tell what iPad that you have

  • How can i set auto-lock to something longer than 5 minutes but less than never?

    i'd like to set the auto-lock feature to more than 5 minutes but less than never.

    That is not an option in Settings. Why would you want the screen to stay on that much longer? All it will do is contribute to shorter battery life and the chance that if your device is stolen that someone would be able to access your data.

  • Why can't I open iTunes or apps on ipad1? And why do apple not support the latest update for ipad1 when it's less than 2 years old. I am sick of huge corporations ripping off joe public!

    Why can't I open iTunes or apps on ipad1? And why do apple not support the latest update for ipad1 when it's less than 2 years old. I am sick of huge corporations ripping off joe public!

    And the processor limitations.
    iPad: RAM - 256MB, Processor - 1 GHz Apple A4
    iPad 2: RAM - 512MB, Processor - 1GHz dual-core Apple A5
    iPad 3: RAM 1024MB, Processor - 1GHz dual-core Apple A5X
    Similarily, the iPad 2 did not get Siri and some other features in iOS 6.
     Cheers, Tom

  • Chart Lines Dissapearing When Line Width Less than .38pt

    I have a Line Chart with about 70 different series. As you can imagine, it gets pretty crowded. In SQL server 2005, I was able to set the line width to .25pt, but when I try to do the same in 2012, the lines disappear! The smallest line width that I can
    get to show up is .38.....If anyone out there knows why this happens, I would really appreciate a hint. I've tried everything from messing with the markers to the empty point settings...
    Thanks

    Hi Scott,
    I am able to reproduce your scenario that when the line width with less than or equal to 0.375pt, they will all disappear in the line chart in my test environment. Based on my research, it seems to be the particular render extensions which cannot display
    the narrow lines in line chart. However, if we export the report into PDF, the all lines which narrow than 0.375pt will appear in the report. I think this is by design.
    I would suggest you submitting a wish at
    https://connect.microsoft.com/SQLServer/Feedback. 
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How can I display all of my bookmarks along the left side of my browser window like earlier versions of Firefox?

    I like the bookmarks on the left side of the screen. I don't want to be navigating through a tree of all of my various bookmarks. How can I display all of my bookmarks along the left side of my browser window like earlier versions of Firefox?

    View > Sidebar > Bookmarks (Ctrl+B)
    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
    *https://support.mozilla.com/kb/how-do-i-use-bookmarks

  • How do you get your content in front of the right people?

    "Outbound Content Marketer of the Year, Joe Chernov (VP of content at HubSpot) told me: Marketers always ask me how to make more or better content, and it’s almost always the wrong question. The right question is: “How do I get my content in front of the right people?” - Forrester's Ryan Skinner
    Forrester published a very interesting report in October called "Put Distribution at the Heart of Content Marketing" (here's the related Forrester blog post). My VP shared the report with me and asked me to review and research a key content distribution strategy potentially leveraging the key technologies that are listed in the report. These technologies focus on helping identify influencers, publish content on targeted media properties and publish content if it ranks highly. I have to admit, this is somewhat new territory for me - I've yet to really focus on content distribution strategies across the entire buyer/customer lifecycle and although I've used one or two of these technologies personally, others I've only heard of and some I just flat-out had to Google.
    In true intrapreneurial spirit, I starting working through the research phase - I'm actually still working through it - and as I do, I can't help but to start mentally creating a blueprint of sorts... Imagining our technology roadmap interwoven with a content distribution strategy to create and drive a valuable buyer/customer experience (to acquire, keep and grow, of course). Ideally, we'd be able to accomplish all of the above points to significantly - and intelligently - extend our reach moving forward. So, back to the the Forrester report... To help more holistically drive content distribution, Forrester recommends creating a "distribution boss" and linking that person to content creation. I like it. To even further boost success of content marketing initiatives, Forrester suggests: (and I'm paraphrasing liberally here):
    1. Your distribution boss needs to be a left-brained analyst with a right-brained way with words
    2. Borrow some $$ from your content creation budget for some content promotion
    3. Encourage a BFF relationship between your PR and media teams and your content marketing teams
    Bottom (or should I say "top") line? I'm looking forward to our organization developing a more scientific content distribution strategy in 2014. Can I get an "amen!"? So, what are you and your teams doing to take a more scientific approach to content distribution in 2014? Or what are you currently doing? I look forward to Topliners feedback!
    Cheers!
    Kristin
    P.S. Technologies currently under review:
    - Include your influencers in a distribution strategy: Little Bird, Klout, PeerIndex
    - Look to specific vendors to push content on publisher’s sites: Outbrain, Sharethrough, Taboola
    - Identify social content winners and invest to amplify reach on the networks that work: SimpleReach
    - Keep an eye on emerging technologies for content visibility and distribution: TrendSpottr
    - Others: Parse.ly
    CC: marilyncox

    Alessia,
    I agree! In our current blog consolidation project, we're implementing Google Authorship for all our bloggers and we're currently evaluating how to best leverage Deltek's Google+ channel w/in our content strategy. Our PR/Social Director is not a fan - I'm working on, I mean with, her to see the possibilities.

  • When I try to FaceTime on my ipad it says face time failed please check the number but it says this on every number

    When I try to FaceTime on my ipad it says face time failed please check the number but it says this on every number and I know thier correct

    Read this
    http://support.apple.com/kb/TS5419
    As of april 16 every device that uses facetime must be updated to acertain level or it won't work. And the 'catch' is that it applies to your device and the person you're calling.

  • Warning Message  in Sales Order when Sales price  less than Cost Price

    HI
    Generally when we raise a sales order if Sales price is less than that of Cost price , System will provide us a warning message inside the sales order screen.  Now , this is not coming.  Is there any settings in the configuration to get this warnin message. Please help us on the above
    Regards
    Anis

    There is no configuration is available for this from functional side.
    Try with User Exit MV45AFZZ , for this Co ordinate with your ABAPer.
    Regards,
    Ramesh

  • When btree_space is less than used_space

    Hi all,
    Can anybody let me know on what condition btree_space is less than used_space in Oracle 9.2.0.8
    SQL> SELECT HEIGHT,BLOCKS,BTREE_SPACE, USED_SPACE, PCT_USED,DEL_LF_ROWS,BR_ROWS
    FROM INDEX_STATS;
        HEIGHT     BLOCKS BTREE_SPACE USED_SPACE   PCT_USED DEL_LF_ROWS    BR_ROWS
             3       1024     5425220    6146870        114         571        928

    user13389425 wrote:
    Can anybody let me know on what condition btree_space is less than used_space in Oracle 9.2.0.8
    SQL> SELECT HEIGHT,BLOCKS,BTREE_SPACE, USED_SPACE, PCT_USED,DEL_LF_ROWS,BR_ROWS
    FROM INDEX_STATS;
    HEIGHT     BLOCKS BTREE_SPACE USED_SPACE   PCT_USED DEL_LF_ROWS    BR_ROWS
    3       1024     5425220    6146870        114         571        928
    This may be the effect of a concurrency issue on the index that has resulted in a rapid growth in the number of ITL entries in some of your index leaf blocks.
    The USED_SPACE is a measure of the actual size of the data in the index; the btree_space is Oracle's estimate of the available space in the index on the assumption that the size of the largest ITL is the size of every ITL in the index.
    Your br_rows figure shows that you have about 930 leaf blocks, which as 8KB per leaf block and INITRANS of 10 should give you a bree_space of about 7M, but your btree space is only about 5.2 MB, which suggests that Oracle has seen some ITLs with about 80 entries.
    Oracle has a defect in its leaf node split algorithm that can make the ITL to grow much bigger than it needs to be. Because you are running 9.2 you can work around this problem by setting maxtrans on the index to a reasonable value - since you've decided to set initrans to 10, then setting maxtrans to a slightly larger value (and living with a few TX mode 4 waits) is probably sensible. Unfortunately 10g ignores maxtrans.
    There's a series of articles about this on my blog - the first one is at http://jonathanlewis.wordpress.com/2009/07/20/index-quiz-1/ and the catalogue to the series is at http://jonathanlewis.wordpress.com/2009/09/19/index-itls/
    Regards
    Jonathan Lewis

  • I have had bad luck lately I lost my computer to water cant be fixed and now my IPOD has been stolen when I get a new one how can I get my I tunes,games on the new one without my computer or old I pod

    I have had bad luck with electronics lately my computer got lost to water and cant be fixed now my Ipod has been stolen I reported it to Apple but now I need to know when I get a new one how can I get back my music and games etc. if I can get it just with my account

    What kind of iPod are you getting to replace it? If it is an iPod Touch, and you are in the US, after you set up the Touch you can use the iCloud beta and download your previous music, books and app purchases directly to your Touch.

  • In alv , how can i  display message like 'NO records in the table'in spool

    When there are no any records , i have to display a message in spool like 'No records exist'.
    how can i do this?/
    Thanks,
    Suresh.

    hi check this..
    if the final internal table is empty then you will show like this..
    if not it_final[] is initial.
    call function reuse_alv_list_display.
    elseif.
    message s000 with 'no data available for the selection'.
    endif..
    regards,
    venkat

  • How to put display on screensaver while still using the beamer?

    How can i put my display on screensaver while still using the beamer?
    My beamer can be on for a long time, i would like to use my screensaver at the same time, but then the beamer screen also goes to screensaver.
    Is there a way to use just the beamer screen, while the computer screen is on screensaver?
    I use a macbook pro with Mavericks.
    Thanks in advance - Daan

    What you can do is hiding the tabs (see pic below) and force the active tab programmaticily
    Hope this helps
    Message Edité par TiTou le 09-20-2006 10:35 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏151 KB

  • How to use counters of PCI 6251 to count the number of pulses

    Hello,
    I have inputs from an optical encoder {pulse train} and i need to count the number of pulses for a short period of time to estimate the speed of the DC motor. Could you please tell me how to use the counters in PCI 6251 DAQ. I found something on DAQ STC, whichs says the input pulse should be connected to PF0 {ctr source}, but i have query where do i get the output {number of pulses counted in a particular period of time}.
    Looking for your reply.
    Thanks & Regards,
    bsnr

    Hi bsnr,
    Thanks for the post!
    In MAX (Measurement and Automation Explorer), if you find the device (DAQmx devices) and right-click, you can select pinouts - which should contain a table telling you which pins are what PFI lines.
    Then, in labVIEW, you need to generate some code to use the choosen coutner in a task to count digital edges. If your not sure on this, go to Help>>Find Examples>>Hardware I/O>>DAQmx>>Counters.. and take a look at some of the code provide.
    ps. It seems (maybe just your wording), but your expecting the counter output pin to provide the number of counted edges - this isn't the case.  
    Please let me know what you think?
    Kind Regards, 
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Recently a course was hidden from iTunes U because less than 75% of material available.  I checked and all of the apps and information is available. How do I fix this?

    I checked all of the apps and materials and they are available to download from the app store or the course.  How do I get this course added back into our iTunes U site?
    Thanks,
    Nancy

    Nancy;
    To "Unhide" a Collection, you can highlight the hidden Collection and choose "Unhide" from the Collections Page menu (see attached). 
    Hope this helps...
    Syd Rodocker
    SRVideo Media Design
    Apple iTunes U Administrator
    Tennessee's Electronic Learning Center

Maybe you are looking for

  • Feature Request: Advanced Star Rating

    Is anyone else really interested in advancing star rating? I rate all of my songs whenever I can. I wish every playlist had the ability to play higher rated songs more often. Not just smart lists. I have an idea tho as well that would be great. It sh

  • Help needed in Export to Excel

    Hi All, I needed some clarifications/suggestions on using the export to excel. 1) When I click on export to excel, a <div> tag also gets exported. I came to know that this is becuse of selecting the "Enable Partail Page Refresh" to Yes. Now, I have p

  • X48c User with Freezing Problem! Please Help!

    Hi Guys, I just recently built my new pc with the new x48c platinum motherboard. It worked fine for about....3 days, then it just started to freeze on me.   And its happening all the time! Mouse, keyboard, sound....everything just locks up! So i have

  • Session logoff with new target url using BSP_MODEL template

    Hi, I implemented the session management pages as used in ITSM. However I had some problems when calling the application in a popup (somehow the deletion of the session appears also after the 2nd start of the app deleting all my created models) So I

  • Backing up pics adobe photoshop album starter 2.0

    Can someone please educate me on how to backup my pictures on a memory stick from my adobe photoshop album 2.0 starter edition - there does not seem to be an export option Thank you in advance