How do I Format Decimal Places to 0 or 2 Decimal Places

Hi All;
Below are the exp in SSRS 2008
I need to
To covert negative values into brackets use the below code code
and to convert decimal value to decimal and non decimal value to integer use the below custom code
for e.g 1.5 is displayed as 1.5
2 is diaplyed as 2 and not 2.0
Any help much appreciated
Thanks
=IIf( Fields!new_outputs.Value = "Jobs Created" or
Fields!new_outputs.Value = "Jobs Safeguarded",
(Lookup(Fields!new_mainprogrammeid.Value & "," &
Fields!new_outputs.Value & "," &
Fields!new_claimmonthid.Value,
Fields!new_mainprogrammeid.Value & "," &
Fields!new_outputs.Value & "," &
Fields!new_claimmonthid.Value,
Fields!new_fte.Value, "JobOutcome"))
(Sum(LookupSet(Fields!new_mainprogrammeid.Value & "," &
Fields!new_subprogrammeid.Value & "," &
Fields!new_outputs.Value & "," &
Fields!new_claimmonthid.Value,
Fields!new_mainprogrammeid.Value & "," &
Fields!new_subprogrammeid.Value & "," &
Fields!new_outputs.Value & "," &
Fields!new_claimmonthid.Value,
Fields!new_programmeoutputid.Value, "ProgrammeOutput").length()))
Sum(Fields!new_profilenumberValue.Value)
Pradnya07

Hi 
Below are the custome codes in SSRS 2008 
To covert negative values into brackets use the below code code 
#,0;(#,0)
and to convert decimal value to decimal and non decimal value to integer use the below custom code
for e.g 1.5 is displayed as 1.5
2 is diaplyed as 2 and not 2.0
"#,##0.##" 
But if i want to join both this custom code in one cell how do i do it?
Any help much appreciated
Thanks
Pradnya07

Similar Messages

  • How we can increase decimal places in Sales Order for Qty

    Hi,
    In Sales Order qty field now its 3 decimal places for MON unit of measure but we want 4. how we can increase decimal places.
    Thanks in advance
    Thanks & Regards,
    PM

    To elaborate better.
    Again, use Tcode CUNI - Unit of measurement : Initial Screen.
    At initial screen, choose TIME from the list (where by default AAAADL- no dimensions is there).
    And click on UNIT OF MEASUREMENT button.
    In that you will find MON - Month.
    There go for details by selecting MON or select MON and press F5 from Key board.
    For MON unit maintain following parameter as per your requirement:
    -Number of decimal places for number display
    Use - This parameter determines the number of decimal places with which this measurement unit is displayed.
    -Base ten exponent for floating-point display
    Use - This exponent determines how the values for this measurement unit are formatted as floating point numbers.
    Examples - If the exponent is 3, the floating point numbers have the format xxx.xxxxE3.
    And deselect commercial meas. unit in application parameters section.
    I would suggest instead of changing standard settings of MON, you create ZMON in TIME dimension.
    Thanks & Regards
    JP

  • Without to change the setting.how to set the decimal place to 7 for an UDF.

    Without to change the setting, how to set the decimal place to 7 for an UDF?

    Hi
    Once you create a UDF it will automatically be binded to the data source of data type that you gave at the time of creating UDF.
    So i think you can not set the decimal places without changing the setting in display parameters.
    i am not sure whether it will work or not one thing you can try is that create it as a alphanumeric data type and convert your decimal value to sting and then assign it to UDF,While retrieving for any manipulation you convert it as decimal.
    Hope it helps you
    Regards
    Vishnu

  • Workflow : How we can have decimal instead of comma in the trigerred mail

    Dear Experts ,
    How to resolve comma in place of decimal while Triggered mail from workflow.
    Whenever a mail is trigerred from workflow system a comma is coming for the decimal digit in the currency field . How we can have decimal instead of comma in the trigerred mail.
    Would be grateful for your comments .
    Thanks,
    Sachin

    There  are different approaches.
    You can try this approach.
    Example: amount filed
    write t_menge to t_menge right-justified.
              if t_menge+13(1) = ','.
                t_menge+13(1) = '.'.
              endif.
    Regards,
    SaiRam

  • How to set the decimal point to 0

    heres the problem
    i have a double variable which is equal to 0
    when i do calculation like :
    variable=0*0;
    then the result will be 0.0
    when printed
    how to fix this??

    Tech tip article on formatting decimal numbers:
    http://java.sun.com/developer/TechTips/2000/tt0411.html#tip1
    JavaDoc on the java.text.DecimalFormat class:
    http://java.sun.com/javase/6/docs/api/java/text/DecimalFormat.html
    Java Tutorial on number formatting:
    http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html

  • How can I format the number in ?shape-text:

    Hi All,
    I am using shapes in the rtf template. I need to format the number which is used in the shape as
    <?shape-text:mytagname?>
    now mytagname has inconsistent values in the xml like 3, 4.5, 3.55. I want to format this to two digits after decimal i.e 0.00 format.
    How can I format the number in <?shape-text: ???
    Regards,
    Amit Deshpande
    Persistent Systems Ltd

    Hi Amit,
    <?shape-text:format-number(4.5,'#,##0.00')?>

  • Formatting Decimal Numbers

    I would like to know how to format a Decimal number in java.....for example if i have this number 12.33423231 how can i format it to get it like this: 12.334..???
    Thanks

    java.text.DecimalFormat. If you are 5.0 or later, the printf() method takes formatting masks as well.
    - Saish

  • How to fix the decimal part(round) i.e. fix the size of float.

    how to fix the decimal part(round) i.e. fix the size of float.

    You can use BigDecimal to round of your number.
    float f = 5.678f;
    f = new BigDecimal(f).setScale(2, BigDecimal.ROUND_HALF_UP).floatValue();If you just want to display the float with a certain number of decimals, you can use java.text.DecimalFormat
    DecimalFormat df = new DecumalFormat("0.00"); // two decimals
    float f = 5.678f;
    System.out.println(df.format(f)); // should show up as 5.68

  • Format decimal values by using comma

    hi,
    Can anyone tell me how to format decimal value in JTextField by using comma. Since this JTextField is used to display amount,so i would like to put comma after three digits. That means it should look like this : 100,000,000.00. This JTextField is the total of another 9 JTextField values, that means when i edit values in another JTextField, the total value will be upated as well. I have used KeyEvent to do so , now i just have no idea how to apply comma in the total. Thanks for any help.
    Regards,
    marcalena

    Hmm....
    First off, this is not ideal... I would seriously consider updating your JRE...
    public class MyDecimalDocument extends javax.swing.text.PlainDocument
    ///init code
    public void insertString(int offset, String newString, javax.swing.text.AttributeSet set) throws javax.swing.text.BadLocationException
    //code to handle the inserts and restrict/apply various formatting....
    }Or check out [url http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Swing&qp=forum%3A57&qt=formatting+JTextField]this search for more...
    :)

  • Using Adobe Acrobat XI, uploaded my form from my Word. How do I format spaces for SSN, DOB, Phone number?

    I'm trying to create a new client form how do I format the spaces numerically for DOB, SSN and phone number??? HELP! Can I do this on Adobe Acrobat XI????

    Not sure what you mean by uploaded form. Did you print to the Adobe PDF printer, use the Save As Adobe PDF, use Save As PDF or XPS, use the Acrobat menu in WORD, or try to open the word file in Acrobat directly? Assuming you printed to the Adobe PDF printer, then you select the TOOLS>Interactive and select the Form Wizard. Otherwise, you simply use the tools under the interactive menu. You might find the following video useful: http://acrobatusers.com/tutorials/how-to-create-pdf-forms-from-existing-documents. The form tools are under the interactive menu (I could give better direction if I was at home where I have AA XI).

  • How do I format an external drive with mountain lion?

    How do I format an external drive with mountain lion?

    Applications > Utilities > Disk Utility
    select the external drive in the left pane
    partition and format in the right pane

  • How do i format an external hard drive for use on both windows and mac book air?

    how do i format an external hard drive for use on both windows pc and mac book air?

    Use exFAT on the PC.
    (71374)

  • How do you format cell size in numbers for multiple cells at the same time?

    How do you format the cell size of multiple cells at once in numbers?

    select the cells you want to format by clicking at the top-left most cell, then shift click the bottom-right most cell.
    Then open the inspector by selecting the menu item "View > Show Inspector", then click the table inspector segment:
    now use the row height and column width fields to adjust as needed.
    You can also select multiple rows and columns by clicking in an active tables row/column header, then dragging to select rows (or column), then hover the cursor on the line the separates rows (or columns) until the cursor changes to a bar with arrows, then click, hold, and drag as needed.

  • HT2513 How do I format calendar so it goes Monday - Sunday, instead of Sun - Sat?

    How do I format calendar so it goes Monday - Sunday, instead of Sun - Sat?

    Go to the iCal menu>Preferences>General.
    You can select the day you want to start the week on...Sun, Mon or any of the remaining five.

  • How to create a new place in iPhoto 11 without doing any harm?

    Yes, I know how to create a new place for a photo -- theoretically:
    Select the photo.
    Make sure the Info icon in the lower right portion of the iPhoto window is clicked and the too-tiny-for-any-but-the-youngest-eyes map is displaying.
    Click in "Assign a Place..." and begin typing a place that iPhoto will search for.  It searches in both "your places" (i.e., those that you have already defined) as well as in Google Maps.
    When you see a place in the search results list that you think might be close to the one you mean, select it.
    A pin appears on the itsy-bitsy map.  Move it to the exact place you mean.  You can make controls appear on the map by moving the mouse over the bottom of the map.  The controls allow you to zoom in and out, and to change views (Terrain, Satellite, Hybrid).  When the pin is where you want it, click it. The current name of the location appears.  Modify it to the name you want, then click the check mark.
    That's "all" there is to it ... except for a couple of "gotchas."
    There's a difference between what happens when you select a place that you've defined and when you select a place that Google found in the search results.  If it's a place that you've defined, and you then move the pin to a new location and/or change its name, this will affect all photos assigned to the custom place.  In effect, you are modifying the place.
    All places have a radius associated with them, thereby making them circles.  You can adjust the radius only in the Maintain My Places window.  In the itsy-bitsy map it doesn't even appear.  However, if the newly defined place overlaps existing ones, all the photos assigned to the overlapped places will be assigned to the new one.  Their pins will remain where they were.
    Now, before anybody suggests sending feedback to Apple, let me emphasize that I have been sending Apple feedback on the wrong-headed implementation of Places since iPhoto 9.0.  New versions have come and gone (the current one is 9.1.2), but these "features" have remained.  So my purpose in opening this thread is to consolidate work arounds to these "features" in one place.  My work around: 
    Whenever I define a new place, I select only a single photo.  I try to name my places so that I can distinguish them from those that Google finds.  In order to avoid Gotcha 1 I select a place that Google finds and try to place the pin close enough to where I want it, but far enough from any other places that I've defined.  I give it a name that I can easily find it Manage My Place.
    I immediately open Manage My Places and select the new place.  I first note the pins near it, then decrease its radius, move the pin to the desired location, note the nearby places, and give it its final name.
    I then view Places and navigate to the new place to view the photos assigned to it.  If I'm lucky, there's only one.  Otherwise, I have to reassign the other photos to their correct places.
    Richard

    So... in the hope it will not confuse folks more, let me be more specific of a procedure that works for me...
    Procedure to create a new My Places location.
    OK there is more you can do with a non-GPS Coord linked photo.
    Click Info and then click Assign a Place in the lower right of screen. (if your photo has a location linked to it already the Assign a Place will NOT show up.)
    Choose a location name near the actual location that Google Maps can find.
    Click that location in the Google Maps list that appears and your photo will be temporarily assigned to that location.
    Now  type over that  location name in order to make sure to give that location a unique name that will show up in your My Places list and click that name after you have typed it  to be sure it is accepted.
    Now in iPhoto click Window/Manage My Places and go the that newly named location in the large My Places map. There's no easy search. You have to run down through the alphabetical list.
    Drag the flag to the location you want this place to be and click Done.
    The location name is now in your My Places list at the location you dragged the flag to!
    It is important to note that only your unique named locations show up in your Places list, so if you want to modify the location coordinates you have to establish a unique name for it.
    This is much more complicated that previous iPhoto versions!
    But Yeah!!!!!!!!!!
    It really works!!!!!!!

Maybe you are looking for

  • Constant Simulation Errors

    Hey everyone I have been trying to make a rather simple relay control timing circuit and I keep running into errors when I flip the trigger swithch. I get a simulation error that wants me to run a convergence check. When I run the check, it will not

  • How to import photos into iPhoto?

    I have photos to import to i photo, what is the quick method?

  • Ghost images in Browser windows

    I now have may thousands of photos and iPhotos is struggling to cope. I am trying to use Aperture but find it very frustrating. Whenever I try and look at images on browser they are ghost images (just dotted lines around) and I can only see them if d

  • Where are the developer resources and documents?

    Hi, I search for that document http://developer.sonyericsson.com/community/docs/DOC-3086. Why have you removed it? Many sites refer to that document. Who has a copy of that document? Thanks in advance.

  • How to convert/move Mail POP accounts *with folders/subfolders* to Gmail for Business?

    I currently have several email addresses for my two domains, an Earthlink account (which I will phase out eventually) and a couple of Gmail accounts. They are all POP accounts. I would like to convert to Gmail for Business, but I can't figure out how