Search code examples
c#.netcrystal-reports

Dynamic sort group in crystal reports


I have a sales report grouped by city and country. I need to change the order, some times the groups will be sorted by the total of sales and another times will be sorted by name (alphabetic). How can I do it? I'm using VS2013 C# and the tools of Crystal Reports.


Solution

  • You need to create a formula with if else conditions and use the formula to create a group....

    Best approach would be create a parameter and depending on the parameter selection write if else and use the formula in group expert