Days Count for 0CALMONTH

Hi SCN,
Is it possible that we can get the number of days for a 0CALMONTH interval variable in WebI?
Planning to use =DaysBetween([Start Date];[End Date])
but is it possible with the 0CALMONTH object.
The user inputs 01.2014 - 02.2014. Variable we are using is 0P_CALMONTH (between from and to). Final output 31 + 28 = 59 days.
Thanks.

Hi Swapnil,
So do we need to do a formula to place a day data for the input OR 0CALMONTH is already enough for us to calculate the days?
Thanks.

Similar Messages

  • Count for each day

    Hi
    I have a query ,it gives total count of month
    select count(*) from w_srvreq_d where status='Closed' and trunc(close_dt)>'01-may-2003' AND trunc(close_dt)<='31-may-2003'
    COUNT(*)
    82
    I want count for each day
    ex
    date count
    1/5/03 1
    2/5/03 2
    31/5/03 12
    Regards
    Mohan

    Hi
    select count(*) from w_srvreq_d where status='Closed' and trunc(close_dt)>'01-may-2003' AND trunc(close_dt)<='31-may-2003'
    COUNT(*)
    82
    My scnerio is want to join w_day_d and w_srvreq_d dimension and populate in to fact table .This below query populate the data in bt_fault_snapshot_f table,But i want count for each day
    date count sr_cat_type_cd x_bt_current_queue
    1/5/03 1 complaint unspecifie
    2/5/03 2 Fault unspecified
    SELECT dlr.sr_cat_type_cd,
    dlr.x_bt_current_queue,dlr.x_bt_line_of_business ,
    day.snapshot_date AS snapshot_date FROM
    ( SELECT w_day_d.day_dt AS snapshot_date
    FROM (SELECT to_date(nvl(max(date_wid),'20030531'),'yyyymmdd')+1
    AS snapshot_date
         FROM bt_fault_snapshot_f) f ,
         w_day_d , (SELECT CASE WHEN to_number(to_char(sysdate,'hh24')) <18 THEN trunc(sysdate - 1)
                        ELSE trunc(sysdate)
                                       END AS lastdate FROM dual) currdate
                                            WHERE w_day_d.day_dt >= f.snapshot_date
                                            AND w_day_d.day_dt <= currdate.lastdate) day
                                                 , ( SELECT DISTINCT sr_cat_type_cd,x_bt_current_queue,x_bt_line_of_business
                                                      FROM w_srvreq_d) dlr
    Regards
    Mrao

  • EXHAUSTED!!! 25 DAYS AND COUNTING FOR INSTALL!

    Well its got to the point where i think ive just about had it with BT im appalled by them now!!!up to now ive been kept well informed as to what's been going on without me having to ring them .Then Last Friday the day that finally i was gonna get my final appointment (the 4th appointment) i was told yet another excuse/reason as to why this wasn't going to happen and that it will take 48 hrs to sort, so tuesday will now be the day i get my appointment, i was then sent a text with a number and to call  if it wasn't sorted by tuesday which is when they were suppose to ring me again with an update but i didn't get the call (the 1ST time)?
    so i called the number i got texted and its the infinity call centre in Dundee well guess what? the problem still persists and that they sent a request but it still hasn't been answered so it could well be another 48 hrs until openreach respond, i asked for a manager to call me back because the person at the call centre was just not bothered atall about my situation and sounded uninterested,well that didn't happen either.
    My MAC code runs out on the 20th that will be a month since i ordered, just over infact!!! i ordered 17th march.And just to add insult to injury my BT account states that the total order was complete on the 7th april(my 3rd appointment date)and they will be taking the 1st month broadband payment off me by DD on the 23rd april. I KNOW ITS HARD TO BELIEVE BUT ITS ALL TRUE!!!
    SO I WARN ANYONE THINKING OF DEALING WITH BT THINK HARD AND LONG???
    days off work,3 engineer appointments,25 days and counting for install,paying for a service i havnt got and uninterested customer services and managers not returning calls.WELCOME TO BT!!!
    WATCHDOG,CISAS,OFFICE OF FAIR TRADING AND THE MAN HIMSELF IAN LIVINGSTON. all getting emails.

    I read through your thread Boostmonkey like you say similar in alot of ways,only i wished id read your thread earlier as i mite have got things done sooner(infact i don't know how i missed it).Ive had some progress today but im not saying anything as im still waitng for some concrete confirmation.
    Good luck with it anyway. let me know how you get on.

  • 1st gen ipod Shuffle not updating play count for songs

    I've noticed since I updated to the iTunes version 7.2.035 that plugging in and updating the library with my iPod shuffle no longer updates the play count for the songs I've listened to. Is there a known fix for this? Anyone else experiencing the same problem with their 1st gen ipod shuffle (512)?

    Well, I have that problem too. My shuffle holds about 125 songs or so, yet I've noticed there are always a good 20 or so songs that won't play, no matter how many times I load them onto the device. I have had that problem since I inherited it from a friend.
    My new problem is that every time I plug my iPod into iTunes, it no longer updates the playcount for songs. In other words, if I load a song that I've heard 3 times, hear it twice during the day, and replug in my iPod at night, it used to update that song's playcount in the library to 5, but now they still read 3. It's also failing to update the "date last played" field.
    I use those to help make sure that I don't load the same songs over and over again by creating a custom playlist that will comb out songs played in the last few days and have a very high play count. Since these are no longer updating, I've noticed that I keep arriving at work only to find my iPod has the same or similar songs as the day before, and dude, if I wanted that, I'd listen to the radio!

  • Count() for each group, but only groups having 1+ element like... AND all elements like...

    There are tables(and columns) like:
    'Clients'(clientID)
    'Houses' (houseID)
    'Visits' (clientID, houseID, visit_date)
    'Contracts'(contractID, houseID, clientID, rentDate_from, rentDate_end)
    I have problem with writing MS SQL query of this kind:
    how many visits to houses did each client, before renting one of them?
    Its easy to count total number of Visits for each client, listing all visits + group by clientID and selecting count(*) for each group.
    Lets say this is select_1, and select_2 is listing all Contracts for all clients.
    Select_1 is not answer, because count must be performed only on groups, which:
    -have at least 1 row "like" row in select_2 (it means that at least one of visited houses was rented, because it can happen that client visited few houses, but rented other, not visited house). my idea for this is comparing select_1 and select_2 with:
    "where s1.clientID=s2.clientID and s1.houseID=s2.houseID"
    -each group must have all rows(visits) with date of same day or earlier than contract date
     maybe: "datediff(day, s1.visit_date, s2.rentDate_from) >= 0"

    In future, please provide proper DML, DDL and example data, like I have for you below.
    DECLARE @clients TABLE (clientID INT, name VARCHAR(20))
    INSERT INTO @clients (clientID, name)
    VALUES (1, 'Jonathan'),(2, 'Christopher'),(3, 'James'),(4, 'Jean-Luc'),(5, 'William')
    DECLARE @houses TABLE (houseID INT, address VARCHAR(20))
    INSERT INTO @houses (houseID, address)
    VALUES (1, 'NX01'),(2, 'NCC 1701'),(3, 'NCC 1071A'),(4, 'NCC 1701D'),(5, 'NCC 1701E')
    DECLARE @visits TABLE (clientID INT, houseID INT, visitDateTime DATETIME)
    INSERT INTO @visits (clientID, houseID, visitDateTime)
    VALUES (1,1,'2001-01-01 12:13:14'),
    (2,2,'2001-01-02 12:13:14'),
    (3,2,'2001-01-01 12:13:14'),(3,3,'2001-01-01 12:13:14'),
    (4,4,'2001-01-01 12:13:14'),(4,5,'2001-01-01 12:13:14'),
    (5,4,'2001-01-01 12:13:14'),(5,5,'2001-01-01 12:13:14')
    DECLARE @contracts TABLE (contractID INT IDENTITY, houseID INT, clientID INT, rentStartDate date, rentEndDate date)
    INSERT INTO @contracts (houseID, clientID, rentStartDate, rentEndDate)
    VALUES (1,1,'2001-01-02',NULL),(2,2,'2001-01-02',NULL),(3,3,'2001-01-02',NULL),(4,4,'2001-01-02',NULL),(5,5,'2001-01-02',NULL)
    SELECT contractID, c.houseID, c.clientID, rentStartDate, rentEndDate, cl.clientID, name, h.houseID, address, COUNT(v.clientID) AS visits
    FROM @contracts c
    LEFT OUTER JOIN @clients cl
    ON c.clientID = cl.clientID
    LEFT OUTER JOIN @houses h
    ON c.houseID = h.houseID
    LEFT OUTER JOIN @visits v
    ON c.clientID = v.clientID
    AND c.rentStartDate >= v.visitDateTime
    GROUP BY contractID, c.houseID, c.clientID, rentStartDate, rentEndDate, cl.clientID, name, h.houseID, address

  • Only records of less than one day allowed for attendance/absence type 1002

    Hi All,
    I am getting an error while maintaining my sick leave absence type
    "Only records of less than one day allowed for attendance/absence type 1002"
    how to resolve this
    SD

    Bcz recently i made a change like this
    For our sick leave
    "First 14 days(1- 2 weeks) Full Salary
    Next 14 days (3- 4 weeks) 75% Salary
    Next 14 days (5- 6 weeks) 50% salary
    Next 28 days (7- 10 Weeks) 25 % Salary
    More than 10 Weeks no Salary"
    so what i did is
    I mantain one Sick leave type and counting rule as -
    seq no 1 for "First 14 days(1- 2 weeks) Full Salary
    seq no 2  for Next 14 days (3- 4 weeks) 75% Salary
    like this for all the conditions
    and in deduction rule I maintained deifferent Absence quotas
    Plz suggest me this solution will work out
    SD

  • Only records of less than one day allowed for attendance/absence type COMP

    Hi Friends
    I configured all the process in IMG for compensatory off
    ie ,Absence types,Attendance Types ,counting rules and assignment
    but when I tried to create attendances on a particular public holiday in PA 30 then the system shows 'Only records of less than one day allowed for attendance/absence type COMP' (Compensatory Off)
    Anyone pls help me to solve this problem
    regards
    Lakshmi

    Hi
    In PA30 which infotype I should maintain  and where I can see the result.
    Eg If the person works on 25/12/2007(public holiday) ,he wants to take compensatory off on the next working day.
    In this case How I can configure
    Pls help
    Regards
    Lakshmi

  • Sync increments play count for songs that haven't played since last sync

    Sometime in the last two months, my iPhone 3G and iTunes started showing a bizarre behavior. I have a smart playlist that only plays songs that have not been played in the last 4 weeks and that have not been played more than a certain number of times (I add 1 to that number after each time it goes through my entire library). I sync the phone every night (because I don't want to lose the recently played data if the iPhone resets for some reason - another irritating bug). Anyway, sometimes when I sync the phone, it increments the play count for songs that were played before the previous sync as well as the songs played since the last sync. This means that those songs are being double counted, even though they were only played once.
    Here's another way to describe the story:
    Day 1: Play 50 songs with play count value X (call this set A). Sync at end of day, now all 50 songs in set A have play count value X+1.
    Day 2: Play 50 more songs with play count X (call this set B). Sync at end of day, now songs in set B have play count X+1, but songs in set A now have play count X+2 (even though they were not played again).
    Day 3: 50 more songs (set C). After sync, songs in set C have play count X+1, those in B have play count X+2, and those in set A have play count X+3.
    It never seems to go more than 3 days back. This is not reliable - in fact, I thought it was fixed after the last iTunes update, but it just happened again.
    One other thing that I notice: whenever this happens, the count shown for the playlist on the iPhone is incorrect. For example, today before the sync, it said I was on song 156 of 271 in my playlist. However, I only played about 50 songs today, and I synced last night, so it restarted the playlist from 1. I don't know when it jumped so much - when I restarted the playlist this morning, it was on 6 of 271 (which was correct).
    The only other thing I think may play into this is when I have my playlist carry overnight (i.e. I start playing it at night after the sync, then come in in the morning and have it pick up where it left off). I am usually pretty good about syncing at the end of every day, but I think that I'm only seeing this behavior when I have this overnight thing going on.
    Anyway, has anyone else seen this behavior? Does anyone have any suggestions? I would not use the play count in my smart playlist, but it's the only way to ensure that random play actually gets through my entire playlist when I'm forced to sync every night (because of the other bug).

    wow, this is messed up! i'm sorry, but i don't have a solution for you, more of a 'work around'. what i have started doing is using the 'genre' field to keep track of the songs i have listened to, and those that i have not.
    i set the genre for all of my songs to be '0'. after syncing, in my iPhone, i go into the 'genre' listing, go into '0', hit 'view all songs' and start playing the first song i have. next, when i sync, i change the 'genre' in all of the songs i've listened to to '1', and after i resync, i can go into my iPhone (using the same method above) and start playing the songs i haven't listened to.
    i know it's a pain, but it's the only workaround i have for this problem. i'm very disappointed in apple and the iPhone because of their lack of awesome playlist support. i had a creative mp3 player that was supremely awesome with playlists. i would add all of my songs to a 'playlist', and be able to listen to a few songs, then go watch a video, and when i went back into the music player, it would remember the last song i was listening to. it wouldn't remember where i was in the song, but the fact that it remembered the song i was listening to made it one of the best devices i've had. i wish that apple would spend some time and make this functionality possible.

  • Javascript anomoly on day count between two dates

    Using ApEx 4.0, I have found an anomoly in some javascript code that calculates the number of days between two dates, the current_date and the past_date. If the past-date is on or before March 10, 2013, and the current_date is between March 10, 2013, and November 3, 2013, the day count will be 1 day less than the actual count. Between November 3, 2013, and November 4, 2013, the count increments by 2, and then the count will be accurate from this date forward.
    Here are examples:
    Mar 10, 2013 = 69 days from 31-DEC-2012
    Mar 11, 2013 = 69 days from 31-DEC-2012
    Mar 12, 2013 = 70 days from 31-DEC-2012
    Nov. 3 2013 = 306 days from 31-DEC-2012
    Nov. 4 2013 = 308 days from 31-DEC-2012
    March 11 should be 70, and March 12 should be 71. November 3 should be 307, and November 4 corrects the wrong count which began March 11.
    Changing the past_date to March 10, 2013 produces the following:
    10-Mar-2013 = 0 days from 10-Mar-2013
    11-Mar-2013 = 0 days from 10-Mar-2013
    12-Mar-2013 = 1 days from 10-Mar-2013
    But changing the past_date to March 11, 2013, produces correct numbers:
    11-Mar-2013 = 0 days from 11-Mar-2013
    12-Mar-2013 = 1 days from 11-Mar-2013
    13-Mar-2013 = 2 days from 11-Mar-2013
    I would certainly appreciate anyone's help on identifying the cause of this anomoly. Here is the javascript code:
    var w1= ($v("P48_PAST_DATE"));
    w1 = (w1.toString());
    var vmon = (w1.substr(3,3));
    var vyr = (w1.substr(7));
    var r = (vyr.length);
    if (r == 2)
    vyr = (parseFloat(vyr) + 2000);
    var vday = (w1.substr(0,2));
    var y = (vmon.concat(" ",vday,", ",vyr));
    y = Date.parse(y);
    var w2 = ($v("P48_CURRENT_DATE"));
    var vmon2 = (w2.substr(3,3));
    var vyr2 = (w2.substr(7));
    var vday2 = (w2.substr(0,2));
    var x = (vmon2.concat(" ",vday2,", ",vyr2));
    x = Date.parse(x);
    var numdays = (x - y);
    numdays = (Math.floor(numdays / 86400000));
    $s("P48_NUMBEROFDAYS",numdays);

    Did you google for something like "javascript number of days between two dates". I think you will find the explanation in this observation:
    This method doesn't work properly if there's a daylight savings jump between the two dates.
    There are examples to be found to calculate the difference between two dates.

  • How to find out Max threads count for Custom Work Manager??

    Hi All,
    How to find out Max threads count for Custom Work Manager??
    I have created 1 WM & targeted it to a cluster of 2 MS. Later I created Max thread Constraint = 300 & assigned that to my WM.
    I need to check how many threads maximum were created by my WM after lets say 1 completed day.
    The idea behind that is to understand if .. 300 is enough or need to increase the same way as we do it for JDBC datasource like.. Active connections Max count.. etc.
    Any Idea?
    regards,
    Tanmay

    Hi Ashish,
    Thanks for your response.
    The monitoring page that you are suggesting does not indicate the max thread count reached for a particular WM.
    For example, If I have Sample WM with 300 Max Thread Constraint, is there a way for me to check how many threads have been used out of 300??
    Any pointers in this regard are appreciated.
    Thanks,
    Tanmay

  • Is there a "business day" functionality for iCal?

    I would like to count the workdays in addition to the calendar days.
    For example: September 2nd 2013 (2C) would be 1BD.
    Is there an iCal add-on?  An app?

    Hi;
    I believe you are essentially asking if FormsCentral is HIPAA compliant and it is not.
    These two FAQ's cover FormsCentral security:
    http://forums.adobe.com/docs/DOC-1384
    https://www.acrobat.com/misc/en/security.html
    Thanks,
    Josh

  • Maximum session count for Optimization on WAAS

    Hi all, i've currently two different types of hw in use.
    WAE612 an NM-WAE502.
    now i want to know the maximum session count for a WAE 512.
    On 502 we have a maximum of 500 sessions
    On 612 we have a maximum of 6000 sessiones.
    could you give me the maximum session count on WAE512?
    thx in advance
    Dieter

    Hmm, so i think it's the best to replace the NM due a WAE512.
    however, i've currently the problem, that the TFO session count reaches the maximum a few times per day.
    Now the question is:
    What is the best way to avoid a TFO session exceed?
    Is it O.K. to modify the policy. The Idea is to pass through traffic, which has only a poor benefit of WAAS (such as SAP).
    The question here is: Has a pass through on the policy any impact to the TFO counter?
    The second idea is to redirect only definded traffic via WCCP? Is there a way to do it in this way?
    thanks for your help

  • CR - giving total transaction count for few groups and 0 for few groups.

    For the column "No of First Call Resolution" I have to count no of interactions based on the Interaction Result, the formula is
    COUNT(Interaction_ID) WHERE INTERACTION_RESULT = 'FCR'
    For which, I wrote the below formula
    If {14CICustomerInteractions_query.Interaction Result} = "FCR" then Count ({14CICustomerInteractions_query.Interaction_ID})
    I have 33,232 interactions on the particular day I selected. When I try to group up and do the calculations it is giving total transaction count for few groups and 0 for few groups.
    Need Solution

    Hi,
    What field is the report grouped on?
    If you wish to find the no of interactions based on some condition and display it for every group, then here's what you need to do:
    1) Create this formula and place this on the details section:
    whileprintingrecords;
    numbervar c;
    If {14CICustomerInteractions_query.Interaction Result} = "FCR" then
    c := c + 1;
    2) Create another formula and place this one on the Group Footer:
    whileprintingrecords;
    numbervar c;
    3) Create this formula to reset the variable and place this on the Group Header:
    whileprintingrecords;
    numbervar c := 0;
    Let me know how this goes!
    -Abhilash

  • There was an error while updating row count for "SH".."SH".CHANNELS

    Hi All,
    Am new to OBIEE.Pls help in this regard.
    Am building the physical layer as per Repository guide.When am importing the data in to this,am getting the below error.
    *"There was an error while updating row count for "SH".."SH".CHANNELS" :"*
    channles is the table name and having 5 rows.
    but am able to see the data in the sql prompt. like SELECT * FROM SH.CHANNELS then 5 rows data would be displaying..
    pls help in this regard and where is the excat problem?
    Thanks,

    what is the error?
    Make sure that your connection pool settings are okay..
    Make sure that, you are using correct driver in case of if you are using ODBC dsn..
    Also make sure that, your oracle server is running... TNS and Oracle server services

  • I purchased a student subscription to Creative Cloud. I got the confirming email. When I attempted to install the aps, kept getting a 30-day trial for all the aps. In the case of Photoshop, it was expired. How do I activate my Creative Cloud?

    I purchased a student subscription to Creative Cloud. I got the confirming email. When I attempted to install the aps, kept getting a 30-day trial for all the aps. In the case of Photoshop, it was expired. How do I activate my Creative Cloud?

    ChristinaW1111 for information on how to resolve the connection error preventing the active membership from authorizing then please see Sign in, activation, or connection errors | CS5.5 and later.  If you have any questions regarding the steps listed within the document you are welcome to update this discussion.

Maybe you are looking for

  • How do a scan a file from my scanner and make it a PDF. . . . I do not see this choice in the Adobe program?

    How do a scan a file from my scanner and make it a PDF. . . . I do not see this choice in the Adobe program? In the past I would simply place a copy of the document on my scanner, then selected create PDF from scanner.  However, there is now no creat

  • Locked out of external Drives

    I hope someone can help me....... after restoring my system from a timemachine backup I had some permission problems, so I opened get info on my HD and set the permissions and applied to enclosed items. I now have my two external hard drives ( 1 a US

  • SQL Query (report region) without full page reset

    Hello, I have a page with several items, some of them with default values, and a report region, performing SQL query based on one of the items – text field (always submits page when Enter pressed). When the page submits, the HTML DB engine performs a

  • Transferring from old pc to new one

    does anyone know how to transfer my library from my old pc to my new one? There are a couple that have gone onto the new one for some reason and not the rest. Any advice would be appreciated.

  • USEREXIT_CHECK_XVBEP_FOR_DELET USING US_EXIT

    Can anyone tell me under what conditions this user exit in MV45AFZB gets hit?  I would expect it to get hit when a line is being deleted from VBEP, but it does not seem to be hitting it. My requirement is to find a place to update a user field in vba