DAX - IF statement and filters within calculated column

Hi all,
I've got a bit of a complex formula I'm trying to run, but I'm not quite there yet.  I don't know where/how/if I can place a filter within my IF statement for a calculated column due to so many variables.  I either get errors or wrong numbers. 
Hope the following makes sense. 
Here is my formula for the calculated column [Years Since Last Task]:
=IF (ISBLANK([Last Task Date]) && ([Current Role]<>BLANK()), DIVIDE([Quarters],4), FLOOR(1. * ( today() - [Last Task Date]) / 365, 0.25))
Problem:  I am getting "114.25" for Ken....but I want a blank result instead.  Meaning, I need to also filter out any name (row) who has a blank [Current Role].  How do
I add a filter to this current formula?  Is one more step of filtering possible in this IF statement?  (Maybe I shouldn't use an IF statement, and try CALCULATE instead?)
Below is the table 'Work' for you to see what's happening.
Name
Quarters
Last Task Date
Current Role
Years Since Last Task
John
1
1
0.25
Mike
4
2/7/2011
3
3
Todd
5
4/20/2009
4
5
Jeff
9/1/2013
3
0.5
Ken
0
114.25
Steve
2
12/3/2011
2
2.25
Nate
2
1/1/2014
2
0.25
Greg
1
8/11/2013
1
0.5
Ross
4
11/9/2010
4
3.25
Hope all this made sense.  Let me know if you have any thoughts.
Thanks,
~UG1

you can use nested IF-statements here:
=IF (ISBLANK([Current Role]),
BLANK(),
IF(ISBLANK([Last Task Date]),
DIVIDE([Quarters],4),
FLOOR(1. * ( today() - [Last Task Date]) / 365,0.25)
hth,
gerhard
Gerhard Brueckl
blogging @ http://blog.gbrueckl.at
working @ http://www.pmOne.com

Similar Messages

  • DAX: Time intelligence and filtering out blank values

    Hi all,
    Quick question.  I'm currently calculating the length of time between two dates ('today' vs [Completed Date]) in a new column.  However, I cannot get the syntax correct to filter out the blanks in the [Completed Date] column.
    My current formula is this:  =FLOOR(1. * ( today() - [Completed Date]) / 365, 0.25)
    I just need one more piece to work around the blanks.  Any suggestions on what to add?
    Thanks,
    ~UG

    Use ISBLANK
    =IF (ISBLANK([Completed Date]),BLANK(),FLOOR(1. * ( today() - [Completed Date]) / 365, 0.25))
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Including both the Jquery script to calculate the total of calculated column and freeze header row

    Hi
    I managed to get this code from here,
    http://techtrainingnotes.blogspot.in/2013/03/freezing-title-row-of-sharepoint-2010.html done on the page 
    I also managed to get this code from here, http://www.sharepointed.com/2012/11/28/jquery-total-calculated-column-in-sharpoint-2010/ done on another page.
    However, I need this to be done on the same page. When I do this, I only get the freeze header thingy to be up and not the calculated column. Could something be blocking. 

    Hi,
    You take the code below for a try in your environment after modified it a bit to suit the structure of your page:
    <script type="text/javascript" src="../../SiteAssets/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    // update the list after the page has loaded
    _spBodyOnLoadFunctionNames.push("TTNListScroll");
    function TTNListScroll()
    // Scrolling list code from TechTrainingNotes.blogspot.com
    // Edit the next line with your list's summary name
    var SummaryName = "List28_frozenheader ";
    var TTNmyTable;
    var TTNListDiv = document.createElement('div');
    var TTNHeadingDiv = document.createElement('div');
    var tables = document.getElementsByTagName("table");
    for (var i=0;i<tables.length;i++)
    if(tables[i].summary == SummaryName)
    TTNmyTable = tables[i];
    break;
    if(TTNmyTable == undefined)
    // // Table not found!
    // you may want to comment out the next line after testing
    alert("table '" + SummaryName + "' not found");
    return;
    // make a copy of the table for the heading area
    TTNHeadingDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNHeadingDiv.id="TTNheading";
    TTNListDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNListDiv.id="TTNlist";
    TTNListDiv.width="100%";
    // udpate the page
    var TTNnode = TTNmyTable.parentNode;
    TTNnode.replaceChild(TTNHeadingDiv, TTNmyTable);
    TTNnode.appendChild(TTNListDiv);
    // hide the heading row of the main list
    TTNListDiv.childNodes[0].rows[0].style.visibility='hidden';
    // make the DIV for the heading the same width as the main list
    TTNHeadingDiv.childNodes[0].style.width = TTNListDiv.childNodes[0].offsetWidth;
    getSum(3);
    //pass the column number to this function
    function getSum(col)
    var m = "$"; //change to "" for non-money format
    var arrayList = $("table.ms-listviewtable:first> tbody> tr:gt(0)").find(">td:eq("+col+")");
    var x = 0;
    var p1 = "";
    var p2 = "";
    $.each(arrayList, function(){
    //console.log('$(this).text(): '+$(this).text());
    x += Number($(this).text().replace(/\$|,|\)/g, "").replace(/\(/g,"-"));
    //console.log('x: '+x);
    //format for negative numbers
    if (x < 0)
    p1 = "(";
    p2 = ")";
    x = Math.abs(x);
    $('#diidSortcal').attr('visibility','visible');
    $('#diidSortcal').text($('#diidSortcal').text()+'(sum: '+x+')');
    function addCommas(nStr)
    //formats number
    nStr += '';
    x = nStr.split('.');
    x1 = x[0];
    x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1))
    x1 = x1.replace(rgx, '$1' + ',' + '$2');
    return x1 + x2;
    </script>
    <style type="text/css">
    #TTNheading
    height:28px;
    #TTNlist
    height:200px;
    overflow-y:scroll !important;
    overflow-x:auto
    </style>
    Then you might get something like this:
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Yes/No Calculated Column

    Hello and thank you in advance for any assistance you can provide:
    I am using Sharepoint 2010 OOB
    I would like to create a calculated column which returns a Yes/No if content is entered into a multiple line of text column. i know you cannot use multiple line of text columns in a calculated formula but i was wondering if there is a work-around.
    I tried creating a single line of text column [More Information],
    then i created a calculated column name [More Information 1] and i used the formula =[More Information]
    then i deleted the single line of text column and created a new multiple line of text column and name it the same name of the single line of text column [More Information]
    then i created a second calculated column named [More Information Y/N] and created the formula =NOT(ISBLANK([More Information 1]))
    However, if there is no content is enterd in the multiple line of text column [More Information] the calculated column [More Information 1] displays a '?Name' which causes the calculated column [More Information Y/N] to display a 'Yes'
    out of curiosity, i changed [More Information] back to a single line of text and the calculated column [More Information 1] displayed a '0', which obviously caused the calculated column [More Information Y/N] to display  'Yes'
    Any help which can be provided would be greatly appreciated

    Hi,
    According to your description, you might want to create a calculated column which returns a Yes/No whether a multiple line of text column is blank.
    As a workaround, you can trick the new multiply-line text field into thinking it is operating on a single-line text field and create a calculated column
    to judge if a multiple line of text column is blank.
    The steps in details as below:
    1. Create a single line of text column named “More Information”.
    2. Create a calculated column named “More Information 1” and set the formula “=RIGHT([More Information],LEN(More Information)-8)”.
    3. Delete
    the “More Information” column and create a new multiple line of text column named “More Information”.
    4. Create
    a calculated column named “More Information Y/N” and set the formula “=NOT(ISERROR([More Information 1]))”.
    Best regards
    Zhengyu Guo
    TechNet Community Support

  • Getting an error while using if statement in calculated column.can anyone please help me with this issue

    I am trying to learn HANA on my own.i have product id,product name,delivery date and Grossamount in my calculated view.i am trying to create calculated column where i need Grossamount in two columns based on delivery date.I have 2012 and 2013 as values for my delivery date.so i have created two column as grossamount_2012 and grossamount_2013.if i have delivery date as 4thdec,2012 i want the grossamount value to be in coloumn grossamount_2012 and the grossamount_2013 should be blank.i have written an expression like this
    if("Deliverydate" <= longdate(2012-12-04),"Grossamount","0")
    and it looks like this is wrong.i am getting the text Grossamount rather than values for that field in my output.so can anyone help me please?

    Hi chandra
    i am trying to get the same result by using sql script and CE functions.i have written the following code
    select A."PRODUCTID",
           E."TEXT" as "PRODUCTNAME",
           C."COUNTRY",
           D."DELIVERYDATE",
           Sum(D."GROSSAMOUNT") as "GROSSAMOUNT"
           from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Products" as A     
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.BusinessPartner" as B
           on A."SUPPLIERID" = B."PARTNERID"      
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" as C
           on B."ADDRESSID" = C."ADDRESSID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Purchase.Item" as D
           on A."PRODUCTID" = D."PRODUCTID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Util.Texts" as E
           on A."NAMEID" = E."TEXTID"
           GROUP BY A."PRODUCTID",E."TEXT",C."COUNTRY",D."DELIVERYDATE"; 
    this is working fine but i want to split the grossamount based on current year and last year.Any idea how to do this
    In calculation view using script can we use if and case statements?

  • Creating a Status column (IF statement/calculated column)

    I'm developing list for managing a project with 11 columns each representing a project milestone.
    We'll call them A,B,C...K.
    "A" representing a status of "Project Started" and K representing "Project Complete" with various statuses in between.
    When a milestone has been reached, the date is input into the appropriate column. So when the project is complete, there will be dates in all columns A-K
    I wish to incorporate a new column that indicates the current status depending on if columns A-K have been filled in.
    So if all columns are blank, a status of "Awaiting start" is indicated.
    If column A is filled in with a date, a status of "A" is indicated.
    If columns A and column B are filled in then a status of "B" is indicated.
    If columns A, B and C are filled in then a status of "C" is indicated. * * If all the columns are filled in with dates, a status of "K" is indicated.
    Any ideas? Some form of If statement in a calculated Status column?

    Hello,
    You can use nested if statement something like below.
    For example, I have one column named as 'Score' and the requirement is to perform quartile breakup based on score so for that I can use below calculated formula in my calculated column.
    =IF(INT(Score)>85,"85 Above"
     ,IF(AND(85>=INT(Score),INT(Score)>=80),"85-80"
     ,IF(AND(79>=INT(Score),INT(Score)>=75),"79-75"
     ,IF(INT(Score)<75,"Below 75","0"))))
    Have below links for more details.
    Calculated Field Formulas
    Examples of common formulas
    Thanks. Please mark it as an answer if it helped.

  • CASE statement in Calculated column

    Hi Frzz,
    I have below requirement in Calculated column with CASE statement. Could some one help me how to achieve this with case statement.
    String  =   0Hello
                    01Hello
                    012Hello
                    0123Hello
    If  1st Character of the string is '0' then  -  0Hello
        1st 2 characters of the String is '01'  -   22Hello
        1st 3 characters of the String is '01'  -   333Hello
        1st 4 characters of the String is '01'  -  4444Hello
    Thank you.
    Best Regards,
    Krishna.

    Hi Krishna ,
    Using IF and MATCH to do that: ( I took one of the conditions you specified )
    IF(match("STRING1",'??0??'),'333Hello',"STRING1")
    Output:
    Regards,
    Krishna Tangudu

  • Nested IF/AND/OR in Calculated Measure/Column

    I have the following problem, which I couldn't quite solve in Excel and was wondering whether it can be done in PowerPivot (I failed so far):
    A datasheet with a column "HOUR" and another column "AM/PM". Entries in the first column consist of 1,2,3,4,5,6,7,8,9,10,11, or 12, the second column consists of 'AM's or 'PM's. Together they define the time of an incident (regarding the
    below problem, note that I am not allowed to create a new column in the source datasheet or change existing columns). The below formulas 1.) to 3.) work excellent in Excel for getting '1's or '0's for incidents that happened either between 8AM and 4PM, or
    outside of this time window, as long as I create a new column somewhere in the source datasheet.
    1.) =IF(AND(A1>=8, A1<=11),IF(B1="AM",1,0),0) + IF(AND(A1>=1, A1<=4),IF(B1="PM",1,0),0) + IF(AND(A1=12),IF(B1="PM",1,0),0)
    2.) =--OR(AND(A1>=8, B1="AM", A1<>12), AND(OR(A1<=4, A1=12), B1="PM"))
    3.) =--OR(AND(OR(A1={8,9,10,11}),B1="AM"), AND(OR(A1={1,2,3,4,12}), B1="PM"))
    However, I wanted the "1"s to be summarized - without creating an extra column - as calculated field in a pivot table in Excel. As it turned out, the calculated field option in Excel's standard Pivot table doesn't allow such complex formulas.
    Someone then told me to try PowerPivot. However, the calculated column/calculated measure option in the PowerPivot sheet (once I loaded my data) doesn't seem to support the above formulas either.
    The column headers have the same names as I described above. However, some symbols were not accepted so the relevant ones read now: "[HOUR]", "[AM PM]".
    I tried:
    =IF(AND([HOUR]>=8, [HOUR]<=11),IF([AM PM]="AM",1,0),0) + IF(AND([HOUR]>=1, [HOUR]<=4),IF([AM PM]="PM",1,0),0) + IF(AND([HOUR]=12),IF([AM PM]="PM",1,0),0)
    Error: "Too few arguments were passed to the AND function. The minimum argument count for the function is 2."
    =OR(AND([HOUR]>=8,[AM PM]="AM",[HOUR]<>12), AND(OR([HOUR]<=4,[HOUR]=12),[AM PM]="PM"))
    Error: "Too many arguments were passed to the AND function. The maximum argument count for the function is 2."
    Does anybody know how to translate any of the above formulas into one PowerPivot accepts? or, alternatively, any other way how to achieve the desired results? Thank you for any help on this.

    Hi Natrajx,
    The first of your formulas can be translated into the follow DAX syntax that can be used to define a Calculated Column:
    IF(
    table1[HOUR] >= 8 && table1[HOUR] <= 11,
    IF(
    [AM PM] = "AM",
    1,
    0
    0
    +
    IF(
    table1[HOUR] >= 1 && table1[HOUR] <= 4,
    IF(
    [AM PM] = "PM",
    1,
    0
    0
    +
    IF(
    table1[HOUR] = 12,
    IF(
    [AM PM] = "PM",
    1,
    0
    0
    You could also created a Calculated Field based on similar logic using the following formula:
    SUMX(
    'Table1',IF(
    table1[HOUR] >= 8 && table1[HOUR] <= 11,
    IF(
    [AM PM] = "AM",
    1,
    0
    0
    +
    IF(
    table1[HOUR] >= 1 && table1[HOUR] <= 4,
    IF(
    [AM PM] = "PM",
    1,
    0
    0
    +
    IF(
    table1[HOUR] = 12,
    IF(
    [AM PM] = "PM",
    1,
    0
    0
    Note the use of "&&" instead of the AND() function. In DAX, the AND() and OR() functions only support a maximum of 2 arguments. You can use "&&" for the AND operation and "||" for the OR operation. Hopefully
    the DAX examples above will help you to see how it can be applied to your scenario.
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com
    Blog: http://www.nimblelearn.com/blog
    Twitter: @nimblelearn

  • Logical AND , OR operations in calculated Column

    Hi Frzz,
    I need to apply AND & OR operators in IF statement of Calculated Column. Could some one help he how to achieve this.
    IF( employeetype = = 'temporary' AND experiance == '5years' )
         IF( employeeDesignation == ' BA' )
             logic
        ELSE IF (employeeDesignation == 'AC')
             logic
       ElSE
            logic
    ELSE IF ( employeetype = = 'temporary' OR experiance == '5years' )
         IF( employeeDesignation == ' BA' )
             logic
        ELSE IF (employeeDesignation == 'AC')
             logic
       ElSE
            logic
    ELSE
    Logic
    Best Regards,
    Krishna.

    Hey Krishna, ( feels like calling myself )
    Just have a doubt here, before proceeding for the solution
    1) Why do you want to convert it into a string if it is a number?
    2) what is the data type of the field?  is it VARCHAR?
    If you feel like it has to be converted , then why don't you convert everything into a string so that
    1) if there is a number it will get converted into a string
    2) if there is string, it will again convert ( which should not be  a problem )
    Can you be more clear on what you wanted to do there?
    Regards,
    Krishna Tangudu

  • How to create new calculated column based on filtered columns?

    Dear All,
    I'm using Oracle Analysis.
    I have two column, each one have different formula.
    My Formula based on filter.
    Column1
    FILTER("DW"."SUM_PLAN_MONTH_AMOUNT" USING ("DW"."PLAN_YEAR" BETWEEN YEAR(DATE'@{P_BEGIN_DATE}') and YEAR(DATE'@{P_END_DATE}')))Column2
    FILTER("PAYMENTS"."SUM_PAY_AMOUNT" / 1000 USING ("PAYMENTS"."PAY_DATE_PAID" BETWEEN DATE'@{P_BEGIN_DATE}' AND DATE'@{P_END_DATE}'))How to add new calculated column based on those two column?
    For example:
    Column1 | Column2 | NewColumn
    5 | 10 | 10 / 5 * 100
    7 | 12 | 12 / 7 * 100
    Regards,
    Eba
    Edited by: Erdenebayar on Apr 19, 2012 1:42 PM
    Edited by: Erdenebayar on Apr 19, 2012 3:37 PM

    Hello MK,
    I have a tried following formula. It is working, but result is not filtered.
    I filtered "PAYMENTS"."SUM_PAY_AMOUNT" and "DW"."SUM_PLAN_MONTH_AMOUNT" columns.
    "PAYMENTS"."SUM_PAY_AMOUNT" / "DW"."SUM_PLAN_MONTH_AMOUNT" * 100Can you share me some tutorial?
    BR,
    Eba
    Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
    Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
    Edited by: Erdenebayar on Apr 19, 2012 3:43 PM

  • Calculated Column using IF statement with DATEIF formula

    I have a dated column that includes a date when a position is vacated otherwise the field is blank if the position is still filled. I want a calculated column to return the number of days the position has been vancant from the date that is listed to today.
    So the following was entered & works.....
    =DATEDIF([Vacancy Date],Today,"d")
    The delima is that it is also returning a value when there is no date in the dated column but it returns a funky number 42,069. What I want it to return when the dated column is blank is blank or zero would work too. I don't know how to incorporate that
    into this formula.

    You are correct it no longer reads that column as Today.... So is there anyway to make this a calculated column for my purposes?
    I'm going to use SharePoint list for a Position Pool & managing positions within a large department. What I'm attempting to do with this column is have a current count of the number of days since a position has been vacant. Our system that I pull the
    position data from will give me the vacancy date for those positions & where the position is filled the date field will be blank. So I'm wanting this column to return a 0 when the position is listed as filled & the number of days vacant based on the
    vacancy date column I have. Is there any way to make this work in SharePoint? Obviously I can make that work in Excel however my task was to load raw data into SharePoint & have SharePoint do the work if possible with little to no human intervention prior
    to loading to SharePoint.
    Thank you,
    MMHagman

  • Calendar All Day Events, Calculated Columns, Timezone and DayLight Savings - Issues

    Hi
    I have a calendar where I am trying to display in one column using a calculated field (TitleWithTimes):
    Start time (only display time) - End Time (only display time) : Title i.e. 00:00 - 23:59 : Test Event
    So I add an all day event to the calendar for this month (February), it appears correctly:
    i.e. 00:00 - 23:59 : Test Event 1
    I am based in the UK so my time zone is currently GMT/UTC.
    However if I add any all day events to the calendar in April when the time zone switches to GMT+1, the start and end times appear incorrect.
    i.e 01:00 - 00:59 : Test Event 2
    Field: TitleWithTimes
    =TEXT([Start Time],"hh:mm")&" - "&TEXT([End Time],"hh:mm")&" : "&Title
    This issue only occurs with ALL Day Events when the events are scheduled for a in the period of the year where the Time Zone becomes GMT + 1. My regional settings everywhere in SharePoint are correct as are all the SharePoint servers.
    I have done lots of searching and troubleshooting to try and resolve this issue but it appears nobody has found a reliable fix for this issue with calculated fields, all day events and time zones? Does anyone have any ideas of workarounds?
    Thanks

    Hi,
    I understand that you had issues about the calculated field in calendar.
    This is a reproducible issue, when creating an all day event, the calculate column based on the Start Time/End Time is different from the original column value. The date is stored in SQL in GMT time and is displayed in SP in the correct time in lists. So
    returning the start time in a calculated column for an all day event returns the start time in GMT time, which is not the current time most likely.
    As a workaround, you can regenerate the calculate column to add one day/minus one day based on whether the event is an all day event, or create a workflow to copy the start time column to your created date/time column.
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/27ab0bb0-245b-46ca-9f87-c0eb043653ef/date-formatting-in-calendars-returns-wrong-day?forum=sharepointgeneral
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Separated URL and Description into a calculated column

    Hi;
    I have a link column "SITE" (URL + Description) and I would to create a new calculated column "NameSite" which use URL + DESCRIPTION but separated.
    How write my formula in separating URL and the description of the link column ?
    Regards

    You can't do it with a Calculated Formula as the Hyperlink field is not available for Formulas.
    But the information you want is available in the ClientContext object when a View is displayed.
    On 2013 you would use CSR/JSlink to do what you want with Javascript.
    On 2010 you could try and stuff Javascript in a Calculated Column, see http://sharepoint.stackexchange.com/questions/130377/calculate-field-with-a-lookup-additional-column

  • Help with calculated column formula- combine strings and convert to date

    In my list (SharePoint Server 2013) I have:
    'Invoiced Month' column, type of choice (strings with names of months- January, February, March..., December)
    'Year' column, single line of text (e.g. 2012, 2013, 2014)
    1. I need to create a calculated column which will return combined value of the columns above, but in DATE format e.g. 'Sep-2013' or '01-Sep-2013'.
    I then use that newly created calculated column to do this: http://iwillsharemypoint.blogspot.in/2012/03/sharepoint-list-view-of-current-month.html
    I am rubbish with formulas, can I have some help with my problem please?

    Hi,
    Use the formula, I have tested by creating Months column with choice, Year column as numeric and Calculated column as DateTime returned.
    =DATE(Year,IF([Months]="January", 1,IF([Months]="February",2,IF([Months]="March",3,IF([Months]="April",4,IF([Months]="May",5,IF([Months]="June",6,IF([Months]="July",7,IF([Months]="August",8,IF([Months]="September",9,IF([Months]="October",10,IF([Months]="November",11,12))))))))))),1)
    Before applying the formula few things need to be noted.
    DATE(YEAR, MONTH,DAY) will accepts three parameters all should be type numeric(integer).
    Create the Year column of type numeric
    Create the calculated column of type "DateTime" to return as date
    Please mark it answered, if your problem resolved or helpful.

  • Calculate Date/Time Difference in a Calculated Column Omitting Weekends, Holidays and Non-Working Hours

    I am looking for a formula to use in a calculated column that calculates the difference between two date/time fields while excluding weekends, holidays and non-working hours
    6/1/2010 9:43 AM - 6/7/2010 1:45 PM
    Here is the closest that I have gotten; however, this formula gives me a result of 96:
    =IF(AND((WEEKDAY([Resolved Date],2))<(WEEKDAY(Created,2)),((WEEKDAY(Created,2))-(WEEKDAY([Resolved Date],2)))>1),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved Date],"D")+1)/7,1))-3),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved
    Date],"D")+1)/7,1)*2))*24)
    Any and all assistance is greatly appreciated!

    I don't know how to exclude holidays but i exclude weekends(Sat&Sun)-
    IF(ISERROR(DATEDIF([Start Date],[End Date],”d”)),””,(DATEDIF([Start Date],[End Date],”d”))+1-INT(DATEDIF([Start Date],[End Date],”d”)/7)*2-IF((WEEKDAY([End Date])-WEEKDAY([Start
    Date]))<0,2,0)-IF(OR(AND(WEEKDAY([End Date])=7,WEEKDAY([Start Date])=7),AND(WEEKDAY([End Date])=1,WEEKDAY([Start Date])=1)),1,0)-IF(AND(WEEKDAY([Start Date])=1,(WEEKDAY([End Date])-WEEKDAY([Start Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([Start Date])=7),WEEKDAY([End
    Date])=7),1,0))
    -Thanks
    Swapnil

Maybe you are looking for

  • Need help with Boot Camp dual booting

    I'm trying to install windows 7 on a separate partition but after the mac book pro restarts to start the installation it says windows can't be installed because it needs to be NTFS format but the mac partition is Mac OS Extended(journaled) but gives

  • Desktop pictures: is there a limit to number of pictures

    Hi there I have a folder full of pictures (ie 6 thousand) that rotate through the desktop. Is there a limit to how many pictures I can have in the source folder and still have the display & computer functioning all right? Also, does changing the pic

  • Mail Junk Folder Problem

    My junk mail folder says that there are 1953 messages in it but when I click on it there is nothing there. The count for my regular mail works just fine and I can see my regular mail just fine as well. I can also throw away and delete mail from my no

  • Adding New Field and Passing Values Between Screens

    In the Oracle Projects Create Project screen, I've been asked to add a new LOV for Organization (LOV copied from a subsequent page) - and then pass the selected value to the next page and default in the value based on the selection on the first page.

  • 9i and 10g Replication

    Hi, Is there any difference between 9i and 10g Version of Oracle database with respect to Advanced Replication concepts, implementation procedures and methodologies. I mean is 9i Advanced replication concepts are same in 10g or in 11g. Looking for gu