Interacting with a Flex Grid
  • 21 Oct 2024
  • 18 Minutes to read
  • Dark
    Light

Interacting with a Flex Grid

  • Dark
    Light

Article summary

Interacting with a Flex Grid

The Flex Grid Object offers advanced interactions with data to end users. End users can easily pivot, sort, filter, add embedded charts, group rows and/or columns, and more with a large dataset in order to view data in different ways without the need for developers to configure multiple Data Views.

The Flex Grid Object has some particular options and features that makes it stand out against a Data View Object. Some of those features are outlined below. The topics covered on interacting with a Flex Grid are as follows:

Interactive Selection on rows and columns

The Flex Grid Object allows the user to make a selection on an Entity by selecting rows and/or columns.

For example, on a Flex Grid displaying Countries in rows, it is possible to click on one or more rows (i.e. Countries) and then use them as selection criteria so that other Objects on the Screen are refreshed accordingly.

contents/assets/images/flex.grid.interactive selection.gif

As you can see in the example above, once a selection is applied the other Objects on the Screen are refreshed to show data for the selected items only.

To reset the selection made on a Flex Grid Object, click the reset button contents/assets/images/refresh.png in the top left corner of the Flex Grid.

The selection can be made on the Entities set By Row and By Column. Read more about how the Select works.

The "Fields" panel in Play mode

The "Fields" panel, displayed vertically on the right side of the Flex Grid, is a powerful tool specific to the Flex Grid. This panel gives the end user the ability to pivot and display data in different ways, depending on the configuration of the developer. Beyond the capabilities of grouping and setting fields by Row within the Flex Grid as described above, the "Fields" panel allows you to group fields by Column using the "Pivot Mode" feature, giving you even more flexibility and freedom to configure your dataset.

You can interact with the Flex Grid in 2 ways:

  1. Flat view. In flat view, you see all the fields selected which can be grouped by Row. Click on the "Fields" panel to open it. Then drag and drop fields into Row Groups, Values, or hide Blocks from the panel. All rows of the dataset are always part of flat view. Even if row groups are defined, you can expand all row groups to display the distinct rows of the dataset, configured by the Developer.
    Click on the Fields panel to open it. Then drag and drop fields into Row Groups or Values areas or hide Blocks from the panel. You can also drag column headers to the top bar of the Flex Grid that says "Drag here to set row groups"

  2. Pivot Mode. In Pivot Mode, you only see aggregated data by Rows that are based on the group configuration in the Columns panel, and you also have the possibility to group By Column, which becomes available only when "Pivot Mode" is enabled. 
    Enable the Pivot Mode toggle and then drag and drop fields as before, but now you can add Column groups under the "Column Labels" section that appears at the bottom of the panel.

Image of a Flex Grid with pivot mode enabled in the fields panel

The Fields panel options are:

  • Pivot Mode. Enabling Pivot mode allows you to customize the display of the Flex Grid in more detail. Upon enabling for the first time, you will see the default view configured by the maker, and the feature "Column Labels" appears at the bottom.

    • Column Labels. Enabling Pivot Mode will unlock the "Column Labels" feature. Drag and drop fields that you would like to Group the other fields by.
      For example, if you have a Flex Grid with the Entities "Year" and "Country" and a "Gross Sales" Block, and you set "Country" by "Row Groups", "Year" and "Gross Sales" show separate value fields. If you set "Country" in the "Column Labels" sections, the Columns will now be organized by the group "Country" and Gross Sales will be broken down into multiple columns that display the value by country rather than a lump sum of Gross Sales in the Country value cell. If you add "Year" to the "Row Groups" underneath "Country", years are grouped within each countries, and you can expand and collapse those row groups to see the data broken down by group
       contents/assets/images/flex.grid.pivot.mode.interact.gif

  • Search. Use this searchbar to find a field within the list below it (of only the fields configured in the Layout).

    • The checkbox that appears to the left of the searchbar is used exclusively for the search results. The checkbox will select or deselect all the fields that are displayed under the searchbar. 
      For example, if you search for "Sales" from a list of 10 fields, and 2 fields show up called "Gross Sales" and "Total Sales", you can select or deselect only these fields that displayed via the search function by selecting or deselecting the checkbox to the left of the searchbar

      • Checkbox behavior. The checkbox is selected only when all the fields below the searchbar are selected. If some are not, the checkbox will appear with a minus sign. If the checkbox is enabled with a checkmark, all field results via the search will be selected. If deselected when all fields are selected, all fields will become deselected

      • If nothing is entered into the searchbar, then all the fields are listed. The same behaviors as above apply when nothing has been searched

  • Fields. All fields configured in the Flex Grid will display under the searchbar. You can rearrange the position of the fields in the Flex Grid by dragging and dropping a field in a different order. The first field in the list will display on the leftmost side of the Flex Grid columns, while the last will display on the rightmost side. You can also drag and drop these fields into the areas below: Row Groups, Values and Column Labels

  • Row Groups. Drag and drop one or more fields you would like to configure the Flex Grid by row. By adding more than one, the row fields become grouped. The grouping behavior is determined by the position of the field in the "Row Groups" list. The first field in the list is the root group, the second is the first sub-group, the third is the next sub-group, and so on

  • Values. Drag and drop fields here in order to aggregate the data on field groups. A new column appears in which it will display the aggregated value. The default aggregation is sum, but the aggregation can be changed via the "Value aggregation" menu access by the header options menu or directly in the Columns panel. From the Columns panel, click on the field under the Values section to display a dropdown menu where you can choose between average, count, first, last, max, min, and sum. Read more about aggregation values

Sorting and filtering a Flex Grid in Play mode

Sorting and filtering is not done in the Layout editor configuration as with a Data View, but within the Flex Grid itself, if the maker's configuration allows it. 

Sorting a Flex Grid

To sort directly from the Flex Grid Object, if the configuration allows it, click on a column header or drag and drop a field into the "Row Groups" section from the "Columns" panel that you would like to sort from. Arrows will indicate the order: up arrow for ascending, down arrow for descending, or no arrow for the default order.

Filtering a Flex Grid

There are 3 ways to filter a Flex Grid: from the filter icon under each column header, the column option menu within the filter subpage, and the textbox underneath a column header (if available), each described below:

Filter icon

To filter from the Flex Grid Object with the filter icon for a field, click on the filter icon and select all the member items you would like to filter or type to search for a text/value.

To filter from the Flex Grid Object with the filter icon for a field, click on the filter icon. Then choose how you want to filter the field with the dropdown menu and add a value (if prompted) to combine with the filter command. By default, it filters using "Equals".  If you want to, you can add a second filter in combination with "AND" or "OR" below.

Filter from the column options menu

Another way to filter is from accessing the same filter menu as with the filter icon from within the column options menu. Click on the hamburger menu icon and click on the filter icon from the dialog box. If the text box is colored the same as the header background (or grayed out if the header background is white), then a small dialog window opens with the filter options to choose from and a search box. If the text box is white, you can type directly into the box in order to filter it according to what you type.

Filter using textbox

It is possible to filter from the textbox below each column header when the textbox is available (when it is white-filled or not grayed out).

To filter within the textbox below the column header, like "FLOW VIEW P&L" in the example below, simply type into the textbox and hit "Enter" on your keyboard or click outside of the textbox to run the search.
The column will filter according to the default setting, which is "Equal to" for integer Blocks when single filtering is configured and "Contains" for all other Blocks as well as all columns when multiple filtering is configured. To change the filter option from its default, click on the filter icon (contents/assets/images/filter.icon.png) and choose your parameters from the dropdown menus and using the AND/OR functions.

To filter without a textbox, like "Year" in the example below, click on the filter icon (contents/assets/images/filter.icon.png) and make a selection from the following options. You can also use the search bar to find what you are looking for.

To filter the columns that appear in the Flex Grid, you can deselect them from the Fields panel or access the menu from any one of the columns using the hamburger icon that appears in the top right corner. From the third tab with the Flex Grid icon (contents/assets/images/Flex Grid.icon.png), a list of the columns appears where you can select or deselect the ones you want to view or hide.

contents/assets/images/flex.grid.filters.updated.gif

The textbox is only available to Value fields when the filter configuration is set to "Single" or available to all fields when the filter configuration is set to "Multiple", allowing multiple filters at once.

Multi-filtering & multi-sorting

It is possible to sort and filter by multiple fields, if the configuration allows it. When multiple sorting and/or filtering is allowed, the first sort or filter applied is the first priority in the hierarchy, while the second and third sort or filter becomes the second and third priority, respectively.

Multiple sorting allows multiple columns to apply a sort, whereas a single sort only allows one column to apply a sort to the Flex Grid Object.

Multiple filtering allows multiple filtering per column, whereas a single filter only allows one filter per column.

When sorting multiple fields, a number will appear next to the field header to indicate the priority order of the sort.

When filtering multiple fields, the textbox option under every field is available.

contents/assets/images/flex.grid.filter.multiple.gif

Grouping a Flex Grid in Play mode

You can group fields directly from the Flex Grid Object in both flat view or in Pivot Mode. The difference being that, in Pivot Mode, you can dimension the whole grid by rows and group columns, whereas in the flat view with Pivot Mode disabled, you can only group fields by Row.

Grouping in flat view

To group the full dataset by Row in flat view, drag and drop a column header of a field into the top grey bar that says "Drag here to set row groups". You can also group the flat dataset in a similar way by utilizing the "Fields" panel without enabling "Pivot mode". To do so, do the following:

  1. Open the "Fields" panel

  2. Drag and drop fields into the "Row Groups" section. This will automatically set that field by row, grouping the others under it, as in the example below. You can change the hierarchy of the groups by dragging and dropping the elements in the order you want, the leftmost position being the most-nested

contents/assets/images/new.fg.flatmode.groups.gif

Grouping in Pivot Mode

To group a dataset using Pivot Mode, access the "Fields" panel from the right side of the Flex Grid, and do as follows:

  1. Open the "Fields" panel

  2. Enable the Pivot Mode toggle

  3. Dimension fields by Row by dragging and dropping fields into the "Row Groups" section. You can change the hierarchy of the groups by dragging and dropping the elements in the order you want, the top position of the "Row Groups" section being the most-nested

    You must have at least one field set by Row Groups.

  4. Group fields by Column by dragging and dropping the fields into the "Column Labels" section (which only appears once Pivot Mode is enabled). You can change the hierarchy of the groups by dragging and dropping the Entities in the order you want, the top position of the "Column Labels" section being the most-nested. On the grid, you can expand and collapse the Column groups as you want

The different ways of grouping is shown in the example below.

contents/assets/images/new.pivotmode.grouping.gif

Master

If the Flex Grid has been configured as a Master Object, clicking on a row header (i.e. the field members set by Row Groups) will update the data displayed by all other Objects on the Screen in order to show only the data relating to the clicked header. The Master Object result is similar to applying a Screen Selection.

By clicking on the "Disable master" icon contents/assets/images/pin.upward.png in the sliding toolbar, you can disable this option. Click on the "Enable master" iconcontents/assets/images/unpin-16.png to re-enable it.

Tree view for Unbalanced Entities

You can dimension a Flex Grid by an Unbalanced Entity and view it in tree view. Tree view enables the display of an Unbalanced Entity's hierarchy in a tree form, allowing the users to interact with it by expanding and collapsing different nodes, as opposed to viewing the Entity in flat view.

To see an Unbalanced Entity in tree view, you must be in flat view (not available in Pivot Mode). Click on the hamburger icon in the top right corner of the Unbalanced Entity's column (the Column menu) and select "Switch to tree view". To exit the tree view, click on the hamburger icon in the top right corner and then select "Switch to flat view".

The tree view of the Unbalanced Entity will not retain any grouping.

In Play mode, tree view is only available when the Flex Grid is in flat view and Pivot Mode is not enabled. When Pivot Mode is enabled, tree view is automatically disabled.

contents/assets/images/flex.grid.tree.view.gif

Embedded Charts

Charts are viewed directly within the Flex Grid itself and configured on-the-fly. Embedded charts can help you visualize selected data from within the Flex Grid, however, can not be saved.

To view embedded charts, right click a value cell and click "Chart Range":

  • Chart Range. Based on the range selected within the Flex Grid and always available whether in Pivot mode or not. A chart popup window will appear where you can define the data settings in more detail under "Data" in the right panel, like "Categories", which are your fields, and the "Series", your Data Blocks, to configure the chart. You can also change the chart type and color palette under "Settings"

Then, click on the type of chart you'd like to display which are as follows:

  • Column. Displays a vertical bar graph with the options of "Grouped", "Stacked", and "100% stacked", shown below respectively
     contents/assets/images/image3.png

  • Bar. Displays a horizontal bar graph with the options of "Grouped", "Stacked", and "100% stacked", shown below respectively
     contents/assets/images/image4.png

  • Pie. Displays a pie chart with the options of "Pie" or "Doughnut", shown below respectively
     contents/assets/images/image5.png

  • Line. Displays a line chart as shown below
     contents/assets/images/image6.png

  • X Y (Scatter). Displays a scatter plot where data between 2 variables is displayed with a point or dot with the options of "Scatter" and "Bubble", shown below respectively
     contents/assets/images/image7.png

  • Area. Displays a line graph where the area below the line is filled in with color with the options of "Area", "Stacked", and "100% stacked", shown below respectively
     contents/assets/images/image8.png

  • Histogram. Displays the frequency of numerical data with rectangles
     contents/assets/images/image9.png

  • Combination. Displays the combination of two types of charts, either "Column & Line" or "Area & Column", shown below respectively
     contents/assets/images/image10.png

To change the color palette or the type of the chart, simply scroll through the color options at the bottom of the window under "Settings" or select a new chart type as is done below.

contents/assets/images/flex.grid.embedded.charts.update.gif

When you are happy with the chart you have created, you can do a few things with it:

  • Download the chart as a .png by clicking on the download icon in the upper right corner of the chart area, as shown below

  • Link or unlink the chart by clicking on the link icon, as shown below. This means, if data is updated upon a refresh, the data will also change and update the linked chart, whereas the data will not change in an unlinked chart

contents/assets/images/flex.grid.chart.link.download.update.png

Flex Grid options

The Flex Grid has many unique options and settings unlike other Objects, found directly in the Flex Grid.

Flex Grid Object toolbar

You can access the Object toolbar in the top left corner of the Flex Grid by hovering over the Object and clicking on the Object toolbar icon (contents/assets/images/contextual.menu.3dots.png) which gives you the following options:

  • Layout  . Access the Layout

  • Export Excel  contents/assets/images/export.excel.png. Exports the Flex Grid as an Excel file, as described in the next paragraph

  • Export PDF  contents/assets/images/export.pdf.png. Exports the Flex Grid as a PDF file

  • Export Screenshot .png  contents/assets/images/screenshot.png. Takes a screenshot of the Flex Grid and saves it in .png format
     contents/assets/images/flex.grid.contextual.menu.png

Exporting to Excel

You can export the exact Layout of your Flex Grid configuration to an Excel worksheet directly from the Object.

To export a Flex Grid to Excel, go to the Object toolbar and select "Export data to Excel" or the icon.

The Flex Grid exported to Excel must not exceed 1 million rows. If it does, the following message will appear:

Color, border, font, template, and block formatting is not exported.

Grouping configured by row in a Flex Grid is converted to Excel groups functionality when exported to Excel. Tree view groups on Unbalanced Entities are converted to Excel groups functionality when exported to Excel.

Flex Grid Column menu

Every column displayed in a Flex Grid has a menu for further options and capabilities.

Hover over the column header and click on the hamburger menu icon contents/assets/images/hamburger4.png to access the Column menu. There may be up to 3 subpages of menu options available: main options, filtering, and quick pivoting.

contents/assets/images/flex.grid.column.menu.update.png

  • Main options. Customize Axes settings directly from the Flex Grid

    • Switch to tree view/ Switch to flat mode. View an unbalanced Entity in tree view (only available for unbalanced Entities)

    • Display Mode. Choose or change the display mode of the Entities by Column. The following are available: Default, Code, Desc (description), and Code and description

    • Pin Column. Pin the Entity column to the left or right of the Flex Grid so that it is frozen in the viewing area and always in view while scrolling through other columns

    • Autosize This Column. The column width size is automatically changed to a size suitable to view the data within the Flex Grid Object

    • Autosize All Columns. Every column width size is automatically changed to a size suitable to view the data within the Flex Grid Object

    • Reset Columns. Resets columns to their default width

    • Expand All Row Groups (flat view only). Expand all the row groups listed to the left side (if any) with one click. Each one can individually be expanded manual by clicking on each arrow next to the Group Entity's member. 

      This option is only available in flat view and when a row group exists

    • Collapse All Row Groups (flat view only). Close all the row groups listed to the left side (if any) with one click. Each one can individually be collapsed manual by clicking on each arrow next to the Group Entity's member.

      This option is only available in flat view and when a row group exists

    • Group/Un-Group by/ Un-Group all. Group or ungroup the Flex Grid by the selected field or all fields. Also available by dragging and dropping the field into the top bar that says "Drag here to set row groups" and ungrouping by clicking the X next to the field's name placed in the top bar.

      This option is only available when no column group exists

  • Filtering. Gives you the same filtering options as in the field header. Select all the members you would like to filter this Entity by or type in a value you would like to filter the field by

  • Quick pivoting. Shows the Entities set by Row with select boxes next to them. Select or deselect them to customize the display of the Flex Grid, however, for more customization, access the pivot tool located in the Fields panel on the right side of the Flex Grid.

Right-click options within the Flex Grid

The Flex Grid right-click options are the same in both Design mode and Play mode. Right click on any value cell or a selection of cells to reveal the following options:

  • Cut. Cut the selection of one or many cells

  • Copy. Copy the selection of one or many cells

  • Copy With Headers. Copy the selection of one or many cells with the headers included

  • Copy with Group Headers. Copy the selection of one or many cells with the group headers included

  • Paste. Paste the selection of one or many cells

  • Chart Range. View embedded charts directly from the Object. Choose which type of chart you want to display alongside the value: Column, Bar, Pie, Line, X Y (Scatter), Area, Histogram, Combination. Read more about Flex Grid embedded charts

contents/assets/images/flex.grid.right.click.menu.PNG

Excel-like status bar component

At the bottom of the Flex Grid, a status bar gives you information about the selected cell or cells. If one or no cell is selected, it will display the number of Rows in the Flex Grid. If a group of cells are selected, it will display:

  • Rows. The number of Rows displayed in the Flex Grid

  • Average. The average value of the selected cells

  • Count. The number of cells selected

  • Min. The minimum value within the cells

  • Max. The maximum value within the cells

  • Sum. The sum of the selected cells in total

Gif of a Flex Grid where many cells are selected and the status info of those cells shows in the bottom right corner of the object


Was this article helpful?