Using Data from Joined Tables to Get Greatest Value
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Using Data from Joined Tables to Get Greatest Value

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.5.0
Root FolderExample Lab - Greatest Value of Joined Table Group Step
Modules None
DependenciesNone

This Example Lab demonstrates how to create two lists of data types and compare the largest data entries of the two.


Explanation

Using the Create Data step, this creates two small samples list of two different data types. TableOne holding values and IDs, and TableTwo for the names associated with those IDs. Then the flow iterates through TableOnes values with the For Each Group Step based off of TableTwo's IDs. Then For Each value in the grouping, add them to a Sum list. Afterwards the Flow uses a Sort Array step to sort based off of the Sum in descending order and store the top value with its associated data to the resulting list. Repeat this for the next group and return the resulting list.

Reference Articles
[ARTICLES GO HERE. USE THE LINK ICON AT THE TOP OF THE EDITOR TO MASK THE URL WITH TEXT. ONE LINK PER LINE VERTICALLY.]



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.5.0 or later using our Importing/Exporting article.





Was this article helpful?