I create a formula "class_section": {Monthlyfeemaster.Class} & {Monthlyfeemaster.Section}
then create a formula
sum_tuition_class_section: sum({Monthlyfeemaster.Tuition Fee}, {#class_section})
it is giving an error:" there must be group that matches this field"
That's because it thinks you're summing all tuition fees in one class_section. class_section is not one of your groups. Do
sum({#class_section}, {Monthlyfeemaster.GroupFieldName})
This will add up all class_sections per group.
Class and section sound like strings though. Do you mean to sum all tuition fees per class_section. If so, your code is right but you have to create a class_section group somewhere on your report.
Related
I have a customers table with 2 columns for the name (firstname, lastname) and it contains around 100k records.
I have a scenario where I have to import new customers but their names come as a single column. Most names are simple (first and last), but some names are double names (with a space or hyphen), double surnames (with a space or hyphen) or even both.
Does using a ML.NET classification algorithm make sense to split the fullname based on a trained model from the 100k records?
I think it would be unnecessary to use machine learning methods for such a problem. You should try a rule-based method here.
Assuming the data comes in 1 column:
For example: After splitting the Text by space, is the length of the word count equal to 2? If equal, the 1st word is the name and the 2nd word is the surname.
Example 2: Does the text contain hyphen or not? If yes, what should I do? How can I determine my name and surname?
1-) What you need to do here is to create a training, validation and test set for yourself.
2-) Doing a coding with the rules you extracted from the data in the train set. (Here you need to make clever deductions by examining the data)
3-) You need to determine the most ideal rules with validation data.
Finally, you should evaluate your work by getting results on the test set with the rule you find most ideal.
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.
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
I am making a report that has several groups. Each group represents an object, and in each group the details for the object is listed in a DetailBand.
However, I can not find a way to sort the groups so that they are ordered on the report based on the name of the of the objects. I have read documentation from DevExpress that explains how to sort groups by summary functions, and how to sort within a DetailBand, but this is not helpful for my situation.
The (very) basic structure of my report is like this:
Report
DetailReportBand
GroupHeaderBand (want to order by this)
DetailBand
Any help is appreciated :)
Edit: I am doing this in code.
Using the Group and Sort option you have to first add the field you wish to group by as a sort on the report and then tick the option Show Header, this will automatically create the group header for you and sort via that group.
If you have already created the group header band you can just copy and paste the fields into the new band and then delete the existing group header band.
I have been fighting this same battle today. I've found that in my case I had to set the SortingSummary.FieldName property to the name of the field to sort on, which in my case is different than the name of the field I'm grouping on.
The name of my GroupHeaderBand is QuestionsGroup. I am grouping on a field called "GroupName", but I want the groups sorted by "LineNumber". In code, I have this:
QuestionsGroup.SortingSummary.FieldName = "LineNumber";
GroupFields.Add(new GroupField("GroupName"));
Also, make sure that the GroupHeaderBand.SortingSummary.Enabled = true. I had previously set the Function to Custom, and that was not working so I arbitrarily changed it to Avg and now it's working.
Good Luck!
I am getting the max amount per group, and I want to get the sum of all the max values but crystal report won't Summarize it. Crystal Report states the Field cannot be summarize?
How can it be done?
it's possible, but it's a bit tricky, or at least my solution to the problem is.
You have to create 2 formula fieds the first is MaxValue and its formula should be something like this:
Shared NumberVar SharedMax;
SharedMax := SharedMax + maximum(AmountField, GroupingField);
Put this field in the group footer and suppress it
then you create a second formula field called TotalMax and the code is
Shared numberVar SharedMax;
SharedMax;
Put this in the report footer and you'll have the total of all max value of each group
I have been working with summary formula in crystal report.
I am trying to calculate tution fee based on class, it is working f9 as shown below.
sum({Monthlyfeemaster.Tuition Fee},{Monthlyfeemaster.Class})
But I want to calculate tution fee based on class and section, its gives error as shown below.
sum({Monthlyfeemaster.Tuition Fee},{Monthlyfeemaster.Class},{Monthlyfeemaster.Section})
I would combine the class and section in another formula then add it to the sum formula
create a formula "class_section":
{Monthlyfeemaster.Class} & {Monthlyfeemaster.Section}
create a formula sum_tuition_class_section:
sum({Monthlyfeemaster.Tuition Fee}, {#class_section})
I'm not sure if you can get away with this:
sum({Monthlyfeemaster.Tuition Fee}, {Monthlyfeemaster.Class} & {Monthlyfeemaster.Section})
but above the steps above should work.
sum({Monthlyfeemaster.Tuition Fee}, {Monthlyfeemaster.Class} & {Monthlyfeemaster.Section})
Change this to:
Tonumber({Monthlyfeemaster.Tuition Fee}) + Tonumber({Monthlyfeemaster.Class}) + Tonumber({Monthlyfeemaster.Section})