Report grid tools
Most smart reports show their result in a table. alameen ERP 10 gives you a set of tools for that table: you sort, group, summarize, search, add columns and highlight values without running the report again. This page lists every command, button and window of those tools. For the steps, see Sort, group and summarize a grid, Search inside a report grid, Add a calculated field and Apply conditional formatting.
Opening the tools
The tools belong to the report viewer. See Report viewer for the window itself.
- Click inside a table. The ribbon moves to the Tools tab. The tab shows only while a table is the selected panel. For pivot tables and charts, see Pivot table tools and Chart tools.
- The Conditional Formatting tab shows while a table or a pivot table is selected.
- The Search Tools tab shows while the search bar of the table is open.
- Right-click a cell, a group row or a total to open the table menus. See Right-click menus.
What you can do depends on the report. A report may switch off sorting, grouping, summaries or filtering for a table. A command that the report switches off is hidden or disabled.

The Tools tab
The tab has these groups. Some groups appear only for some tables.
Clipboard group
| Button | What it does |
|---|---|
| Copy (Ctrl+C) | Copies the selected rows, with the column headers, to the Windows clipboard. When the selection mode is Cells, it copies the selected cells. |
| Copy without header (Ctrl+Shift+C) | In the drop-down of Copy. The same, without the header row. |
Copying, with the two buttons and with Ctrl+C, needs the Export Reports permission. Without it, the message "You do not have permission to copy data." appears and nothing is copied.
Selection group
| Button | What it does |
|---|---|
| Select | Opens the selection commands: Select All (Ctrl+A), Select Columns (Ctrl+Shift+A, works in Cells mode), Invert Selection (Ctrl+R) and Clear Selection. |
| Smart selection items in the same list | Select the rows (or the cells of the selected columns) whose value in the current column relates to the value of the current cell. See Smart selection. |
| Rows | Check button. Clicking a cell selects its whole row. |
| Cells | Check button. Clicking a cell selects cells, and you can select a block of cells and copy it. |
The two modes apply to the table and its detail tables together.
Smart selection
The items work on the current column. First click a cell, then choose an item. The program compares the value of every row in this column with the value of the cell you clicked, and selects the rows that match. It clears the old selection first.
| Item | Selects the rows where the value is | Shown when the column is |
|---|---|---|
| Same Sign | positive when the current cell is positive, negative when it is negative | numeric |
| Opposite Sign | of the opposite sign to the current cell | numeric |
| Same Day | on the same day | a date |
| Same Month | in the same month and year | a date |
| Same Year | in the same year | a date |
| Equal | equal to the current value | any |
| Not Equal | not equal to the current value | any |
| Greater Than | greater than the current value | any |
| Greater Than or Equal | greater than or equal to the current value | any |
| Less Than | less than the current value | any |
| Less Than or Equal | less than or equal to the current value | any |
The items Same Sign and Opposite Sign ignore zero values. On the Tools tab the comparison items show for every column type. In the cell menu some of them show for numeric columns only. Rows hidden by a filter are not compared, and neither are rows inside a collapsed group.
Layout group
| Button | What it does |
|---|---|
| Auto Width (Ctrl+W) | Check button. Fits all columns to the width of the table. |
| Best Fit (Ctrl+B) | Sets the width of every column to fit its contents. Disabled while Auto Width is on. |
| Freeze Columns | Drop-down: None, Freeze to Left (Shift+Alt+Left) and Freeze to Right (Shift+Alt+Right). Fixes the selected columns (or the current column) at that side, so they stay in view while you scroll. Disabled until a column is current. |
| Freeze Rows | Drop-down: None, Freeze to Top (Shift+Alt+Up) and Freeze to Bottom (Shift+Alt+Down). Fixes the selected rows (or the current row). Shown only for tables that have no detail tables. |
| Add Column | Opens Add Column. |
| Delete Column | Drop-down that lists the columns you added with Add Column, by title. Click a title to delete that column at once, without a question. It lists the columns of the main table only: hide a column that you added to a detail table in the Field List. Disabled when you added none. |
| Top, Center, Bottom | Check buttons: the vertical alignment of the text in the cells. |
| Allow text wrapping | Check button. Wraps long text inside the cell. |
| Show rows numbers | Check button. Shows a numbered column at the start of the table. |
The three alignment buttons, Allow text wrapping and Show rows numbers change the report options at once, and they apply to every table. You can also change them in Report options.
Grouping group
The group appears only for tables that allow grouping.
| Button | What it does |
|---|---|
| Group Panel | Check button. Shows or hides the panel above the table where you drop column headers to group. |
| Grouped Columns | Check button. Shows or hides, in the table itself, the columns you grouped by. |
| Merge Groups | Shows the values of the grouped columns together on one group row, instead of one nested row for each level. Disabled when the table is not grouped. |
| UnMerge Groups | Undoes Merge Groups. Disabled when the table is not grouped. |
| Group Interval | Drop-down: Date, Year, Month, Range. Chooses how a date column that you grouped by is divided: by each date, by year, by month, or into relative ranges such as this week and last month. Enabled only when one of the grouped columns is a date. |
| Sort by Summary | Opens Sort by Summary. Enabled when the table is grouped and has at least one group summary. |
| Ungroup | Removes all grouping. The arrow lists the grouped columns by name: choose one to remove only that column. |
| Expand / Collapse | Drop-down. It lists the grouped columns: choose one to open all groups and then collapse the groups of that column. Then Expand All and Collapse All. Disabled when the table is not grouped. |
Grouping and sorting mark the report as changed. See Closing the viewer for what the program does then.
Master/Detail group
The group appears for tables that have detail tables, such as a list of entries with the lines of each entry.
| Button | What it does |
|---|---|
| Options | Drop-down with check items: Show Detail Tabs and Show Items Count in Detail Header and Show Empty Detail (these three only when the table has more than one detail), Show Detail Column Headers, and a slider Spacing between the details. |
| Details | Shown when the table has more than one detail. The list names each detail, with Ctrl+1, Ctrl+2 and so on. Choosing one expands all master rows and shows that detail. Disabled while the cursor is in a detail table. |
| Expand | Expands all master rows. For large tables (100 rows or more at first) the status bar shows progress and a cancel button. |
| Collapse | Collapses all master rows. |
Expand / Collapse group (tree tables)
Appears instead of the group above for tables shown as a tree.
| Button | What it does |
|---|---|
| Level | Drop-down of levels 1, 2, 3 up to the one before the deepest, and at most 4, then Expand All and Collapse All. Beyond level 4 use Expand All. A level collapses all nodes and then expands the tree down to that level. |
| Expand | Expands all nodes. |
| Collapse | Collapses all nodes. |
Data group
The group appears only when the report allows summaries for the table.
| Button | What it does |
|---|---|
| Manage Calculated Fields | Opens Manage Calculated Fields. |
| Manage Summaries (Ctrl+Shift+S) | Opens Manage Summaries. Disabled while Summarize Selection is on. |
| Summarize Selection | Check button. When on, group summaries and totals count only the selected rows (or cells). Enabled when the table has a total summary that is shown, or is grouped. |
Search and Filtering group
| Button | What it does |
|---|---|
| Search (Ctrl+F) | Check button. Shows the search bar above the table. See Search. The box at the top of the window that reads "Search (Ctrl+E)" is a different search: it looks for ribbon commands. |
| Filter (Ctrl+Shift+F) | Opens the filter editor. The arrow opens a menu with New, Clear All Details Filters (tables with details only) and Manage Filters... (disabled while the table has no filter and no recent filters). The menu can also list the filters you used recently, which you click to apply again; in the Trial Balance it showed only New and Manage Filters... even after two filters were applied. If an error window appears when you choose Manage Filters..., click Close: the Filter Manager then opens. |
| Auto Filter Row | Check button. Shows a row under the headers where you type a filter for each column. |
| Filter Tools | Drop-down: Default, Show Always, Never. Controls when the strip that shows the active filter appears under the table. |
The filter editor, the filters manager and the saved filters are explained in Report filters.
Keyboard
These keys work while the table is the selected panel. + and - are the number pad keys.
| Key | What it does |
|---|---|
| + and - | Expands or collapses the current master row. |
* | Expands the current node of a tree table. |
| Ctrl with + or - | Expands or collapses all master rows (all nodes of a tree table). |
| Ctrl+Shift with + or - | Expands or collapses all groups. |
| Ctrl+1, Ctrl+2 and so on | Chooses a detail and shows it. |
Search
The search bar
Click Search (Ctrl+F). A bar appears above the table with the Search box, a magnifier button, a warning icon and a counter. The Search Tools tab appears on the ribbon. Press Esc to close the bar.

| Item | What it does |
|---|---|
| Search box | Type the text and press Enter, or click the magnifier. The box shows the hint "Type Search String and Press Enter." The text is trimmed. A search starts only when the text has two characters or more, or is a single digit. |
| Counter | Shows the position and the number of results, for example 2 / 7. Shows "No results found" when nothing matches. |
| Warning icon | Appears when nothing was found and some columns were not searched. Its hint reads "Not all columns were searched. To choose which columns to search click 'Search Fields' command." |
How a search works:
- The program looks in the visible columns, taken when the bar opens: if you show a column later, tick it in Search Fields or reopen the bar. Columns of the type yes/no are never searched. If the program runs on a Hijri calendar, date columns are not searched. The option Search fields selection mode in the report options can limit the search to text columns, text and date columns, or numeric columns.
- A calculated field that was visible when the bar opened is in the search columns. A search that includes it ends in an error window ("Object reference not set to an instance of an object."), so clear its box in Search Fields before you search.
- A numeric column is searched only when the text you typed is a number. The program compares your text with the stored number written as plain text, so type the number without a thousands separator, for example
1250.5. - A row is a result when the text matches any of the searched columns, under the condition you chose: Contains, Starts with or Equals.
- Rows hidden by a filter are not searched. The result list changes when you change the filter or the columns of the table: the program then clears the search.
- Pressing Enter in the box searches. Pressing Enter again with the same text goes to the next result.
- The program selects the first result at once. When the scope is the main table, red marks on the vertical scroll bar show where the results are.
- If Show results dialog automatically after search is on in the report options, the results window opens after each search that finds something. It is off at first.
- The program keeps the texts you searched for in the Recent Searches list. The option Items to show in recent searches list sets its length. It is 10 at first.
The Search Tools tab
| Group | Button | What it does |
|---|---|---|
| Navigation | First | Goes to the first result. |
| Previous (Shift+F3) | Goes to the previous result. | |
| Next (F3) | Goes to the next result. | |
| Last | Goes to the last result. | |
| View All Results | Opens Search Results. Disabled when there are no results. | |
| Scope | Master (Ctrl+M) | Check button. Searches the main rows. |
| Detail (Ctrl+D) | Check button. Searches the detail rows and, for a result, expands the master row that holds it. When the table has more than one detail, only the first detail is searched. | |
| Filter Condition | Contains | Check button. The text appears anywhere in the value. |
| Starts with | Check button. The value starts with the text. | |
| Equals | Check button. The whole value equals the text. | |
| Options | Search Fields (Ctrl+L) | Opens Search Fields. |
| Recent Searches | Drop-down of earlier texts. Choosing one restores its scope and text and searches again. Disabled while the list is empty. | |
| Close | Close Search | Closes the search bar. |
The group Scope appears only for tables that have details. When you change the scope or the condition, the search runs again. At first the scope follows the option Search scope selection mode: Auto uses the detail when the cell you are in belongs to a detail table.
Search Fields window
Opens from Search Fields. It chooses the columns to search.

| Item | What it does |
|---|---|
| Master and Detail buttons | At the top of the window, only for tables that have details. Switch the list between the columns of the main table and of the detail table. |
| List of columns | At the top, (Select All). Then the visible columns, by header, with check boxes. Yes/no columns, columns that hold the picture itself (a column that holds a picture path is listed) and, on a Hijri calendar, date columns are not listed. Only the first detail table is listed. Tick the columns to search. |
| Ok | Applies the ticked columns to the scope that is shown when you click Ok, and runs the search again. |
| Cancel | Closes the window. |
Choose the scope first and tick the columns after it. If you switch between Master and Detail inside the window, the ticks you made in the list you left are lost.
Search Results window
Opens from View All Results, or by itself (see the option above). It lists every result.

The window shows the visible columns of the table. For a search in the details, the master row of the selected result shows in a small table above. The list can be filtered with the filter button on each column header. You cannot change or group it.
| Action | What it does |
|---|---|
| Double-click a row, or press Enter | Closes the window and goes to that result in the table. |
| Close | Closes the window and stays on the current result. |
Conditional formatting
The Conditional Formatting tab colors the cells of a column by rules. See Apply conditional formatting for the steps. In a table, every command works on the column of the cell you last clicked. If you have not clicked a cell, nothing happens.

Formatting group
| Button | Items | What it does |
|---|---|---|
| Highlight Cells | Greater Than..., Less Than..., Between..., Equal To..., Text that Contains..., A Date Occurring... (tables only), Duplicate Values... | Each item opens a small window where you give the value and choose the format. See Rule windows. |
| Top/Bottom | Top 10 Items..., Top 10 %..., Bottom 10 Items..., Bottom 10 %..., Above Average..., Below Average... | The same, for the highest or lowest values. |
| Custom Condition | Opens the window Custom Condition, where you write your own condition. |
Icons and Bars group
Each button opens a gallery of pictures. Click a picture to apply it to the column at once, without a window.
| Button | Pictures |
|---|---|
| Data Bars | Two sections, Gradient Fill and Solid Fill, with six colors each: blue, green, red, orange, light blue and purple. The bar grows with the value. |
| Color Scales | Twelve scales, such as green to yellow to red, and red to white to blue. The color shows where the value falls between the lowest and the highest. |
| Icon Sets | Sections Directional, Shapes, Indicators, Ratings and Positive/Negative: arrows, traffic lights, signs, flags, stars, quarters, boxes and triangles. |
Manage group
| Button | What it does |
|---|---|
| Clear | Drop-down: Clear Rules from All Columns and Clear Rules from This Column. Deletes the rules at once, without a question. When a pivot table is selected the tab works on the selected cell, and the button shows three more items: Clear Rules from All Measures (all rules), Clear Rules from This Intersection (the rules of the row and column fields of the selected cell) and Clear Rules from This Measure (the rules of its value field). |
| Manage Rules | Opens the rules manager. See Rules manager. |
Rule windows
These windows belong to the grid component of the program, which translates them. Each has a title, a line of description, a box for the value, the word that links it to the format, and a list of formats.
| Window (title) | Description line | Value you give |
|---|---|---|
| Greater Than | Format cells that are GREATER THAN: | One value. |
| Less Than | Format cells that are LESS THAN: | One value. |
| Between | Format cells that are BETWEEN: | Two values, joined by "and". |
| Equal | Format cells that are EQUAL TO: | One value. |
| Text That Contains | Format cells that contain the text: | The text. |
| A Date Occurring | Format cells that contain a date occurring: | A period from a list: Today, Yesterday, Tomorrow, In the last 7 days, Last week, This Week, Next Week, Last Month, This Month, Next Month. |
| Duplicate Values | Format cells that contain: | Duplicate or Unique. |
| Top 10 Items, Bottom 10 Items | Format cells that rank in the TOP: or BOTTOM: | A number of items (10 in the title). |
| Top 10%, Bottom 10% | Format cells that rank in the TOP: or BOTTOM: | A percentage. |
| Above Average, Below Average | Format cells that are ABOVE AVERAGE: or BELOW AVERAGE: | None. |
| Custom Condition | Format cells that match the following condition: | An expression in a text box. If it is wrong, the message "The specified expression is invalid." or "The specified expression contains invalid symbols (character …)." appears with the title Error. |
The list of formats offers ready formats such as Light Red Fill with Dark Red Text, Yellow Fill with Dark Yellow Text, Green Fill with Dark Green Text, Light Red Fill, Light Green Fill, Light Blue Fill, Red Text, Green Text, Blue Text, Bold Red Text, Bold Green Text, Bold Blue Text, Bold Text, Italic Text, Strikethrough Text, and Custom Format... where you set the font, the color and the background yourself. A check box, Apply format to the entire row, applies the format to the whole row when the window offers it. The window has Ok and Cancel.
Rules manager
The window Conditional Formatting Rules Manager lists the rules of the table. Use Show formatting rules for: to show the rules of the Current Column or of All columns. The toolbar has New Rule..., Edit Rule..., Delete Rule and the arrows Up and Down. The list has the columns Rule, Format, Column and Is Enabled.
New Rule... opens New Formatting Rule with Select a Rule Type:. The types are: format all cells based on their values (2-color scale, 3-color scale, data bar, icon set), format only cells that contain, format only top or bottom ranked values, format only values that are above or below average, format only unique or duplicate values, and use a formula to determine which cells to format. Below the list, Edit the Rule Description: shows the fields of the chosen type, a Preview: and a Format... button. Edit Rule... opens Edit Formatting Rule in the same form.
Excel export carries the rules when Export conditional formatting is on in the export window. See Report viewer File tab.
Right-click menus of the table
The column headers have no right-click menu in the viewer. You sort and group from the header, or from the cell menu.
Cell menu
Right-click a cell. The menu is built in this order, with a line between the parts. It is disabled while a long operation runs.

- The automatic commands of the report, one block for each card or document that the row refers to, such as Display Account Card.... The command that a double-click runs is bold: the first command at first, then the last one you used. If it doesn't suit the row, the first visible command runs. Some reports have their own double-click action.
- The commands that the specific report adds. Some appear only when the row fits a condition that the report defines.
- Sort: Sort Ascending, Sort Descending, Clear Sorting. Shown when the table allows sorting. The first two are check items for the column of the cell, and are disabled when that column cannot be sorted. Clear Sorting removes the sort of all columns, and is enabled when the column of the cell is sorted.
- Group by This Column. Shown when the table and the column allow grouping. Disabled when the column is already grouped.
- Best Fit (this column) and Best Fit (All Columns) (Ctrl+B). Disabled while Auto Width is on.
- Freeze Columns (None, Freeze to Left, Freeze to Right) and Freeze Rows (None, Freeze to Top, Freeze to Bottom). Freeze Rows is missing in tables that have details.
- Smart Selection: Select All, Select Columns, Invert Selection, then the items of Smart selection. Equal and Not Equal appear for every column. Same Sign, Opposite Sign, Greater Than, Greater Than or Equal, Less Than and Less Than or Equal appear only for numeric columns. Same Day, Same Month and Same Year appear only for date columns.
- For picture columns: Show Image Path (check item, for columns that hold a file path) and Download (for columns that hold the picture itself).
Group row menu
Right-click a group row.

| Command | What it does |
|---|---|
| Grouped Columns | Check item. Shows or hides the grouped columns in the table. |
| Merge Groups, UnMerge Groups | Shown when you grouped by more than one column. The same as the buttons of the Grouping group. |
| Group Interval | Shown when you grouped by a date column. Drop-down: Date, Year, Month, Range. |
| Expand All, Collapse All | Expands or collapses all groups. |
| Ungroup | Removes all grouping. |
Footer table menu
Right-click a footer table (a related table attached under the panel). Its menu has one command, Fit: it sets the height of the panel to its rows.
Total menu
Right-click the total of a column at the bottom (or top) of the table. The menu lists, for that column, the summaries that Manage Summaries offers for it, as check items: tick one to show it, clear it to hide it. The last item, Customize..., opens Manage Summaries. Columns that do not allow summaries show no items. Tree tables don't have this menu: use Manage Summaries.
The Field List panel for tables
The Field List panel (see Report viewer) shows, for a table, a tree with check boxes. A checked field is a visible column. Click a check box to show or hide the column. Ctrl+click a column repeated by period to change it in every period (when Compact View is off).
| Item | What it shows |
|---|---|
| Master Fields (with the name of the master table in brackets) | Columns of the master table, for a detail table. |
| Report Fields | The columns of the table, in the order of the table, by band. |
| Name of a related table | Fields of tables that the table points to, such as the material or the customer. If the table points to the same table by two keys, the key name appears in brackets. |
| Defer Layout Update | Check box. When on, changes wait until you click Update. |
| Update | Applies the changes. Enabled only when Defer Layout Update is on. |
| Compact View | Check box. Shown when the report repeats columns by period. Merges the repeated columns into one entry. |
| Search box | At the top of the panel. Filters the tree by name. |
Fields of related tables are not in the table at first. When you check one, the program reads it from the database, which may take time. The table shows a loading panel and is disabled meanwhile. If the data is too large, the message "Sorry. The data size is too large and there is not enough memory to load it." appears. When you check a picture field and some pictures were not processed yet, the program asks "Images must be processed and optimized in order to display and print them in the report preview. You have … images that need processing. Would you like to start processing now?" and the buttons are Yes and No. Yes opens the pictures wizard and refreshes the report afterwards.
Some columns are fixed by the report and cannot be hidden: their check box is disabled. A check box on a heading of a related table is disabled unless Defer Layout Update is on.
The Filter List panel for tables
The Filter List panel shows a block of filter controls for each column that you added to the list. Its toolbar has: Edit (opens the window that chooses the columns and the control of each), a drop-down that sets the order of the values (No Sort or Popular First), expand all, collapse all, and clear (removes the filter of the table). Empty, the panel shows a short introduction that ends with "To begin click Edit button.". See Report filters.
Add Column window
Opens from Add Column. It adds an empty column that you fill by hand, for notes or for a yes/no mark.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Title | The header of the new column. | Yes | At first Notes. Ok stays disabled while the box is empty. |
| Format | The kind of values the column holds. | Yes | Text (the default) or Boolean. A Boolean column shows check boxes. |
A note in the window says "Input data is not saved when saving the workspace."
| Button | What it does |
|---|---|
| Ok | Adds the column at the end of the table, visible and editable, and adds it to the Field List. |
| Cancel | Closes the window without adding. |
You can type in the cells of the new column. The values are not kept in the workspace. To remove the column, use Delete Column.
Manage Summaries window
Opens from Manage Summaries (Ctrl+Shift+S), or from Customize... in the total menu. It chooses which summaries each column shows.

The window has two tabs. Totals sets the totals at the end of the table. Groups sets the values shown in the group rows. Both tabs work the same way.
| Item | What it does |
|---|---|
| Clear All | In the toolbar of the tab. Unticks every summary of the tab. This includes the "(Custom)" ones, which you can't tick again: click Cancel if you cleared them by mistake. |
| Show Total Summary | Check box in the toolbar of the Totals tab. Shows or hides the totals area. |
| List of columns | One row for each column that allows summaries, in the order of the columns on screen. A column with at least one summary is in bold. A column inside a band shows the band title before its name. A repeated column shows "(Repeated)" after it. |
| List of summaries | In the middle. For the selected column, a check box for each summary type. A box is disabled when the type does not suit the column. |
| Up and down arrows | Beside the list of summaries. Move the selected summary type up or down: this sets the order in which the summaries show. |
The summary types are: Sum, Sum Positive Values, Sum Negative Values, Maximum, Minimum, Average, Count and First. Count and First are available for every column. The other types are available for numeric columns only. A summary that the report itself defines with its own formula shows "(Custom)" after its name and is disabled: you cannot change it here.
| Button | What it does |
|---|---|
| Ok | Applies the choices of both tabs. If Show Total Summary is off and the number of ticked totals changed (and is not zero), the program switches Show Total Summary on. The report is marked as changed. |
| Cancel | Closes the window. Nothing changes. |
The options Position and Style of the totals, the Prefix and Suffix of each summary and Separator between group summary items are in Report options.
Sort by Summary window
Opens from Sort by Summary. It orders the groups by one of their summary values, for example the groups of a customer by the highest total first.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Grouping Field | The grouped column whose groups you want to order. | Yes | The list holds the columns you grouped by. |
| Summary Field | The column whose group summary decides the order. | No | (None) and the visible columns that have a group summary. (None) removes the rule of the grouping field. If the column has more than one group summary, the first one is used. With no rule yet, the window starts with the first grouped column, (None) and Ascending. |
| Sort Order | The direction. | Yes | Ascending or Descending. |
Under the fields a box lists the rules in force, each as "grouping column According To summary column order". The box appears only when there is at least one rule. When the window opens, the fields show the last rule.
| Button | What it does |
|---|---|
| Clear All | At the far side. Removes all the rules at once, even if you then click Cancel. Enabled when there is a rule. |
| Ok | Replaces the rule of the chosen grouping field with the one you set. |
| Cancel | Closes the window without adding the rule. |
Manage Calculated Fields window
Opens from Manage Calculated Fields. It lists the columns of the table that have an expression, and lets you add, change and delete them. A calculated field is a column whose value comes from a formula on the other columns of the same row.

| Item | What it does |
|---|---|
| New | Opens Add Calculated Field. |
| Edit | Opens Edit Calculated Field for the selected field. Double-clicking a field does the same. Disabled while no field is selected. |
| Delete | Deletes the selected field after the question "Are you sure you want to delete the selected item?" (Yes, No). If another calculated field uses it, the program does not delete it and shows "The calculated field can't be deleted because it is used by the following calculated fields:" followed by the title and expression of each, with one Ok button. |
| List of fields | The titles of the fields. |
| Box at the bottom | Shows the expression of the selected field. You cannot type in it. |
| Ok | Applies the list to the table: new fields become columns at the end of the table, changed fields change their title, format and formula, and deleted fields disappear. The Field List is rebuilt and the report is marked as changed. |
| Cancel | Closes the window. The table keeps its columns. |
Add Calculated Field and Edit Calculated Field
The window has the title Add Calculated Field when you add and Edit Calculated Field when you change.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The internal name of the field. You write it between square brackets in other expressions. | Yes | English (ASCII) characters only, no spaces, for example NetAmount. Use letters, digits and the underscore. Must not repeat the name of another field or column. You cannot change it after the field is created. |
| Title | The header of the column. | Yes | Any text. |
| Format | How the result is shown. | Yes | Text (the default), Date, Boolean, Integer, Percent, Balance, Price, Quantity. Choose the format that suits the result: a number in a Text field is not formatted as an amount. |
| Data Source | Where the formula takes its values from. Pivot tables only. | Yes | Data Values, Summarized Values and Custom(Use Aggregate Functions). See Calculated fields in a pivot table. |
| Expression | The formula. | Yes | Click the button at the end of the box to open the Expression Editor. You cannot type in the box. |
| Button | What it does |
|---|---|
| Ok | Checks the fields in this order: Name, the name characters, Title, Expression, then the repeated name. It stops at the first message and the window stays open. When every check passes, it closes. |
| Cancel | Closes the window. |
Expression Editor
The window Expression Editor writes the formula.

It has a box for the formula at the top. Below it is a tree of groups at the side (the operators and the functions with their groups: Date/Time, Logical, Math, String and Aggregate, and the columns of the table), a list of the items of the selected group, and a box that describes the selected item. You see one list at a time: click a group to see its items. A search box above the list narrows it. Double-click an item to insert it. A column appears in the formula between square brackets, as in [DebitBalance] - [CreditBalance] in the Trial Balance; the names depend on the report. Insert columns with a double-click and do not type their names: the editor marks a name it does not know as "Invalid column" and keeps Ok disabled. The descriptions of the functions are in English also in the Arabic window.
The list of functions has the ordinary functions of the editor. The program adds a group Aggregate with five functions that you write with one column:
| Function | Result |
|---|---|
SumOf([Column]) | The sum of the column over the rows of the table. |
AvgOf([Column]) | The average. |
CountOf([Column]) | The number of values. |
MaxOf([Column]) | The highest value. |
MinOf([Column]) | The lowest value. |
The function accepts a single column name, not a formula. It works on numeric columns with no empty cells. Otherwise the field shows 0 in every row, CountOf too. The functions use the rows left after filtering. If a formula cannot be calculated for a row, the cell shows 0 and no message appears.
| Button | What it does |
|---|---|
| Ok | Takes the formula back to the box Expression. |
| Cancel | Closes the editor without changing the formula. |
Messages
| Message | When it appears |
|---|---|
| "'…' is required field." | In Add or Edit Calculated Field, when Name, Title or Expression is empty. The name of the field is inserted. |
| "Field name must be in English and doesn't contain spaces." | In Add Calculated Field, when the name has a space or a character that is not an English (ASCII) character. |
| "Name is already used." | In Add Calculated Field, when another calculated field or a column has the same name. |
| "Are you sure you want to delete the selected item?" | In Manage Calculated Fields, after Delete. |
| "The calculated field can't be deleted because it is used by the following calculated fields:" | In Manage Calculated Fields, when you delete a field that another field uses. |
| "You do not have permission to copy data." | When you copy without the Export Reports permission. |
| "No results found" | In the search bar, when nothing matches. |
| "Sorry. The data size is too large and there is not enough memory to load it." | When you check a field of a related table in the Field List and the data does not fit in memory. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.