UC1 - Get 2 Tables with 2nd Table Showing Details

This example shows how to have 2 tables, with the second table showing details about what you click in the first table.

See Also
DISTINCT
UC2 - Get Sum of Values for an Entry
Defining Data Queries

Context:

Source csv file:

Goal:

  • Get a first table with the list of Reference, and a second table with the list of Product_Code.
  • Clicking a Reference in the first table shows only its corresponding Product_Code in the second table.

  1. For the first table, make a simple query with the DISTINCT operator to keep only unique values for Reference.



  2. In Resources > Variables, use a query parameter and bind it to a variable.



  3. In Pages, for the first table visualization, add an effect (On cell click) so that when you click a cell, the variable value is Reference.



  4. In the second table, use the query parameter as a filter. Do that in the SEARCH operator Expression.