Series group sorting

Hi
I am facing one problem. In my report i need to change chart order series group sorting by report parameter
value. Is it impossible?
thanx in advence.

Hi Unbeliever,
Per my understanding you have an parameter and the order of the series group will sort based on the  value in the parameter selected, right?
I assumed that you have two values in the parameter(ASC,DESC) to define the order. you can add an expression in the Series group to change the order based on this parameter.
Details information below for your reference:
Right click the Series group to select the "Series Group properties".
Select the "Sorting" and add expression below to conditional change order(By default the order is ASC):
=IIF(Parameters!Order.Value="ASC",Fields!CarModel.Value,switch(Fields!CarModel.Value="LXI",5,
Fields!CarModel.Value="Test1",4,
Fields!CarModel.Value="Test2",3,
Fields!CarModel.Value="VXI",2,Fields!CarModel.Value="ZXI",1))
Preview you will got the chart display as below:
If your problem still exists, please try to provide more details information about the value in the parameter and also sample data in the table and so on.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support

Similar Messages

  • 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 show trend chart over column chart per series groups

    Need help in designing following report in SSRS, where I have a chart report with 2 category grouping fields and 1 series group field (as with category grouping, the reason being, i need to show columns in group of 4 joined together based on their grouping
    on top) .
    Below are my queries
    1. how to show my category grouping values on top of chart (showing group in different color) and series grouping values on bottom of chart (under each bar)
    2. I need to show trend line over each series group data.
    For example, First category group is over hotel name, second category group is over room type (deluxe, executive & suite) and one Series group over week number (for a month report), and the chart value is total occupancy (per hotel per room type per week
    number). Now for point 1, Hotel name and room type needs to be on top of the column (total occupancy) chart, where a week iteration number (1,2,3,4 for a month) at the bottom of the chart under every column.
    And for point 2, I need to show trend line per room per week occupancy was improved or not.
    Regards, Sujay

    Hi Sujay,
    According to your description, you want to display the two category group values at the top of the total occupancy value. Also you want to create a trend line over series values.
    For your first requirement, you can specify the Label data as a combination of two category group values and total occupancy values. Then change the location of series group value legend. Please refer to below screenshot.
    For your second requirement, you can add additional total occupancy values to the Chart Data panel, then change the chart type as Smooth Line.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Same number range for two different series groups?

    Dear all,
    There are two scenarios
    1.Normal export under bond case, series group is 20 and number range maintained,running number is 300016
    2.Another scenario,where ARE1 document generation for Deemed exp customer(already customised) , series group is 30.
    But, client requirement is , for this second scenario also, system should pickup running number range of series group 20(under bond case)  as per excise legal requirement
    Ie running number is for series group 20 is 300016
    For the above deemed exp case (second scenario)it should pickup 300017
    And again when they do under bond case(first scenario), it should pick up 300018 like that
    Is it possible to maintain the same number range for two different series groups(20 and 30)?
    Even if you maintain the same number range for 30, as per running number range of 20
    Will the system update simultaneously the same number range for 20 and 30 series groups?
    Please suggest the way.

    With two different series groups, it is not possible to have the same number range. Even if you maintain it, they will be treated independently.
    Normally, you should not use different series groups if the same number range has to be used. In fact, the concept of series group has been developed to ensure that number ranges can be maintained separately.
    Regards,
    Aroop

  • Excise and Series Groups

    Hi to All
    this is Mani
    can anbody tell me briefly about the excise invoices and the series gorups, and the number ranges for the objects, and transaction codes for all excise related
    thanking you

    Number Range Objects for Excise in Transaction Code: SNRO are as under:
    J_1I57FC - 57FC Number Range Object
    J_1IARE1 - ARE1 Doc No object based on Series Group
    J_1IARE3 - ARE3 Doc No object based on Series Group
    J_1IBOND - Excise Bonding: Bond number object
    J_1ICERT - Withholding Tax Certificates (India)
    J_1ICHLNNO - Internal number range for challans
    J_1ICONPLA - Consolidated PLA serial no. generation
    J_1IDEPINV - Excise Invoice Number for Depot Invoices
    J_1IEXCEXP - Export excise invoice number range
    J_1IEXCINV - Excise invoice number
    J_1IEXCLOC - Local excise invoice numebr range
    J_1IEXCTST - Excise invoice with intervals
    J_1IEXINEX - Excise invoice number for export
    J_1IINTNUM - Internally document number to be generated
    J_1IINTPR2 - Despatch serial number
    J_1ILIC - Excise Bonding: License number object
    J_1IPLA2 - PLA part II number range object
    J_1IRG1 - RG1 Number range object
    J_1IRG1_T      - No. Range for RG1 - Excise group / Material
    J_1IRG23A1 - RG23A part 1 no. range object
    J_1IRG23A2 - RG23A part II number range object
    J_1IRG23C1 - RG23C part I number range object
    J_1IRG23C2 - RG23C part II number range object
    J_1IRG23D - Folio Numbers for RG 23D
    Regards,
    Rajesh Banka

  • Default Excise and series group

    Dear All,
    We have maitnain the Excise group and series group defaults for one sales area and shipping point and the plant and series group and excise group.
    The requirement is with the same combition we are doing local sale and the deemed export.We can do this by changing document type under utilization tab in excise invoice.As We have too many transections daily  we have done  settings as create excise invoice during creation of Invoice.In this its not possible to change the excise document type.In this case we want the excise documene type should come automatically.How we can do this?
    Furhter,with the same sales area and shipping point and the plant and excise group we have different series group.We want this also default. Is there any user exit to address this scenario.
    Please give your valuable inputs.
    Regards,
    Deepti

    Dear Dipti
    you can use J_1I7_USEREXIT_EXCISE_BEF_SAVE userexit , here you are refering to changing EXPIND in J_1IEXCHDR , then change the same and try
    for determining series group you can use the user exit J_1I7_USEREXIT_SERGRP_DETERM , to determine series group
    Jitesh

  • Maintain Excise and series group determination setting

    Hi Everybody,
    In maintain excise group and series group determination setting. My all the fields are common for both domestic and export and i have to differentiate with automatic excise invoice. When i was trying to do the setting in Maintain excise and series setting. Its not allowing me to save it.
    I explain in a better way
    Sales org.      Distribution ch.      Division    shipping point    Plant     excise Group    series group     export        sub transt. type
    in03                    z1                        z1                inpa              inpa            z1                  z1
    All these fields are common for export also. when i try to maintain setting for export. i just try to add export field as export under bond.  But it stops to do that. And our company policy is we can not create more distribution channel  or division.
    Can anybody tell me how to do that or is there any user exit for this.

    Hi,
    I had created a new series group and tried to assign in the maintain excise and series group determination. But it give the same error  "target ket must be different from the source key"
    What i had done is : i had created new series group i.e z3
    and maintained setting like that
    in03         z1       z1        inpa       inpa        z1     z3       Export under bond
    when i try to save it, it gives error.

  • How do I change the number in a Top N Group Sort

    I have a report that I have grouped on a particular field (Cust.Name specifically). I then used the group sort expert and selected the Top N selection in the combo box under the Cust.Name tab. I put in a default number of 20. What I want to do is to set this number for the Top N group sort via .NET. Does anyone know the correct method for doing this in either VB.NET or C#.NET. I am using VS 2005 Pro and the embedded Crystal Reports engine for VS.NET. Thank you.
    Ed Cohen

    Hello, Edgar;
    In the bundled version of Crystal Reports 10.2 in Visual Studio .NET 2005 you will need to use the following code:
    Private Sub Set_TopN()
            Dim TopNSortField As TopBottomNSortField
            'Get the Sort field by index
            'Cast it as a TopBottomNSortField
            If TypeOf crReportDocument.DataDefinition.SortFields.Item(0) Is TopBottomNSortField Then
                TopNSortField = crReportDocument.DataDefinition.SortFields.Item(0)
                TopNSortField.NumberOfTopOrBottomNGroups = 10
            Else
                TopNSortField = Nothing
            End If
        End Sub
    In a full version of Crystal Reports there is an option to create a parameter as a number such as {?TopN} and then pass the value to it at runtime.
    In the Crystal Reports designer you need to create the parameter and then go to Report|Group Sort Expert.
    Choose TopN based on your field.
    Where N is... You will need a number there. I used 1. But then I clicked on the Formula editor [X+2] and added the parameter field {?TopN}.
    Passing the parameter at runtime ran the number I requested.
    Elaine
    Edited by: Elaine Dove on Mar 3, 2009 12:12 PM

  • Sum of a sum when using Top N in the Group Sort Expert

    Hi All,
    I have a small problem I can't quite seem to work out.
    I have a report where each line is for a particular Product, and is a summation of the Sales for that Product over several Locations. When you click on the line, it shows the breakdown of Sales over each Location.
    I use the Group Sort Expert to display the Top N results, where the 'N" is set in a formula to a parameter passed in to the report, so the user can select the top 5,10,50 etc. Products across all Locations.
    At the bottom of the report, I want to have a sum of a column of Sales $. I need that sum to only be a sum of the Top N records selected.
    Since each line is a summation of the all the products for the Locations, what I need is a sum of that sum for the Top N, but Crystal will not let you add the sum of a sum, so I'm not sure how to accomplish this.
    If I just do a sum of the underlying values I get a total for all the Products, regardless of the Top N.
    Hope that makes some sense !
    Many Thanks
    Paul

    Hi Sastry,
    I tried your suggestion, thanks, but I don't think it's the answer. For a start Crystal will not let me do that, it pops up a message box when I try to run the report "A running total cannot refer to a print time formula. Details: Record Number". I also added the record number field next to the lines in the report to see what the result would be, and I don't think it would work anyway.
    Here is an example using Units sold:
    Product Name--LocationUnits Sold--Record Number
    Product A -<All Stores>----8
    Store A--1--
    1
    Store B--3--
    2
    Store C--4--
    3
    Product B--<All Stores>--3      
    Store A--2--
    4
    Store B--1--
    5
    Product C--<All Stores>--
    1
    Store A--1--
    6
    Note that only the bold lines are shown in the report,. If you click on the bold line, then the breakdown of the stores is shown. For the above example, I am showing the Top 2 units across all stores (so Product C is not shown at all), but there are actually 5 records, so if I used a formula where RecordNumber <=N, where in this case N=2, I would get a total units sold of 1 + 3 (records 1 and 2) which is incorrect.
    I will have more of a think on this and see if I can find a solution, in the mean time, any other suggestions ? Is there some wya of checking if the line is visible maybe ?
    Thanks for your time !
    Paul

  • [Forum FAQ] How do I add an average line to series group on SQL Server Reporting Services column chart?

    Introduction
    In SQL Server Reporting Service (SSRS), you may need an average value on column chart.
    For the above chart, add an average score line to the chart, you can get which student’s score is larger than average score, and which student’s score is less than average score clearly. This document demonstrates how to add an average line to series groups
    on SSRS column chart.
    Solution
    To achieve this requirement, you can add another values to the chart, change the chart type to line chart. Set the value to average value of the series group and set the line to show only once by using expression. Please refer to the link below to see the
    detail steps.
    Click the chart to display the Chart Data pane.
    Add Score field to the Values area.
    Right-click the new inserted Score1 and select Change Chart Type. And then change chart type to line chart in the Select Chart Type window.
    Change the Category Group name to Subject. Here are the screenshot for you reference.
    Right-click the new inserted Score1 and select Series Properties.
    Click the expression button on the right of Value field textbox, type the expression below:
    =Avg(Fields!Score.Value,"Subject"))
    Click Visibility in the left pane, select “Show or hide based on an expression”, and type in the expression below:
    =IIF(Fields!Name.Value="Rancy",FALSE,TRUE)
    Name in the expression is one of the Students. Then only one line chart is be displayed by using this expression.
    Click Legend in the left pane, type Average_Score to the Custom legend text box.
    The report looks like below:
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • Creation of series group for suncontracting challan

    Hi
    While doing a subcontracting challan using J1IF01 , An error comes series group 101 is not maintained. How can i maintain a series rtoup for subcontracting purpose?
    regards
    B Shar

    Dear B Shar,
    You can maintain your series group 101 in path
    IMG - (Logistics - General) - Tax on Goods Movements - India - Basic Settings - Maintain Series Groups.
    I hope this can answer your problem.
    Regards
    Gunawan

  • Group Sort on formula field

    I am using CR Professional 11.5 on Windows XP/Progress platform.
    I have a formula field that calculates the GM% on the Employee Group Footer level and want to sort the employees in descending order by GM%.  I have gone in circles trying to calculate this field differently in order to be able to perform a Group Sort but this GM% cannot be summarized, which would allow me to use the Group Sort Expert.
    The fact that GM% is used in businesses world-wide each and every day makes this unbelievable that it should prove to be this difficult.  Is there something that I am missing as a newbie to CR design? 
    Any help provided is greatly appreciated!
    Marlene Human

    That's so awesome!  If only I knew how to use sql commands!  Everytime I try to create one it has errors that I dont' understand.  Do you know of a site for sql syntax that might help me to do this?  I have looked and can't find what I need to make this happen.
    So what I need to do is to use 'Formula Workshop' and create a new SQL Expression Field?  Using the formula above, how would this look in SQL?
    Thank you so much for your help...I am so grateful!!!  I have been working on this for months and keep hitting this snag.  I first started out using a cross-table and got confused because you can't summarize the GM% so I then changed the summary to 'weighted average of GM% with Tech/Rev' so that helped, but the Total per Employee has been keeping me stumped. 
    Thanks again.

  • Group/Sort Summary Totals for Duration % Complete not working

    Hello, I'm new to this forum and have used p3 off and on years ago and had some exposure to p5, my background is more toward Project Controls - Cost management rather than scheduling. Here is my issue/question: I was told by the PM not to baseline the schedule (I know, I should have but I didn't, I did as I was specifically requested), that is a topic for another day, however. I am trying to understand the process of the % completes on my resource loaded schedule which all activities are set to duration percent complete. The schedule has roughly quarter of the activities which have been actualized, but my issue is with the "Summary Totals" of the duration % complete when I select that option in the Group/Sorting. All of the activities in a group for example will show 0% complete but the Summary Total of those activities will show greater than 0% or some of the activities duration % completes show a value greater than 0% but the Summary Total of those activities show 0%. What is causing this and why are they not consistent? Any help is greatly appreciated!
    Shannon

    I'm currently showing the duration % complete with a renamed label. The total is not rolling up to the summary. I've also discovered that the unit % complete is not calculating correctly too I believe. For example: I have 3708 budgeted hours and have expended 656 hours and the Unit % Complete is showing 19.08% when I would have thought that the % would have been calculated based on Actual Units (656) / Budgeted Units (3708) totaling 17.69% not 19.08% which it is showing. I cannot find in the reference manual how the percent completes are calculated for units nor in the help section of the software itself either. An explenation would be greatly appreciated!
    Shannon

  • Use parameter to specify "N" in Top N Group Sort

    I've successfuly set up a parameter which is passed to the Group N Sort criteria.
    Is there a way I can use this to set NO group sort? I've tried setting it to zero & 999999999 but it falls over.

    I think you can enter the values only between 1 to 32767. You can try creating a sample report with groups in it and go to group sort expert and select top N and try to add the value 0 then you will get a popup saying "Please enter an integer between 1 and 32767"
    Regards,
    Raghavendra

  • Default excise group and series group issue

    Hi Gurus
    I have a doubt. Is it possible to maintain the default excise group and series group in this order
    sales org     dis chnl    division    ship pt    plant    excise group    series group
    1000               EX         CD             1000     1000       10                       A1
    1000               EX         CD             1000     2000       20                       A2
    i tried this combination, but getting the error message that a key already exists....The header data sales area and shipping point already exists.... I cant understand why we cant give the same sales area and shipping point for a new plant combination
    Thanks in advance
    Mathan

    Hi Mathan,
    When we say Excise group then it is maintained for the plant as it is maintained with Excise authorities. We can have same shipping point for 2 different plants but the possibilities are less and when 2 plants share the resources and facilities then those plants are registered as a single excise entity with the authorities. That is the reason that the option of having the same sales area and shipping point as header data is not allowed for more than one excise group. This is more business related than SAP.
    Hope this clarifies the doubt.
    Regards,
    Antima

Maybe you are looking for