Expression syntax in TestStand 4.0 tutorial

Hello All
Teststand is new to me, and I am trying its tutorial with "Using TestStand" manual.
At the Using TestSTand page 3-7, Insert a Template Step step 7, we insert a
message popup "Retry if Previous Step Fails".  This step has post action "Goto Step",
but it doesn't goto next step and uses an expression "RunState.PreviousStep.TS.Id".
I can't find the expression at the expression browser and don't know what this means.
There is a RunState.PreviousStep at the expression browser but no "TS.Id". 
I've attached a pic (teststand_ques.jpg) to show the expression.  Could anyone
tell me its meaning. 
Also, is there any manual or guide of TestStand expression syntax?  I know expression
browser shows its operator and functions, but I'd like to have a detail reference manual.
Thank you
Attachments:
teststand_ques.JPG ‏214 KB

Hi,
The TS is a hidden property of the Step.
You can unhid this property by a setting in the Station Options select the Preference Tab.
You actually dont need to enable this setting, you could of just typed it in (, the .TS.id I mean). But when learning it is handy to see all the properties.
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • Assignment Expression Syntax Guide

    Hi,
    Can somebody point out the material on Assignment Expression syntax in MDM. Where i can find list of all available operations with some sample code. Somebody pointed out in another thread the IS_UPPER and UPPER are functions but they don't appear in the drop down.
    I also need to know:
    1. How can the items be accessed that donot have a direct relation with the table of the Assignment.
    2. How can i update multiple fields in single assignment (especially since we don't have assignment groups).
    I am using SAP MDM 5.5 SP5 P4
    Thanks
    Yasir Rizwan Saqib

    Hi,
    The TS is a hidden property of the Step.
    You can unhid this property by a setting in the Station Options select the Preference Tab.
    You actually dont need to enable this setting, you could of just typed it in (, the .TS.id I mean). But when learning it is handy to see all the properties.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • What is the expression syntax to make the visibility of a column hidden in a Tablix?

    So if my Parameter value is...
    MCCL, MCMA, MCPL, MCPR, MCRE, MCSE, MCSN, MCVA, MCCL, MCEP, MCMA, MCRE out of 43 possible choices, what is the expression syntax to hide my tablix column based on my parameter value?
    =iif(instr(Join(Parameters!ColumnVisibility.Value,","),"MCCL","MCMA","MCPL"...)>0,false,true)
    Just not sure of the syntax...or do I have to qualify each one???
    = IIf(Parameter!PF1.Value = "MCCL" OR Parameter!PF1.Value = "MCMA"..., TRUE, FALSE)

    Hi ITBobbyP,
    Per my understanding that you have create multiple values parameter "ColumnVisibility" based on the fields LineofBusiness and the fields LineofBusiness have the n to 1 relationship with the BusinessUnit like below(Sample Data):
    When you select values from the dropdown list which only include the "FM" or "MC", the column "HCFNumber" will show or it will hide, right?
    If so, If you have two many values in the lineofBusiness mapped of the BusinessUnit, you can create an new cascading parameter "BusinessUnit" based on the BusinessUnit field like below:
    select distinct a.BusinessUnit from (select 'MCCL' lineofBusiness, 'MC' BusinessUnit ,11 HCFANumber
    union
    select 'MCCS' lineofBusiness, 'MC' BusinessUnit ,11 HCFANumber
    union
    select 'COLG' lineofBusiness, 'CO' BusinessUnit ,11 HCFANumber
    union
    select 'COSM' lineofBusiness, 'CO' BusinessUnit ,22 HCFANumber
    union
    select 'FMMS' lineofBusiness, 'FM' BusinessUnit ,33 HCFANumber
    union
    select 'FMCG' lineofBusiness, 'FM' BusinessUnit ,44 HCFANumber)a
    where lineofBusiness in (@LineofBusiness)
    Add another filter in the (@BusinessUnit) and use expression below on the column visibility:
    =IIF(Join(Parameters!BusinessUnit.Value,",")="FM" or Join(Parameters!BusinessUnit.Value,",")="MC" or Join(Parameters!BusinessUnit.Value,",")="FM,MC" , false,true)
    Preview like below:
    If you still have any problem, please try to provide more details information about the expect result you want to get based on the show/hide.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Method expression syntax error in jsp jsf 2.0 eclipse

    hi i made a simple bean jsp project, n ussed el to call methods in backing bean n show some text on the basis of method called....
    the project works perfectly fine, but theres a small issue, that eclipse jsp editor marks the expression as red n shows err.. the proj deploys fine on tomcat, n even works fine with expected results...
    wat should i do to fix that err show by eclipse...
    using eclipse helios with wtp 3.2, tomcat 7, jsf 2.0, el-api n el-impl 2.2 version jars in tomcat lib.... n latest jstl n standard jars...
    eg of jsp call -      <h:outputText value="#{myJsfBean.fetchCourseName(studentBean.courseId)}" />
    backing bean fn -
    public String fetchCourseName(Integer iCourseId){
              String theCourseName="";
              for(CourseBean aCourseBean:courseBeanList){
                   if(aCourseBean.getCourseId().equals(iCourseId)){
                        theCourseName=aCourseBean.getCourseName();
                        break;
              return theCourseName;
    jsp editor show err - Multiple annotations found at this line:
         - Syntax error in EL
         - Expression must be a value expression but is a method
         expression
    for "#{myJsfBean.fetchCourseName(studentBean.courseId)}" part of the expression
    its a trivial issue i think but annoying,, tried to search alot cudnt fix it....
    plz help

    my guess is that the project is not setup as being a JEE6 project and is being validated it as if it is a JEE5 application; the ability to be able to call methods with parameters through an EL expression is a new feature of JEE6 (or to be more precise: the el 2.2 API).
    Perhaps you can specify in your project properties that this is in fact a JEE6 project? Eclipse Helios should support JSF 2.0 out of the box.

  • CASE Expression Syntax( PL/SQL)

    Hi,
    I am facing a strange problem. I want touse CASE expression. I am facing the following error in PL/sql.
    can somebody plz tell me where i am wrong? wht's exact syntax of CASE in Plsql.
    1 declare
    2 var1 number;
    3 begin
    4 var1:=2;
    5 case var1
    6 when 1
    7 dbms_output.put_line('1');
    8 when 2 dbms_output.put_line('2');
    9 else dbms_output.put_line('else');
    10 end case;
    11* end;
    SQL> /
    case var1
    ERROR at line 5:
    ORA-06550: line 5, column 1:
    PLS-00103: Encountered the symbol "CASE" when expecting one of the following:
    begin declare end exception exit for goto if loop mod null
    pragma raise return select update while <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall
    <a single-quoted SQL string>
    Thx in Advance.
    Namrata

    I wrote a simple test:
    select case 3
    when 1 then 'true'
    when 0 then 'false'
    else 'maybe'
    end
    from dual
    and this works fine. Now I tried to write a PL/SQL function as a test and got errors. Please help!
    create or replace function hiSpecEval(evalOper in varchar2, evalVal in number)
    return number is
    Result number;
    begin
    case 3
    when 1 then result := 1
    when 0 then result := 'false'
    else result := 'maybe'
    end
    return(Result);
    end hiSpecEval;
    and I got errors:
    Compilation errors for FUNCTION PJ.HISPECEVAL
    Error: PLS-00103: Encountered the symbol "WHEN" when expecting one of the following:
    * & = - + ; < / > at in is mod not rem <an exponent (**)>
    <> or != or ~= >= <= <> and or like between ||
    Line: 7
    Text: when 0 then result := 'false'
    Error: Hint: Parameter 'evalOper' is declared but never used in 'hiSpecEval'
    Line: 1
    Text: create or replace function hiSpecEval(evalOper in varchar2, evalVal in number)
    Error: Hint: Parameter 'evalVal' is declared but never used in 'hiSpecEval'
    Line: 1
    Text: create or replace function hiSpecEval(evalOper in varchar2, evalVal in number)
    Error: Hint: Value assigned to 'result' never used in 'hiSpecEval'
    Line: 6
    Text: when 1 then result := 1

  • EXPRESSION SYNTAX REQUIRED FOR DERIVED COLUMN

    Hi
    I've had a look around and can't find the correct syntax for an Expression in a Derived Column task.
    Below is the logic in TSQL. Please could someone help me convert it?
    CASE
    WHEN FIELD1
    =
    'A'
    AND FIELD2
    IS
    NULL
    THEN
    'A'
    WHEN FIELD1
    =
    'B'
    AND FIELD2
    IS
    NULL
    THEN
    'B'
    WHEN FIELD1
    =
    'A'
    AND FIELD2
    =
    'C'
    THEN
    'C_A'
    WHEN FIELD1
    =
    'B'
    AND FIELD2
    =
    'C'
    THEN
    'C_B'
    WHEN FIELD1
    =
    'A'
    AND FIELD2
    =
    'D'
    THEN
    'D_A'
    WHEN FIELD1
    =
    'B'
    AND FIELD2
    =
    'D'
    THEN
    'D_B'
    ELSE
    '0'
    END
    Thanks in advance
    Lucy

    Hi Lucy,
    Try like below expression in derived columns.. 
     ((FIELD1 = 'A'
    && FIELD2 IS NULL)
    ? "A" :
      (FIELD1 = 'B'
    && FIELD2 IS NULL)
    ? "Y" :
    (FIELD1 = 'A' && FIELD2 = 'C' )?
    ”C_A” :
    (FIELD1 = 'B' && FIELD2 = 'C' )
    ? “'C_B” :
    (FIELD1 = 'A' && FIELD2 = 'D' )
    ? “'D_A'” :
    (FIELD1 = 'B' AND FIELD2 = 'D' )
    ? “'D_B”
    : "0"))

  • Generic Alert Log Expression Syntax

    Can anyone explain or point where I can understand the syntax allowed for expressions for monitoring the alert log? For example :
    ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]

    Are you asking what 'ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]' means?
    If so, its just a perl expression. look on google for searching patterns etc in perl and then change it accordingly to what you want (or not) to search for.
    Bazza

  • CreateRole() expression syntax

    Is there documentation on the syntax for expressing policies to the RoleEditorMBean.createRole(String
    resource, String role, string expression) method?
    I am trying to programmatically migrate pre WL70 acls and map them to roles using
    the Dafault Role Mapper. I tried the syntax generated on the console (configure
    role), but I get the exception: admin : SubjectLandAdmin weblogic.entitlement.data.EnCreateException:
    Unknown word for 'Caller is member of group SubjectLandAdmin' at position:0
    Start server side stack trace:
    weblogic.entitlement.data.EnCreateException: Unknown word for 'Caller is member of
    group SubjectLand
    Admin' at position:0
    at weblogic.entitlement.engine.EEngine.createRoles(EEngine.java:414)
    at weblogic.security.providers.authorization.DefaultRoleMapperImpl.createRole(DefaultRoleMap
    perImpl.java:118)
    at java.lang.reflect.Method.invoke(Native Method)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1287)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:920)
    at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:346)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:300)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:762)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:295)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    End server side stack trace
    Any help and advice is much appreciated. Ziad--

    I feel uncomfortable providing support on an unsupported feature. BEA
    provides no guarantees about the functionality, correctness,
    appropriateness, nor forward compatibility of any unsupported features.
    That being said, what you have looks basically correct although it is
    subject to change at any time without notice.
    - Neil
    Ziad wrote:
    I grabbed the policy expression from several roles and tried to immitate it. I came
    up with:
    Grp(name) or {Usr(name)}
    {Grp(name)}
    {Grp(name1)|Grp(name2)}
    usr(name) or {usr(name)}
    combinations of the above
    Is that about right?
    Neil Smithline <[email protected]> wrote:
    Unfortunately, due to timing constraints we could not get this syntax to
    a state that we were comfortably making it public. We are trying to
    address this in a future release.
    - Neil
    "Ziad Kurdi" ziad.m.kurdi.gsk.com wrote:
    Is there documentation on the syntax for expressing policies to the RoleEditorMBean.createRole(String
    resource, String role, string expression) method?
    I am trying to programmatically migrate pre WL70 acls and map them toroles using
    the Dafault Role Mapper. I tried the syntax generated on the console(configure
    role), but I get the exception: admin : SubjectLandAdmin weblogic.entitlement.data.EnCreateException:
    Unknown word for 'Caller is member of group SubjectLandAdmin' at position:0
    Start server side stack trace:
    weblogic.entitlement.data.EnCreateException: Unknown word for 'Calleris member of
    group SubjectLand
    Admin' at position:0
    at weblogic.entitlement.engine.EEngine.createRoles(EEngine.java:414)
    at weblogic.security.providers.authorization.DefaultRoleMapperImpl.createRole(DefaultRoleMap
    perImpl.java:118)
    at java.lang.reflect.Method.invoke(Native Method)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1287)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:920)
    at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:346)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:300)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:762)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:295)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    End server side stack trace
    Any help and advice is much appreciated. Ziad--

  • FM9 SDL Authoring Assitant Regular Expression Syntax?

    I'm trying to trick SDL into identifying words that are not approved by STE.
    Under "Configure|Style and Linguistic Checks|User Defined Rules" the program allows regular expressions to create custom rules.
    I have all other options in the Utility unchecked.
    I am by no means a pro at regular expressions but was able to create a pretty solid command at http://regexlib.com/RETester.aspx.
    The idea is to create an expression that looks for any word other than those seperated by vertical bars.
    For the test text "this is not the way that should work. this is not the way that should work."
    \b(?:(?!should|not|way|this|is|that).)+
    returns: the work the work
    At that website, I can change the excluded words and it works every time. Change the test text, same thing, still works.
    Perfect! I ripped every approved word in STE into the formula and it (SDL) only returns words at the end of the sentence that are followed by a periods and question marks. So I added"\." to the exclusion list in the expression and it only found words next to question marks. I excluded question marks and now it finds nothing. I don't understand this as I wasn't aware that I had any criteria in the expression that dictates functionality only at the end of the sentence.
    I have an O'reilly book to refer to, if anyone can give me a shove in the right direction as to which set of rules to adhere to, I would appreciate it. Why did negative word matching have to be my introduction to this subject?

    I tried your expression in a couple of regex tools and it seems to parse as you wanted it to. I suspect that the SDL implementation doesn't follow the unix/linux standards. I haven't used the tool and the usage documentation is non-existant, except for the limited flash-based demo.
    From the SDL knowledgebase, it states that their regex filter uses the .NET regex flavour and I believe that the differences on this are explained in the "Mastering Regular Expressions" book.

  • Case Expression syntax

    Hi,
    I am writing the below program.
    when case_not_found exception raises
    can any one help me....
    declare
      i integer := 10;
      l_result NUMBER;
      begin
       l_result:= CASE i
                     WHEN 1 THEN 2
                       WHEN 2 THEN 3
                         END CASE;
    EXCEPTION                 
      WHEN CASE_NOT_FOUND THEN
        dbms_output.put_line(nvl(l_result,200));
    end;Regards,
    Rajesh

    A case statement, when does not find an Appropriate match, raises a CASE_NOT_FOUND Exception.
    On the contrary, the Case Expression, returns a NULL Value.
    Since, you used a Case Statement, use the ELSE clause to return some value, say NULL, and the select statement will nto fail.
    Modify it this way:
    declare
      i integer := 10;
      l_result NUMBER;
      begin
       l_result:= CASE i
                     WHEN 1 THEN 2
                       WHEN 2 THEN 3
                     else NULL
                         END;
    EXCEPTION                 
      WHEN CASE_NOT_FOUND THEN
        dbms_output.put_line(nvl(l_result,200));
    end;Extract for Oracle Documentation
    +"If the ELSE clause is omitted, the system substitutes a default action. For a CASE statement, the default when none of the conditions matches is to raise a CASE_NOT_FOUND exception. For a CASE expression, the default is to return NULL."+
    Read For more info on Case Expression and Case Statement
    Edited by: Purvesh K on Dec 13, 2012 12:26 PM

  • Expression syntax

    Hi
    In an "ADF Task Flow", i'm trying to use a router to select which page will show base on the result from a query (if empty, page A, else page B).
    There is alot option in expression builder of the router.. but not much related to the results of my query?!?
    Thanks for your help
    Ben
    note: I'm using jdev 12c

    Not exactly your use case, but it should get you started. The key is to execute the vo query first and then check if the iterator returned zero rows or more than zero rows.
    Check http://tompeez.wordpress.com/2012/12/01/jdeveloper-11-1-1-5-0-use-router-to-create-new-row-or-edit-existing/for more info.
    Timo

  • Basic question on this Regular Expression syntax

    The below query returns the string before the first comma.
    SQL> select regexp_substr('JACK,AND,JILL,WENT', '[^,]+' ) FROM DUAL;
    REGE
    JACKWhat does
    [^,]do? Does it just mean, look for comma (,)
    What does the plus sign in
    '[^,]+'do?
    These are not mentioned in the 10GR2 's SQL Reference for REGEXP_SUBSTR function, hence i am posting this in OTN.

    Hi, Hoek,
    hoek wrote:
    Hi Pete,
    They are documented:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_regexp.htm#sthref547
    Metacharacter     Description
    ^     Anchor the expression to the start of a lineIt looks like you were in a hurry.
    The ^ in
    [^,]+is the non-matching character marker: "Matches any single character not in the list within the brackets"

  • TestStand 4.0 Watch Expression Panel Patch

    There is a patch available for TestStand 4.0.  This patch improves the performance of the Watch Expression in the TestStand 4.0 Sequence Editor.  For more information regarding this patch, please see the Readme.
    http://joule.ni.com/nidu/cds/view/p/id/878/lang/en
    Message Edited by AllenP on 08-30-2007 01:04 PM

    Hi,
    The TS is a hidden property of the Step.
    You can unhid this property by a setting in the Station Options select the Preference Tab.
    You actually dont need to enable this setting, you could of just typed it in (, the .TS.id I mean). But when learning it is handy to see all the properties.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • I am stunned by TestStand suport engineer's answer to my bug report?

    Okay, my HTML is bit rusty. here it is.
    So, I ran into this problem that when I put a continued inequality expression (a<x<b) in a Pass/Fail step, it will always pass. This is very easy to duplicate, say you have a local varible x = 3, in a Pass/Fail test step's Data Source Expression you put "0<=Locals.x<=2". Then it will always pass when you run it. If you set b to less than 1, say 0.5, then it will always fail. So I reported this as a bug to NI support. Here is what I got for explanation:
    NI support/application engineer:
    "I was looking into this behavior further and what is actually happening is that for "a<=x<=b", the program is evaluating a<=x, returning 1 if true or 0 if false, and then checking if that 1 or 0 is <=b. This is why a pass was always returned by your code. I still think that recognizing the continued inequality expression would be a good addition to teststand, so i will suggest this change to R&D."
    me:
    "In that case, it's just simply wrong (as a bug would cause) since it assumes that b is somewhere between 0 and 1. I don't think that TestStand should check the Boolean return value from evaluating a<=x against b, that does not even make sense or someone did not know what he was doing. It should be reported as a bug, not a feature request for future release."
    NI support/application engineer:
    "I'm sorry that you feel this way, but this syntax would be executed in the same way by any programming language. the <= or < operators are treated like any operator such as * or +, and so this behavior is completely expected by order of operations. just as a*x*b would find a*x, then apply that result to {result}*b, a<x<b calculates the result of a<x (1 or 0) and applies that result to {result}<b. I do understand your frustration, but this is not a bug; it is completely expected behavior. Please let me know if you have any other questions about this issue."
    me:
    "Do you really want me to spell this out to you?! I would feel embarrassed if I were you. But you insisted, so here it goes.
    You are correct that these operators are treated the same in any programming language. Here is where you got lost, read this again - "just as a*x*b would find a*x, then apply that result to {result}*b, a<x<b calculates the result of a<x (1 or 0) and applies that result to {result}<b."
    Why in the world that you would substitute variable x with the result from evaluating a<x for the second comparison x<b?
    The answer is that "{result}<b is just NOT the same as x<b". Do you see the problem now?
    Do you know the difference between a Boolean and an integer? 1 and 0 can be used to present a Boolean, but when you plug it in an integer comparison and it will be used as an integer which throws the whole comparison out of water. I don't think that any other programming language would do that."
    NI support/application engineer:
    "I am very sorry that you were not satisfied with my explanation of the problem. I understand that this result is not desirable, but the underlying reason is that TestStand does not understand that you are trying to compare a<x and x<b in the same statement. The continued inequality is an implied conjunction of two comparisons, and TestStand (and other programming languages) do not know how to interpret this implication. I realize that this is not intuitive, and though I would agree that a<x<b seems like it would return 1 if x is between a and b and 0 otherwise, this is not a recognized syntax by TestStand and other languages."

    Hi CT,
    I agree with you completely that this may be undesired behavior depending upon exactly what code is being written. Thanks for bringing to our attention any behavior that seems undesired, we always want to know about these types of things!
    I ran the pseudo code "a<x<b" where a, x, and b are numbers in a few different environments:
    VB6: This returns true for any x value.
    C#: This does not compile, due to a type mismatch.
    C++: This returns true for any x value. 
    C: This returns true for any x value. 
    LabVIEW: Using comparison functions, this results in a broken wire due to a type mismatch 
    LabVIEW: Using a MathScript Node, this returns true for any x value.
    I would say, generally speaking, it is accepted behavior to
    type cast a Boolean result to an integer when the next function
    requires integer parameters. In every language, using  the logical AND operator, as Jigg suggested, removes any chance of ambiguity between the coder and the compiler.  
    The good news is that the product suggestion that the support engineer filed on your behalf will still be reviewed by R&D. So, whether this is a bug or a feature request, it will get its due attention.
    Message Edited by Evan P. on 10-15-2008 08:25 PM
    Evan Prothro
    RF Systems Engineer | NI

  • Report Builder 3.0 Expression i am not able to make it work on Oracle DB Table

    Hi,
    I am newbie to SSRS Report Builder 3.0 so please be patient with me. I am trying to create a report to query Remedy Ticketing System and it uses Oracle Database installed on a Unix OS...My end objective is to do some calculation on the ticket metrics (i.e.
    percentage of tickets closed within SLA, etc) however i am stuck from the very beginning where i am not able to make my expression work...
    To begin with. my query statement...
    Select Distinct TICKET_NUMBER, Assigned_Group, Category, REGION, TICKET_STATUS,EXCEEDED_SLA, TO_CHAR(date '1970-01-01' + (TICKET_CREATION_DATE/60/60/24), 'DD/MON/YYYY HH:MI:SS AM')TICKET_CREATION_DATE
    from ARADMIN.Request
    where (Assigned_Group like 'HOTS' OR Assigned_Group like 'PAID' OR Category like 'HVD%') and TICKET_CREATION_DATE > (TO_DATE('31/DEC/2014 11:59:59 PM','DD/MON/YYYY HH:MI:SS PM', 'NLS_DATE_LANGUAGE=AMERICAN') - DATE '1970-01-01')*60*60*24
    order by ticket_creation_date
    the data type of the oracle table:
    Here is the Query Result of the DataSet:
    Basically Ticket_Status has values from 0 to 4 although from the screenshot above you only see 2 and 4...
    Ticket_Status 0 - Means Open Ticket
    Ticket_Status 1 - Means Work In Progress Ticket
    Ticket_Status 2 - Means Pending Ticket
    Ticket_Status 3 - Means Awaiting Closure Ticket
    Ticket_Status 4 - Means Closed Ticket
    I created a chart column using the expression below but it did not work...what i mean by it does not work is that the chart column output shows all Ticket_Status total count including 0, 1, 2, 3, & 4 (i.e. total count of tickets are 206)...using
    the expression i was only expecting the total count for Ticket_Status 4  (i.e. 180 tickets) but i guess i am doing something wrong with the expression syntax...
    =Count(Fields!TICKET_STATUS.Value=4) 
    i also used the expression below but it did not work...
    =Count(Fields!TICKET_STATUS.Value="4")
    i converted the Ticket_Status to CHAR on the dataset using the TO_CHAR(Ticket_Status) AS Ticket_Status then i tried the expression below but did not work...
    =Count(Fields!TICKET_STATUS.Value="4")
    i tried again the expression below but did not work'
    =Count(Fields!TICKET_STATUS.Value=4) 
    i cannot proceed to the arithmetic calculation if i cannot filter my dataset with the correct value...again i am a newbie with SSRS & report builder and i would appreciate it very much if you can guide/help me :-)

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for