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

Similar Messages

  • I just purchased the numbers app for iphone and was hoping I would be able to work on spreadsheets on the go and then sync them to my mac so I can continue to work on them at home - not able to make it work?  Anyone know how to do this??

    I Just purchased the numbers app for iphone and was hoping I would be able to work on spreadsheets on the go on and then sync them to my mac so I can continue to work on them at home - not able to make it work.  Anyone know how to do this??

    Hi Louise,
    The links in this thread may be of use to you:
      Mac Numbers sync to iPad numbers and vice versa. 
    Regards,
    Barry

  • Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns.:

    Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns as following.
    Database query from: AdventureWorks2014
    System.Web.Services.Protocols.SoapException: The permissions granted to user 'SQLServer2014\Mubs' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to
    user 'mujb-HP\mujb' are insufficient for performing this operation.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
    The permissions granted to user 'mujb-HP\mujb' are insufficient for performing this operation.
    Is there anybody help me out, pl
    My MSSQL Server express 2014 edition x64  and My desktop "Report Builder (RB) 3.0' is 32bit (x86).
    Does Report Builder x64 exist? I didn't see anywhere so I downloaded x86 RB

    Hi mujb,
    Per my understanding you are using the report builder 3.0 to design the report and when you click the query designer button to execute the query you got the error message above, right?
    I have tested on my local envornment and your issue can be caused by the user "SQLServer2014\Mubs"  and "mujb-HP\mujb"  haven't grant permission to the report server or the shared dataeource/dataset if you have used this.
    I would like to confirm if you have assigned both the Item-Level and System-Level role of the user above to sucessfully access the report server, If you haven't grant any access to the above user and when you connect to the report server in the report builder,
    you may got the error message:
    More details information below for your reference:
    Please execute the query in the microsoft SQL Server Management Studio to see if you have permission to execute the query.
    If the query works fine in step1, please run the report builder as Administrator and if you are using the shared datasource/dataset the issue can be cause by the you haven't grant access the share datasource, Double click to open the Datasource
    and click the "Test Connection" as below to test if it can connect successfully:
    If the "Test Connection" failed, please click the shared datasource/dataset on Report Server to check if you have grant correct permission.
    Related information about the grant permission to report server for your reference:
    https://msdn.microsoft.com/en-us/library/ms156034.aspx
    http://www.allenkinsel.com/archive/2013/01/adventures-in-ssrs/
    If your issue still exists, please try to provide more details information.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Not able to make call from Mobile(android)

    Hi,
    I am not able to make call from mobile device , i was using this till 18th Feb and after that i cannot make calls. I am using Express VPN to use skype and i checked the express VPN and it is working fine. I can make calls from my PC and laptop using express VPN. Please let me know what could be the issue , i have taken calling India subscription. I am using samsung galaxy s4 mobile and i tried in galaxy s2 also, both are not working. Please do the needful ASAP.

    Since last Tuesday a new update for Skype is available, version 4.7. You can download the latest update for Skype for Android in the Play Store. 
    With Skype 4.7 for Android, we are introducing aggressive battery savings that will allow to leave Skype running without noticeably affecting battery life. 
    This version also includes the following fixes:
    Workaround for the KitKat bug which caused a runaway process when the camera was synced in the background.
    Fix for audio and video calling on tablets that do not have Bluetooth.
    Now lists your Windows Live Messenger contacts in the Skype (default) view, not just the All contacts view.
    Could you please verify if this version solves the issue you are encountering? Please share your feedback.

  • I can not get the debugger to work on oracle studio 12.3 - It will not attach

    I can not get the debugger to work on oracle studio 12.3 - It will not attach

    APN for Tmobile is epc.tmobile.com
    MMSC is http://216.155.174.84/servlets/mms
    Here are the instructions:
    Create devel catalog (appl from this catalog can damage your phone but don't have to so if you are not sure about your needs or skills dont use it and wait for official applications from Nokia or firmware update) The software hosted in Extras-devel is NOT ready for normal users! PLEASE PLEASE PLEASE don't play with it unless you really know what you are doing. Be ready to file proper bug reports instead of posting complaints. Expected problems: crashes, battery drain, poor system performance, full disk space & more - SERIOUSLY! Don't play with Extras-devel if you haven't backed up your data or are prepared to re-flash your device.
    Application manager --> Application catalogs --> New
    Catalog name: Extras-devel
    Web address: http://repository.maemo.org/extras-devel
    Distribution: fremantle
    Components: free non-free
    Refresh catalogue
    Install fAPN and fMMS
    Run fAPN and create new APN with MMS setting which you can get from your operator or find on this page (this may not be needed for all users, see note below)
    Run fMMS and it will start with configuration
    Put APN name the same you named your MMS APN point during fAPN configuration
    Type MMSC which you can take from your operator
    Type your number starting with +
    Put max size of pics you want to have in outgoing MMS
    Save all and start sending MMS from fMMS menu.
    It is very important to put correct setting in new APN and be sure if there is proxy needed in your operator.
    WHEN YOU GO TO MMS to set your configuraions, the information should look like this
    MMSC: http://216.155.174.84/servlets/mms
    Resize Image: 300
    Your Phone Number: +##########
    NOW U ARE DONE!! =)

  • I am not able to make International calls from iPhone 5s

    I got this new iphone 5s as a gift a week days ago, and It was working all great for 2-3 days. But from last 4days i AM not able to make international calls
    Whenever I dial, I can't hear any ring going on and all I can hear is my own voice reverting back to me. Moreoever I am being charged for every call I make. I tried restarting my device, Also by connecting to itunes to find if any Update is needed but it says my iOS7 is recent no updates needed.
    Urgent help needed
    Thanks in advance.

    A call is a call so far as the phone is concerned. Internation or across the street, it doesn't diferentiate between them.
    Contact your carrier.

  • Not able to make any call with my lumia 710

    Not able to make any call with my lumia 710 though other then call everything is working fine. I chacked my SIM in other phone, i there phone i can make calls. Whats wrong with my phone?

    hi
    i am using nokia lumia since last 6 months. i am having aitel connection. till few days back i was able to make phone calls however now phone calls are immediately getting ended.  i m able to send sms, receive calls and use intenel..problem presisits only with receiving call..
    suggest me a way out..plz..

  • HT1222 I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me

    I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me
    When I logging there it told me that maximum no of iCloud's Account already activated on this iPhone.
    Please help me how can I open new iCloud's account on this iPhone
    Regard
    Faiz khan

    Set up the account using a desktop or laptop, then sign
    into that account on your iPhone.
    I am not aware of any method around the restriction once
    the maximum has been created on any individual iPhne.

  • I have a iPhone 5 and I am not able to toggle between the show my caller Id option on and off. How can I do that ??? It always shows greyed out and also because of which I am not able to make outgoing calls. So please help

    I have a iPhone 5 and I am not able to toggle between the show my caller Id option on and off. How can I do that ??? It always shows greyed out and also because of which I am not able to make outgoing calls. So please help

    Not all carriers allow that to be set using preferences in the phone. Contact your carrier.

  • I have garagaband for iOs in my iPhone 4S, I connect my squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    I have garagaband for iOs in my iPhone 4S, I connect my Squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    You got the new iphone?????   I have same problem.  I transferred audiobooks to device to find no audiobooks on device (despite it being in iTunes as if it was).  Have you found a solution?????   I even tried to change import settings on format transfer but hasn't worked. 

  • HT1937 I am not able to make a call from my phone.

    Sir,
    this is a very peculiar kind of problem I am facing and it has made my life terrible because not even your service providers are able to help me. I bought my phone from (Maharashtra-Mumbai, India) and my network operator is (airtel). My phone works all fine when am in mumbai but as soon s i leave mumbai I am not able to make an otgoing call from my phone. Everything else works just fine but cannot make an outgoing call. I have tried multiple sim cards of multiple network thinking that i might be a network issue but the problem prevails in all the network. I do not know where to go and what to do. I have an iphone5 and have been an iphone user since last 4 years but not i feel i need to change my brand as no on e is able to help me. I am told to pay (Rs. 19000) if I want a replacement but i am also told that they do not guarantee me if the problem would not prevail in that. I thought able believes in customer relationship management but it seems to be a fallacy. I can name like 10 consumers who use apple product because of my reccomendation and not I myself have no trust in the kind of customer service being provided by your company. Please help me to solve this problem. I presently stay in (Assam-tinsuki, India) and there is no aplle stor or any kind of support out here from your side, I had gone all the way to mumbai thinkng they might help but had found no support. please look into the matter soon and provide me with a handset that works all fine.
    Thanking you
    Ankur Kejriwal
    <Personal Information Edited by Host> .

    My phone works all fine when am in mumbai but as soon s i leave mumbai I am not able to make an otgoing call
    This is entirely a carrier issue.  If your carrier (airtel) doesn't provide service outside of Mumbia, this has nothing to do with your iPhone.
    i feel i need to change my brand
    This is a user-to-user tech support forum, not Apple.  No one here cares at all about your threats.
    NEVER post personal info in this public forum

  • I am not able to make outgoing call from my Nokia ...

    Hi,
    Today I observed one weird thing, I am not able to make any outgoing call from my Nokia C7 with Vodafone Sim inside it. After sometime I put some other card and It started working fine. I thought the problem is with Sim hence I put my Vodafone Sim in other phone and It also worked fine.
    Whenever I am trying to make call from Nokia C7 with old Vodafone Sim it gives error "NO ANSWER".
    But I dont understand that why Nokia C7 is not working with Vodafone Sim which was inside it since I purchased the phone.
    Please help as Vodafone customer care has nothing to do as Sim is working fine with other phones.
    Regards,
    Firoz Shaikh

    Have you accidently changed any settings?
    try factory reset the phone and try again
    type in *#7780# and enter 12345 if asked for a code
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • HT1937 Why am I still not able to make a facetime call over my cellular network (sprint) after my iOS 6 update?

    I am not able to make a facetime call after my recent iOS update. It is still saying that I need to connect to wifi when I try to do so. Does not give use cellular option in my general settings.

    You will need to contact Sprint and find out what data plan you need.
    I'm with AT&T with unlimited data in order for me to use cellular data for facetime, I would need to sign up for a different plan.

  • Hi iam using iphone 5s which is locked to EE carrer. I am not able to make a conference call using this phone in india

    Hi iam using iphone 5s which is locked to EE carrer. I am not able to make a conference call using this phone in india

    then call EE if they are your carrier

  • Did not know simple things such as removing hyphen from phone numbers will be so complicated. How do i remove the hyphen from stored phone numbers since i am not able to make a phone call using VOIP. Everytime i make a phone call i have to type the number

    Did not know simple things such as removing hyphen from phone numbers will be so complicated. How do i remove the hyphen from stored phone numbers since i am not able to make a phone call using MobileVOIP. Everytime i make a phone call i have to type the number.

    Go into your contacts and edit them.

Maybe you are looking for

  • How to delete the Downloads album in Photos (iOS7)

    Good evening! I'm writing here today to seek some help on an issue I have inside the Photos app on my iPhone 4 with iOS 7.0.4. Some weeks ago I transfered/added some pictures to my iPhone from my Mac using iTunes. I had those pictures in a specific l

  • Windows 7 -No sound

    I an very frusrated and not to happy with Creative Support. I have Creative's? X-Fi Elite Pro sound hardware installed in my Asus Maximus Extreme Motherboard. It Functioned well in Windows XP environment. I performed a clean install on to a new WD TB

  • Is there anyway to get anchored objects to always be above line?

    When I copy an object (lets say an image) in InDesign with the Move Tool (V) selected and then paste into text it sometimes it's above line and sometimes it's inline. Text wrap doesn't seem to make any difference. When I copy an anchored object that

  • VGA Studio Display compatability

    Before I buy the Mac MINI, I wanted to know if the Apple Studio Display (VGA) I used with my Cube would work with it if I get a VGA adaptor and install the Studio Display software. Thanks.

  • Export and Excise

    Hello friends  i am tryin to create an excise invoice for a particular customer. I think i have done most of the settings correctly but when i create a invoice it does create one but with a mess which says EXPORT DATA INCOMPLETE.... and then when I t