Sorting in SSRS

I am just going through an old post as I need a similar sorting for my report.
Old post -
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/5d64fee9-4194-4666-9518-f2133975a52a
I need it to display
1
2
3
3A
3B
4
5A
5B
etc.....
This works until it gets to 11,12,13 it puts them at the top of the list.
How do i stop it doing so?
Many thanks,
JJSJ

Hi JJSJ22,
I have tested it on my environment, if I delete the sorting on the category groups, it display the data as the order:
1, 2, 3, 3A, 3B,……10, 10A, 11, 12……
My environment is SQL Server 2008 R2 on Window 7.
If you have any questions, please feel free to ask.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Embedded images disappear on column sorts when viewing SSRS via url in an iframe

    RE:   SQL Server - 2008 R2  Reporting Services
    We deliver an ASP.Net MVC (5) application and some of the views show/display SSRS report via url in an iframe (so the report is displayed vi the web viewer).   There are images in the header of some of these reports which display correctly on the initial
    view, but "disappear" when the user uses a report column sort and/or changes the report zoom (via the SSRS web viewer toolbar). There are other quirky behaviors as well (depending on the browser), but we are dealing with IE versions 8 thru 11.  I've
    already set the ReportViewer.aspx to use <meta http-equiv="X-UA-Compatible" content="IE=7">, and our application pages/views use <meta http-equiv="X-UA-Compatible" content="IE=edge">.
    Does anyone have a "fix" for this? I know it's related to the ReportViewer.aspx and displaying the report(s) in an iframe, but I can't seem to find any information on how to fix the issue.

    Hi,
    According to your description, when you preview report through url in an iframe, the embed images can be displayed, images can’t be displayed after users used sort and changed report zoom.
    To troubleshoot the problem, please refer to the following steps:
    Run the report in Business Intelligence Development Studio (BIDS) to make sure that the images can be displayed correctly.
    The issue may be relevant to compatibility of browser, please use different browser to check whether the issue persists.
    If you are using embedded image of jpg type, please change the extension of the image to png.
    Set the ReportViewer.aspx to use <meta http-equiv="X-UA-Compatible" content="IE=8">.
    Here is a relevant thread you can reference:
    https://social.technet.microsoft.com/Forums/en-US/56650bf4-e65d-4f84-8ac0-a57cb26543b2/image-disappears-when-sorting-in-ssrs-for-server-report-on-report-vieweron-aspx-page?forum=sqlreportingservices
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Open a PDF File from a SSRS Report

    I have a requirement to include a link of some sort on SSRS reports that opens a PDF file.  If this were being implemented in an Access report, a click event using the Application.FollowHyperlink method will do the trick.  Is there an analogous
    method to accomplish this on a SSRS report, please?

    Thanks to Bipin.P !  Although I do not yet have the product installed with which to work, I found the following in the RDL specs.  So, if SSRS functionality is identical to that of an IsHyperlink textbox, our requirement will be satisfied
    easily. 
    Thanks again to all!
    From the SQL Server Reporting Services RDL (Report Definition Language) Specification document, page 41:
    Action
    The Action element defines a hyperlink, bookmark link or drillthrough action associated with a ReportItem.
    Name
    Type
    Description
    Hyperlink
    Expression (URL)
    An expression that evaluates to the URL of the hyperlink (18)
    (18) The Access IsHyperlink property of Textboxes will be supported via this more general mechanism. The Hyperlink property of the Textbox can be set to the same expression as
    the Value property of the Textbox.
    Implemented on an Access Report on 05/06/2010:
    Set the IsHyperlink property of a Textbox to Yes              
    Set the Value property of the Textbox to =”Open PDF File#C:\UPDATES\HelpFiles\UIU Boot Menu.pdf”

  • Parameter for ORDER BY in DAX query not respected

    I have an SSRS table fed by a parameterized DAX query (utilizing the methods in
    thesearticles). I have all of my parameters working just fine except for those feeding my closing ORDER BY statement (I am offloading the sorting
    to the Tabular for several reasons, including a large tested performance gain over sorting in SSRS). I have defined the ORDER BY as follows:
    ORDER BY @Order1, @Order2, @Order3, @Order4
    I cannot get even the first parameter to work. I can pass arbitrary strings with no impact on the report returned, though if I hard code the ORDER BY in the query, the ordering is respected, so I know this is a problem with the parameter.
    Running a Profiler trace on the server when I fire the SSRS report returns the following as the parameter value for @Order1:
    <Parameter>
    <Name>Order1</Name>
    <Value xsi:type="xsd:string">Dimuser[UserID-Name]</Value>
    This is exactly what I want to replace @Order1, and when I hard code that exact string into my query I get the behavior I want.
    I have played with \ escaping the brackets to no avail.
    Any insight is greatly appreciated.

    I have discovered a workable solution to my own problem.
    The parameter is passed and interpreted as a quoted string, rather than as a field name.
    I altered my query to follow this general format:
    ORDER BY
    SWITCH( TRUE()
    , @Order1 = "User", DimUser[UserID-Name]
    , SWITCH( TRUE()
    , @Order2 = "User", DimUser[UserID-Name]
    In this way I am comparing two quoted strings for equality and providing an unquoted field identifier that Tabular recognizes and can order by.

  • Ssrs 2008 r2 use parameters for sorting purposes

    In an ssrs 2008 r2 report, I have a report where a user wants to sort a report based upon the following parameters:
       1. lastName,
       2. firstName, 
       3. studentNumber,
       4. [School Name].
    The above is the default order of how the user wants to be able to sort the report.
    The following is the definition and the columns that are to appear in the report:
             studentNumber varchar(15)
     ,lastName varchar(40)
     ,firstName varchar(35)
     ,[School Name]  varchar(40)
     ,[School of Assignment] CHAR(3)
     ,grade varchar(4)
     , Description varchar(50)
     ,[Beginning Date] smalldatetime
    The above columns are all contained in one tablix.
    The user wants to be able to sort the report by changing the parameters that I just listed
    above.
    Thus can you show me code and/or point me to a url that would show me how to allow the user to sort
    the report in any order based upon the 4 parameters listed above?

    The interactive sort is not what the user wants. The user wants to be able to change the default sort order by using a sort parameter value.
    I know that the tablix and the detail rows of a report have a sort option. I want to be able to connect, the sort parameter values with the tablix sort. I have seen on the internet where each sort parameter value can be represented with a number value.
    I don't  care what is easier, I want to do what the user is requesting. Thus can you show me code on how to accomplish this goal?
    Ok. I just gave you a better option
    If you still want it to be based on parameters you can add one more parameter to your report called SortBy with values of your fields. Then inside sor expresson for your tablix use an expression like
    =Fields(Parameters!SortOrder.Value).Value
    and it will automtically sort based on field you choose from parameter
    Only thing you need to make sure is that values given for SortBy parameter combo should be exactly same as your field names used in your report dataset.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Ssrs 2008 r2 pass paramter value to a sort

    In a new SSRS 2008 r2 report, I am going to be using sql within a dataset and not a stored
    procedure since will I need to pass multiple values to each parameter.
    One of the parameters that I will be working with is allowing the user to be able to pick what items
    they want to sort on. The sort will have 3 items that will be always be sorted on first which are:
    year, and school_number.  The users will be able to pick additional items to sort on like grade, and teacher.
    The following is the sql that I have so far:
    select year,  school_number, grade,teacher,room,course_number, course_name
    from dbo.school
    order by  year,  school_number, several parameter values.
    Thus I am wondering if you would modify the sql above so that I can allow the user to sort on the additional parameters in any order like grade,teacher,room,course_number, course_name?
    If any part of my request is not possible, I am wondering if you would show me what is possible in the sql?

    Hi jazz_dog,
    According to your description, you want to sort the report by grade,teacher,room,course_number or course_name based on a parameter selection. If in this case, we can add an expression in sorting to achieve your requirement:
    Add a parameter named Sort with the available values below to the report:
    Label: grade                                       Value: grade
    Label: teacher                                     Value: teacher
    Label: room                                        Value: room
    Label: course_number                         Value: course_number
    Label: course_name                            Value: course_name
    Add a the expression below to the tablix Sorting:
    =switch(Parameters!Sort.Value="grade",Fields!grade.Value,Parameters!Sort.Value="teacher",Fields!teacher.Value,Parameters!Sort.Value="room",Fields!room.Value,Parameters!Sort.Value=" course_number",Fields!course_number.Value,Parameters!Sort.Value="course_name",Fields!course_name.Value)
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to sort via multi value parameter in ssrs

    I have a parameter with multi values. when the user selects ,he get of options like acount name, first name, last name.
    so if user selects firstname , the data has to sort by firstname.
    if he selects acount name , the data has to sort by account name.
    please help me how to sort the data using parameter with multivalue? in ssrs 2008.
    Thank you?

    Hi Venku,
    Based on your description, it seems that you create a parameter with available values and you want to sort the report data based on the parameter value. If the available values are the field names in the report, you can try to open the Tablix properties
    dialog box and specify the sort expression on "Sorting" tab as follows:
    =Fields(Parameter!parametername.value).value
    If the parameter allow multiple values and you want to sort the report data by more than one field, for example, sort the report data by "accountname" and then by "firstname", please add two sort expressions as follows:
    =Fields(Parameter!parametername.value(0)).value
    =Fields(Parameter!parametername.value(1)).value
    If you have any question, please let me know.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • SSRS to export report as "structured" csv file (of sorts) . . .

    I'm trying to use SQL Server Reporting Services (SQL Server 2008 R2) to produce a CSV file.  Row 1 in the CSV has to be a summary row with 8 columns.  The detail rows which follow have 24 columns.  The data in the summary row is "static"
    except for a date, a count of detail rows, and a total amount due based on the detail rows that follow.  Here's an example of what we need it to look like:
    HDR,4242,0,1,20150203,25,I,25823.18,,,,,,,,,,,,,,,,
    DTL,4242,0,1,20150203,255092,20150129,989,C,Net 0,Due Upon Receipt,12703,Some Super Customer,1001 Grandview Dr,,SomeCity,TX,US,75012,9729990000,,,,
    DTL,4242,0,1,20150203,255093,20150129,1360,C,Net 0,Due Upon Receipt,23774,Another Awesome Customer,52 Six Flags Dr,,DeepInTheHeart,TX,US,76006,8174445555,,,,
    I've been able to get the report itself to render correctly in Visual Studio or from a browser using several different approaches but they all fail in one way or another when I try to save it as a CSV (eg, a header is prepended to each detail so they end up
    side by side, header and detail end up with extra columns, etc).
    I'm clearly a far cry from an SSRS expert but this seems like it should be easy.  Can someone who
    is an SSRS expert (or at least knows more than me) give me a hint or two?  Can this even be done?
    thanks in advance for your help!

    Hi there -
    Thanks for your response.  I apologize for the delay.  I think the
    difference in your screenshot and my scenario is that I have a "header" row of sorts whereas you have no such row.  In my scenario, the first row of the CSV file must have a record type of "TRL".  This row summarizes certain elements
    of the rows to follow which are of record type "DTL".  Specifically, the TRL row, provides a total number of DTL rows in its 6th column and a total dollar amount of the DTL rows in its 8th column.  See here for an example:
    So in the report shown above, there are 177 DTL rows with a total dollar amount of $301,646.20 and it looks to be in the right format/structure.
     However, when I export it to CSV, this is what I get:
    Hopefully that demonstrates the situation but if not, let me know.
    respectfully,
    java_dude

  • Sort and fill color SSRS

    I have one report i want to sort the year as well as month change the background color row wise.
    like
    2011    january          red
                february            red
              march             green
    2010
               january            red
               february             green
               march              pink
    According to the color column text color name   the row  background color has to be change.

    Hi,
    Once you rendered the data in the Tablix. You can do Group by Year and Sort by year & Month. Hope you have done like that only as per the screenshot i understood. Since the month is in characters if you sort the month it will come like this only. So
    we can write a Case statement to identify the months in number (if January then assign 1, Feb then assign 2 like that) and have this number in a separate column as month_order. While sortiing give "Sort by Year,month_order". This will satisfies your sorting
    issue i guess.
    And color the row u did't give in detail so i understood like alternative row. U can use the below expression in the row background color property "=IIf(RowNumber(Nothing)
    Mod 2 = 0,
    "Silver",
    "Transparent")"
    Thanks & Regards,
    Sridhar V
    Dont forgot to "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful

  • SSRS - Interactive sorting based on aggregate function

    Hi,
    I'm trying to add interactive sorting to one of the columns in my tablix.
    The soring should be based on the LAST visit date of my child grouping. However interactive sorting is not compatible with aggregate functions apparently.
    I'm using the following expression to sort on the period since the last visit:
    =DateDiff(
    "d"
    ,LAST(CDate(Fields!Visit_date.Value))
    ,Today()
    Anyone an idea how to get this done?
    Regards,
    LiskieWhisky

    Thanks for the input,
    Qiuyun Yu: I already applied your method but my issues is that the visit dates are on de level of my
    child grouping and per child multiple visit dates are possible. Since I want to complute the days since the last visit I need to take the last visit date and subtract it from today's date.
    As you can see there are 2 dates. To compute the days since the last visit I take the last visit date (2015-04-17)
    and subtract it from today (2015-04-27). This gives me 10 days. That's ok, no problem there.
    But because I'm using the Last() function, I cannot use this expression in the Interactive sorting expression.
    LucasF: You are right, but if it's possible to do this in the report I'd prefer that. But ultimately if it's necessary I'll have to do it in MDX then.
    Kind regards,
    LiskieWhisky

  • SSRS Interactive Sort Headers Not Showing

    I've written a basic report 7 columns and added interactive sort, but the sort buttons do not show in my headers when i run the report, suggestions?

    Hi ,
    Interactive sorting based on Textbox Properties.
    So i'll suggest you to select first column Header textbox -> Textbox Proprties -> Interactive Sorting -> check enable option -> sort by column
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem.

  • SSRS - How to do this sort of pivot?

    I have following data when I get totals for area, group based on the open close items. The data needs to be reported as a pivot table. Area, groupnames are parameter filters , if they select just grpB, grpA should not be displayed in pivot table. I am not
    sure how this could be achieved. Can you please give me pointers how to resolve this?
    area_name group_name
    Quarter open
    closed all
    xx grpA
    1 2 3
    5
    xx grpB
    1 4 2
    6
    yy grpA
    1 1 1
    2
    yy grpb
    1 2 1
    3
    zz grpA
    1 3 1
    4
    zz grpb
    1 1 1
    2
    xx grpA
    2 2 2
    4
    xx grpB
    2 4 1
    5
    yy grpA
    2 1 1
    2
    yy grpb
    2 1 1
    2
    zz grpA
    2 2 2
    4
    zz grpb
    2 3 1
    5
    area_name Quarter
    grpA grpB
    total
    open close
    open close
    xx 1 2
    3 4
    2 11
    yy 1 1
    1 2
    1 4
    zz 1 3
    1 1
    1 6
    grand totals 1
    6 4
    7 4 21
    xx 2 2
    2 4
    1 9
    yy 2 1
    1 1
    1 4
    zz 2 2
    2 3
    1 8
    grand totals 2
    5 5
    8 3 21

    Hi startrek12,
    I have tested on my local environment with all the sample data you have provided and the same structure of table, you don't need to use the pivot function to convert the column and rows, as
    Uri Dimant mentioned that matrix which have the similar layout as the pivot function that will help you design the report like you required.
    Details steps about how to design the matrix to get the layout below for your reference:
    designed the matrix like this:"Area" in the row group, "Quarter" in the Column group, "Group_Name" is the child column group of the "Quarter":
    Right click the "Group_Name" in the matrix to select the Insert column and "Inside group-right" and type the "Total Group" and use expression below to get the total of each group in each Quarter:
    =Sum(Fields!Opened.Value)+Sum(Fields!Closed.Value)
    Right click the "Quarter[Quarter]" in the matrix to select the Insert column and "Inside group-right" and type the "Total Quarter" and use expression below to get the total of each Quarter:
    =Sum(Fields!Opened.Value)+Sum(Fields!Closed.Value)
    Right click the "Quarter[Quarter]" in the matrix to select the Insert column and "Outside group-right" and type the "Total Area" and use expression below to get the total of all the Quarter:
    =Sum(Fields!Opened.Value)+Sum(Fields!Closed.Value)
    Final report structure and Preview result like below(The two express in the same color are the same):
    If you still have some problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • SSRS IIF Returning #ERROR

    I have an expression in my SSRS report that calculates a field Total across multiple groups:
    =IIf(SUM(Fields!sales_Dollars.Value) > 0 ,(SUM(Fields!Total_Defective__.Value)/IIF(SUM(Fields!sales_Dollars.Value) <= 0, 1, SUM(Fields!sales_Dollars.Value))),0)
    I had to alter it by adding groups within the statement:
    =SUM(IIf(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") > 0 ,(SUM(Fields!Total_Defective__.Value,"Item_Process_Group")/IIF(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") <= 0, 1, SUM(Fields!sales_Dollars.Value,"Item_Process_Group"))),0))
    The problem is that there is a 0 in the denominator of one of the rows in the calc that is not in the group specified in the clause. This causes an #error. (at least I believe this is the cause)
    is there a way to slip in a check for zero in **Fields!sales_Dollars.Value** with no group? sort of like how it does it in the first code example.
    I need the group names in the bottom portion to pull the correct values.

    Hi,
    I have tested with your sample data, its working fine for me with your expression as shown in the below screen.
    you can see my sample RDL.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Process</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Total Defective </Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>sales Dollars</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox5">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>COQ</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>11pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox5</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Process">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Process.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Process</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Total_Defective__">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Total_Defective__.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Total_Defective__</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="sales_Dollars">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!sales_Dollars.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>sales_Dollars</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox6">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=iif( Fields!Total_Defective__.Value&gt;0, Fields!Total_Defective__.Value/Fields!sales_Dollars.Value,0)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <Format>0.00;(0.00)</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox6</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox26">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox26</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Total_Defective__1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!Total_Defective__.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Total_Defective__1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="sales_Dollars1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!sales_Dollars.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>sales_Dollars1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox29">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=SUM(IIf(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") &gt; 0 ,(SUM(Fields!Total_Defective__.Value,"Item_Process_Group")/IIF(SUM(Fields!sales_Dollars.Value,"Item_Process_Group") &lt;= 0, 1, SUM(Fields!sales_Dollars.Value,"Item_Process_Group"))),0))</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox29</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="Item_Process_Group">
    <GroupExpressions>
    <GroupExpression>=Fields!Process.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Process.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixMembers>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <KeepWithGroup>Before</KeepWithGroup>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.37in</Top>
    <Height>0.68in</Height>
    <Width>4in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>IIF</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>16pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>1.3in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>0404c681-a734-438b-8708-447809487513</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>select *
    from sales</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="Process">
    <DataField>Process</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Total_Defective__">
    <DataField>Total_Defective__</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    <Field Name="sales_Dollars">
    <DataField>sales_Dollars</DataField>
    <rd:TypeName>System.Decimal</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>4435f425-143e-441c-b41a-7c5407db2b37</rd:ReportID>
    </Report>
    Run the RDL by create sample table and data as shown below:-
    create table Sales(Process Varchar(50),Total_Defective__  numeric (10,2),sales_Dollars numeric(10,2))
    insert into Sales values
    ('abc',0,2423.74)
    ,('abc',0,1184.64)
    ,('abc',15.02,569.72)
    ,('abc',26.79,0)
    ,('abc',4.05,22894.08)
    ,('abc',0,3333.63)
    ,('abc',18.42,372.60)
    ,('abc',0,465.35)
    ,('abc',0,1521.16)
    ,('abc',512.44,99142.67)
    ,('abc',6010.07,245804.00)
    ,('abc',81.79,9607.20)
    ,('abc',00.00,34597.74)
    ,('abc',00.00,27592.20)
    ,('abc',2187.23,40543.52)
    ,('abc',251.71,58263.60)
    ,('abc',44.32,45551.34)
    You edit my RDL and try to stimulate your issue and send it to me.. my RDL is in 2012.
    Thanks
    Prasad

  • SSRS Chart group dataset by Year (series groups)/Month (category groups) force intervals to start at JAN?

    Hi all,
    trying to figure this out in REPORT BUILDER, but I guess I can go to VS if needed...
    I've got a data set that says "sales" and its basically order summarycontaining:
    id, dateplaced, and other stuff...
    I want to use this dataset to show trendline for annual qty of orders
    created line chart with "countDistinct(id)" as the series for X
    category groups = groupby "=Month(dateplaced)" and label "=MonthName(Month(dateplaced)"
    series groups = group by "=Year(dateplaced)" and label the same.
    I think this is working as intended, please correct if not.
    The PROBLEM I'm seeing is that since my dataset returns data starting around september so my "axis" starts in september... I really would prefer it starts at Jan and ends in December... I can't see any way to do this...
    The only things I could think of are;
    put fake data in dataset that returns "empty" values for jan in the first year of data...
    change the query completely to make sure tehre are "year" "month" groupings... somehow...
    but both of these approaches seem to be "hacky" and not very maintainable or clear...
    Help!

    Hi noJedi,
    According to your description, you want to you have the category group in your chart always start from January. Right?
    In Reporting Services, when we set category group, the records will sort by the sequence of data in database by default. However, we can apply expression in
    Sorting so that those records can sort by the month. We have tested your scenario in our local environment, here are steps and screenshots for your reference:
    1. Create a chart and put the corresponding expression into category and series group.
    2. Right click on category group. Go to Sorting tab. Put the expression below into sorting expression.
    3. Save and preview. The result looks like below:
    Reference:
    Sort Data in a Data Region (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS Do not Group if the Field value is NULL

    I have an SSRS report that I am doing dynamic grouping on that displays an agenda with time. grouping performed on a field called subheader and then the agenda times (another field) displayed under that group subheader.
    The problem that I am having is that I want to avoid the grouping if the parameter is null. I just want to sort by the time if there is nothing in the sub header group. Times are being displayed in the wrong order for the titles where the subheader field
    is null

    The grouped items work fine however the sorting is not right for the items that are not in the group. See example below. The Time 9:45 to 10:100 should appear below the group however it is appearing in the wrong place. The sorting is out of order for the
    items where the subheader (Caseing Test) is null.
    9:45AM -  10:00AM
    Breking
    Caseing Test
    9:15AM -   9:30AM
    Case Test: 
    Expansion of Time
    This expansion is a two-phase idea

Maybe you are looking for

  • No data found error message in bi report

    Hi All, I have a RTF template in that i need to generate a blank page and display a message as "NO DATA FOUND" when query is not returning any rows, i tried using as below : IF_NO_DATA ******* NO DATA FOUND ******* END_IF_NO_DATA Under no data i wrot

  • Editing a PDF form- How to link fields in a text

    I am trying to create a basic form for a medical practice which has various sections [e.g "history of presenting illness"] that have several lines of text each. When I try and create the form and write on the previewed highlighted fields, my cursor c

  • Vendor material number

    Hi Gurus, For ROH materials, we have our own material numbers and if we take printout of po's our material code is being printed.  But our vendor requires their material number reference to be printed. is it possible? if yes where to do that. Regards

  • Cal day to no of weeks

    Hi gurus, I have a requirement, i need to caliculate the number of weeks as determined by the date period entered in the selection screen in the query. Can any clarify me. Thanks in advance.

  • Weblogic portal failure while login

    Hi, I am new to Weblogic, am using weblogic 8.1. I have started the server and when I am trying to login to the Portal, it is giving the connection error.