Is it possible to use a DateDiff formula within a single field?

Post Author: EarthMover
CA Forum: Formula
I have a field that lists transaction times for the signing on and off of maintenance tickets.
My problem is that since both the sign-on and the sign-off are in the same field, I don't have the
option of using the DateDiff formula like I normally would ex: DateDiff ("Interval",startDatetime, endDateTime).
Because the start-date and end-date are in the same field, the formula returns no value.  To combat this
I believe that an IF/THEN/ELSE statement would work, if I made one for the start-date and one for the end-date.
My transaction field is using a DateTime format ex: 10/28/2007  11:58:07.  I tried making the IF portion of the statement
dependant on another field that tells me if they've signed off or on ex: ACDN or ACUP, both of these are examples of someone
signing on to a ticket,  and signing off of a ticket results in: COMP.  Based on this information I believe it should be possible to create
a conditional statement to return to the information I require. I've attached an example of what I see, at the bottom.
I've only been using Crystal for a couple of weeks now, so I'm still learning, any help would be greatly appreciated.
PROBLEM DESC TEXT    COND   TRANSACTION TIME
NEED RAILING FIXED       ACUP    10/25/2007   12:43:16AM
NEED RAILING FIXED       COMP   10/25/2007   2:35:22PM

Post Author: yangster
CA Forum: Formula
well this is what i can think of off the top of my head to deal with your problemyou are going to need create a variable for both begin and end date and this will have to be evaluated at the group footer levelHere is the sample data i will be working withID     Condition  TimeABC  ACUP     10/25/2007ABC  COMP    10/26/2007DEF  ACUP      10/25/2007DEF  COMP     10/27/2007create a group on the unique id, this will seperate ABC from DEFnext create the formulas to strip out the begin and end dates@begin_date_init (place in group id header)whileprintingrecords;datetimevar begin_date := datetime(0000, 00, 00, 00, 00, 00)@begin_date_eval (place in detail section)whileprintingrecords;datetimevar begin_date;if left(condition, 2) = "AC" then begin_date := time@begin_date_display (place in group id footer)whileprintingrecords;datetimevar begin_date;begin_date;the end date is identical except the if statement will be if condition = COMP then end_date := timeafter you've dropped these formulas in their appropriate places in the reportsupress the detail and group header sectionsyou will see that you will see something along the lines ofABC  10/25/2007  10/26/2007DEF  10/25/2007   10/27/2007so its just a matter of creating a simple formula to calculate the diff between your 2 variables@date_diffdatediff("d", @begin_date_display, @end_date_display)this should do what you are trying to do, the layout may be different then you have pictured so you can play with it but its a starting pointswell i'm off to whistler for some R&R if this doesn't work i'm sure someone else here can try to help you figure out something that works

Similar Messages

  • Using An Array Formula within a Pivot Table

    Hello Everyone!
    I've discovered a problem with using the Pivot Table. I wish to add this array formula for Counting Distinct names into a Pivot Table, but within Power Query for Excel 2013, it won't allow me to add an array formula. I need to use slicers for filtering city
    names which I'm not able to with this new restriction. 
    For example, suppose I wish to get (using a slicer) a distinct count of city names in a particular year using the year slicer. I cannot do this as I am not allowed to use array formulas within the Pivot Table which contains names of cities according to years.
    If I use the array formula for counting distinct city names outside the Pivot Table, then I won't be able to use the year slicer in order to get a distinct count of names of cities.
    Is there a way around this problem and how may I be able to resolve it ??
    Appreciate your help. Thanks.
    The problem with being punctual is, there's nobody there to appreciate it !!!

    Hello Everyone!
    I've discovered a problem with using a Pivot Table. I wish to add an array formula for Counting Distinct names into a Pivot Table, but within Power Query for Excel 2013, it won't allow me to add an array formula. I need to use slicers for filtering city names
    which I'm not able to with this new restriction. 
    For example, suppose I wish to get (using a slicer) a distinct count of city names in a particular year using the year slicer. I cannot do this as I am not allowed to use array formulas within the Pivot Table which contains names of cities according to years.
    If I use the array formula for counting distinct city names outside the Pivot Table, then I won't be able to use the year slicer in order to get a distinct count of names of cities.
    Is there a way around this problem and how may I be able to resolve it ??
    Appreciate your help. Thanks.
    The problem with being punctual is, there's nobody there to appreciate it !!!

  • Is it possible to use multiple macs/iphones/ipads with single apple tv for an exhibition?

    Hellow everyone,
    Wondering if some genius out there can help me come up with a solution, or whether this is just too pie in the sky!!
    So, I'm exhibiting at a huge conference at the end of the month and want the following set up:
    MacBook Pro Retina showing a video loop through AirPlay Mirroring
    MacBook Pro showing exmaples of my work in safari photoshop etc through AirPlay Mirroring
    iPhone (4s with iOS7) to show examples of my work in safari through AirPlay Mirroring
    iPad (iPad 2 with iOS7) to show examples of my work in safair through AirPlay Mirroring
    So, basically I want the video loop to play constantly and act as a screensaver almost, then when the sitution dictates I can quickly switch what is being shown on the AppleTV to whichever device I am at.
    As an example, the video loop is happily playing. Someone comes up to me and wants to talk about responsive web design. I whip out my iPad and load up an example site in safari. if I turn on my AirPlay Mirroring, great the AppleTV will update and show what is on my iPad. Great, but what about when I've finished with this person. I turn AirPlay Mirroring off on my iPad and the ApplTV goes back to the main menu because it has kicked out my MacBook Pro. Imagine this scenairo happening time and itme again.
    The question is, is there anyway of making some kind of heirachy where my MacBook Pro with the video is the default source, then the Apple switches depending on what is selected, then reverts back to the MacBook Pro??
    Or, is there a neat little app that I can run from another iphone (almost using is as a remote) to select which source the Apple TV shows and all the devices are constantly running AirDisplay?
    Possibly asking a bit too much here, but it would be amazing if I could get some form of solution that allows me to use minimum wires and no fidly changing channels on the tv with a remote!!
    Many thanks in advance!
    David

    take have to take turns
    and you have to disable one and enable the other manually

  • Is it possible to use a Shared Variable within a Chart?

    I have a shared variable between a container report and a subreport called {@ResponseCount}:
    whileprintingrecords;
    shared numbervar Responses:= DistinctCount ({Survey_Response.RecipID})
    I placed the variable in the report footer and the value is passing correctly.  I would like to use this shared value in a chart; however, it is not even listed in the Chart Expert as an available field.  I was placing the chart in Report Footer b.
    I have also tried moving the variable value to the Report Header and placing the chart in the Report Footer, with the same result.
    I tried changing the variable to a global variable, thinking that I was using the incorrect scope, but that passed a zero value instead.
    Any suggestions would be welcome.  Thank you.

    Thank you for the response.  Though I almost gave up on this, I did find a way to access the shared variable after all.  I created a formula that simply called the variable formula.  For this example, I was using a shared variable to pull a value from my container report into my sub report for use in a chart.
    In my container report I created the shared variable {@Get_Responses}:
    whileprintingrecords;
    shared numbervar Responses:= DistinctCount ({Survey_Response.RecipID})
    In my sub report I created the formula to call the above variable {@Fetch_Responses}
    whileprintingrecords;
    shared numbervar Responses;
    Then, again in my sub report, I created a second formula to call the above formula {@ResponsesForChart}
    {@Fetch_Responses}
    This last formula was then available for use in the chart I needed to create.

  • It is possible to use two different accounts with a single Windows PC?

    My wife and I use two personal iPhone 5, with two different appleID. At home we only have a windows 7 PC connected via iCloud with my iPhone 5 and my iPad (with the same appleID). I wish I could also connected the iPhone 5 to my wife, but i can't do it! It is possible? If it is, how should I do? I installed the program iCloud accepts only one appleID...
    Thank you in advance who can help me!

    Setup 2 user accounts on your PC, one for your wife and one for you. Enter the relevant Apple ID into each user user account.

  • Is it possible to use my own email within iCloud

    Hi,
    My primary email account is not my @me.com account (which truth be told I only use to sign into iCloud) but now that I have a desktop computer, iPad and iPhone, I'd like to be able to sync my email across all my devices. Is that possible with iCloud?

    If your other account is IMAP, then their server keeps all your devices in sync - just configure the account on each device/computer.  If using POP, then configure all devices/computers to read emails but keep them on the server.  Then periodically delete them from the server.  (POP for most people is the less preferred account type.)  iCloud doesn't really enter into the equation.

  • Is it possible to use two context nodes in a single table view?

    Hi all,
    I have a window context node which is mapped to a dictionary structure. I have created a second node which contains some texts. I've mapped both nodes with the context  of a view. In this view I have created a table which shows lines of the first node (the one mapped to a dictionary structure). What I want is to show some text from the second node in a column of the table.
    Both of the nodes are populated upon initialization of the window. And they have a 1:1 mapping. (i.e the first line of the second node has some text for the first line of the first node ) . When the table is displayed what I get is the first line of the second node for all the lines of the first node. How can I change that? How can I make the second (text) node show the relevant text of the relevant line?

    HI
    You can make it work by using the logic of populating the node itself with modified values.
    i.e. during the population of the first node populate the text with the text from the second node by looping through its elements
    one by one.
    node 1  -- during its population or may be after its population loop though its elements and modify the value of text
    with the proper value taken from the corresponding value of text from the corresponding element of node 2.
    thanks
    sarbjeet singh

  • Two formulas for a single field in Transfer Rules ?

    Hi friends ,
    I am learning BW  3.5 . I have got a problem could you please solve it ...
    My flatfile:           Empno     Empfirstname       Emplastname
                               1000         rajiv                     gandhi
    Expected Result: Empno     Empfirstname       Emplastname
                               1000         RAJIV                RAJIVGANDHI
    I need to concatenate and Convert it into capital letters for the same field (Emplastname)
    Points will be rewarded
    Thanking You

    Hi,
    then just create a routine in the transfer rules.
    routine for first name.
    result = tran_structure-empfirstname.
    translate result to upper case.
    routine for last name.
    concatenate tran_structure-empfirstname tran_structure-emplastname into result.
    translate result to upper case.
    kind regards
    Siggi

  • Possible to use formulas in chart series data?

    Hello, I need to build chart series from manual values. This is possible but Excel accepts only raw values. When I try to use a calculated value, excel rejects the series format.
    =SERIES("Supply";(Sheet1!$A$97;Sheet1!$H$47);(Sheet3!$B$10;Sheet3!$B$10);4)
    is accepted. I need to adjust it to something like
    =SERIES("Supply";(DATEVALUE("31.12.2014");MAX(Sheet1!A:A;Sheet1!H:H));(Sheet3!$B$10/365;Sheet3!$B$10/365);4)
    this however doesn't fit. Does Excel provide a format for inline evaluating without need to use auxiliary cells?

    It is not possible to evaluate formulas within a Series formula. You can use Names to calculate individual values from formulas, return an array of values or use a dynamic Name to return an array of cells and use Names in Series formulas.
    However for your purposes I don't think even use of Names would help; from your first example your formulas return multiple cell areas (albeit only one cell in each area) and your second example aims to return an array with each formulas calculating each
    element, you'd need a Name of Names which I don't think would work.
    Even if you could do it the way you want I think it would be a bad approach. Why not make use of cells, there's no shortage of them and it would make things much easier for maintenance.
     

  • Using a formula to fill a field

    Post Author: dura13
    CA Forum: Formula
    Hi
    Is there a means to use a formula to fill a field or add a filled text box.
    I have a report that shows monthly sales for a year and i'm building a EOQ report that has a variable time frame (ie 5mnths, 6mnths,1 mnth, etc) that the user chooses to generate the EOQ numbers. I want to fill the monthly totals for the timeframe selected so they are highlighted and easier to distinguish on the report.
    I've grouped the data by product and total sales for each month using whileprintingrecords. In this while printing records i'd like to fill or create a text box around the monthly total if the monthly timeframe is equal to or less than this month.
    Is this possible?

    Post Author: dura13
    CA Forum: Formula
    I finally found the solution to this. It so much easier figuring out logic than the fancy bells and whistles to make the report work.
    I used the format field and entered my formula into the background formula area.
    I prompt the user for the number of months to go back to determine the avg monthly sales.
    I then use this prompt in each months field :
    IF 1 <= {?months}  *this is the first months total field*
    then
        craqua
    else
       crnocolor
    and repeat for each of the 12 months, using  IF 2 <=, IF 3 <=, etc
    Prob will try to get this to work for the font color as well by printing the font in black if its one of the months included and grey if its not.

  • Moment type characteristic inobject used as a formula(101+511-512-101  )

    Hi All,
    Moment type characteristic inobject used as a formula
    My requirement is movement type used as a formula
    Movement types =  101+511-512-101  how  it is used ,
    Isnu2019t possible. Please give me solution.
    Thanks

    Sorry, your case is not clear at all : can you re-explain ?

  • Count the number of cells used in a formula

    Is it possible to count the number of cells used in a formula?
    For example the following formula: "=Tabel 1 :: D45+D8+F7"
    The answer needed is 3

    From your description, it appears you could use SUMIF to get the totals.
    It's not necessary to know the number of times a name appears in the list to determine the sum of the numbers in the cell to the right, but if you have a separate need for that count, then COUNTIF will do the job.
    As the names may appear in more than one column, you'll need to use one iteration of the formula for each pair of columns containing name and associated number. In your description, there are names in columns C and E, with associated values in D and F respectively, and all of these cells are in the same table (which I'll name Table 1). I would calculate the totals on a second table (Table 2) containing a list of all of the names in column A, starting at A2, the COUNT of times each name is listed in column B, and the sum of the values in cells immeditely to the right of each name in column C.
    Table 2::B2: =SUM(COUNTIF(Table 1::C,A),COUNTIF(Table 1::E,A))
    Table 2::C2: =SUM(SUMIF(Table 1 :: C,A,Table 1 :: D),SUMIF(Table 1 :: E,A,Table 1 :: F))
    Select cells B2 and C2, then fill the formulas down each column.
    Regards,
    Barry

  • Using Checkboxes In Formulas

    I'm wondering if it is at all possible to use the data from a checkbox within a formula. What I have done is I have setup a table for my bill payments for each month. I have a checkbox whether I've paid it off or not. I have a total paid cell and I'd like it to reflect the new amounts when I've checked or unchecked a checkbox. I haven't found a way how and Numbers Help isn't as helpful as one would hope.
    Can anyone help me with this? Thanks.

    Here are some other ways to use the checkboxes:
    A checked box = TRUE, an unchecked box = False. The bottom shows how the same type of data can be presented in different ways.
    Regards,

  • Is it possible to use wildcards to match cell contents in an if statement?

    I need to return a ID along with some other information on a page by page basis, so that the information comes out linked by position.  I use a couple of loops and if statements to navigate through the document.  I am able to use exact matches of cell contents which is fine when the contents doesn't vary.  But the IDs, though they have a similar pattern, are all different. In a menu driven search, I am able to find what I need with '150^9^9^9^9^9-^9^9^9' But when I try putting this (or any number of [0-9], *, ? combinations) it fails.  Is it possible to use wildcards?  The symbol used for the match (==) makes me suspect that it is not possible and that only literal, exact matches will work.  But I wanted to check with the experts before giving up.
    Thanks
    pcbaz

    Thanks for the input.  You're right, a GREP search is much more efficient.  But what I'm trying to do and the circumstances here don't allow me, I think,  to go that route. I am trying to generate a list of values coming from several textframes on a single page and have them come out so that I can tell which values belong together.
    I'm using an inherited document with masters that were created 'manually';  the index numbering for textframes and tables is random. I navigate through the pages, looping through textframe indices asking ' does this textframe exist?' If so, I ask if it is a table -- if no, it is a simple textframe and I ask about the ID, if yes, I ask if the contents of cell (0,0) (invariant position and contents) are equal to the table I want..  I am sending the ID and other pieces of information from the table to one row of a new table on a new page.  So the ID and other information from a single page are linked by being in the same row.
    I know this a little 'off-normal' -- I'm using the search to navigate through the document and find things by location the way you do with a spreadsheet.  I have devised a work-around that helps me get around the fact that the ID is not invariant.  I create a list of the (exact) IDs from another document, equating them to a variable ('a').  I then loop through the list of IDs and ask if the contents of the textframe is equal to 'a'..This works o.k, unless there happens to be an extra space, a different kind of hyphen, etc. It would be so much easier if I could use the wildcards that work in a menu-driven text or GREP search in script just to ask about the contents of the textframe.
    Thanks again
    pcbaz (Peter BIerly)
    P.S. we have since rewritten the masters so this problem will not exist in the future -- we now know exactly which textframe and/or table indices to refer to to get any particular bits of information and don't need to ask questions about the contents.

  • Is it possible to use a cable with two headphone jacks on either end and an electric guitar adapter to record in Garageband?

    Hey everyone,
    I got my Macbook Air (Mid 2013 model) last month and I want to record my acoustic-electric guitar on Garageband (which came with the Air). 
    I don't want to buy a guitar that has a USB. I have a cable with a 3.5 mm headphone jack on both ends like the one pictured here on this website http://www.bestdealaz.com/item.php?id=628 (i didn't buy it from this site though).
    I connected a 6.3 mm guitar adapter (http://www.ebay.com/bhp/headphone-guitar-adapter) to this cable. Then I connected one end of the cable to my guitar and the other end to the Headphone/Microphone jack on the left side of the MBA.
    I saw how other people were saying to go to System Preferences / Sound and then change audio output to audio input.
    I can't do that. I tried.
    Please help!
    Thank you.

    Hello Massimo Pascucci,
    The issue that you are facing when creating an endpoint with internal loadbalancer is the limitation of not allowing same ports to be listening under a single cloud service. This reason for this is that there is a limitation of only one private IP (Also
    known as the Internal load balanced IP) per cloud service.
    There is also a limitation on the Internal load balancer more than one port to be published per load balancer:
    You can leave your feedback by following the link below:
    https://social.msdn.microsoft.com/Forums/en-US/1805c5a0-3906-4cd6-8561-9802d77e0ae5/is-it-possible-to-use-both-an-ilb-and-an-elb-listening-on-the-same-port-in-the-same-azure-cloud?forum=WAVirtualMachinesVirtualNetwork
    Refer to this article for more information on Internal load balancer:
    http://azure.microsoft.com/blog/2014/05/20/internal-load-balancing/
    Thanks,
    Syed Irfan Hussain

Maybe you are looking for

  • Logic 9.1.7 download. Re-install

    This is probably a stupid newbie question. I'm new to my Mac (lion) and new to Logic 9.1.7 I bought Logic as a download and I don't know where the file is to re-install after a system failure? I know I can use Time Machine but I would sleep easier if

  • Problems in creation of workbook using Change query local view.

    Hi Experts, I have created a Multiprovider by using union of two infocubes and created a Query based on Multiprovider.  I want to restrict one infocube in Change Query local view for creating new workbooks.  In Query global view we drag and drop the

  • Exception at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.getB64StrPr

    WHEN ERROR OCCURS:- This problem never occured earlier but since the last few days this problem is occuring on my Windows XP System (Version 2002 Service Pack 2). CLASSPATH includes bcprov-jdk14-134.jar and bcmail-jdk14-134.jar. At this statement....

  • Import Button for Home Share Missing

    iTunes 11.0.4.4 Windows 7 Pro 64 bit SP1 iTunes: How to move your music to a new computer http://support.apple.com/kb/HT4527 "11. Select the content in the Home Share that you want to transfer to your iTunes library on your new computer, or choose Ed

  • Memory usage/freeze/crash modifying multiple objects

    I'm getting Labview hanging issues when I try to modify front panel objects while editing (not running).  It seems to be a general problem but this is the current scenario.  Many charts on my front panel (over thirty), so I multiple select, and RClic