transformations:hierarchypath
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
transformations:hierarchypath [2023/04/21 03:48] – [See also] dmitry | transformations:hierarchypath [2025/01/15 21:40] (current) – revise to 2025 format craigt | ||
---|---|---|---|
Line 9: | Line 9: | ||
\\ | \\ | ||
=====Use cases===== | =====Use cases===== | ||
- | Use this action to build parent-child relationships. | + | Use this action to build parent-child relationships |
\\ | \\ | ||
Line 30: | Line 30: | ||
=====Examples===== | =====Examples===== | ||
- | **Example: | + | ====Example |
+ | >Generate hierarchy paths based on the relationship | ||
- | + | ===Before (source | |
- | **Input | + | |
^Primary | ^Primary | ||
| Key01 |Key10 |Bob | | | Key01 |Key10 |Bob | | ||
- | | Key02 |Key10 |Sue | | + | | Key02 |Key10 |Ann| |
- | | Key03 |Key10 |Erica | | + | | Key03 |Key10 |Ira | |
- | | Key04 |Key10 | + | | Key10 |Key20 |Aya | |
- | | Key05 |Key11 |Chris | | + | |
- | | Key06 |Key11 |John | | + | |
- | | Key10 |Key20 |Tia | | + | |
- | | Key11 |Key20 |Mariko | + | |
| Key20 | |Bruce | | | Key20 | |Bruce | | ||
- | \\ | + | ===After (result table)=== |
- | **Action parameters:** | + | ^Primary |
- | > | + | | Key01 |Key10 |Bob |**< |
- | > | + | | Key02 |Key10 |Ann|**< |
- | > Build path with: " | + | | Key03 |Key10 |Ira |**< |
- | > | + | | Key10 |Key20 |Aya |**< |
+ | | Key20 | |Bruce |**< | ||
- | + | ===Action parameters=== | |
- | \\ | + | >Primary key: Primary |
- | **Result:** | + | >Parent key: Parent |
- | ^Primary | + | >Build path with: Labels(Names) |
- | | Key01 |Key10 |Bob |<nowiki>Key20|Key10|Key01</ | + | |
- | | Key02 |Key10 |Sue |<nowiki>Key20|Key10|Key02</ | + | |
- | | Key03 |Key10 |Erica |< | + | |
- | | Key04 |Key10 |Yelena |< | + | |
- | | Key05 |Key11 |Chris |< | + | |
- | | Key06 |Key11 |John |< | + | |
- | | Key10 |Key20 |Tia |< | + | |
- | | Key11 |Key20 |Mariko |< | + | |
- | | Key20 | |Bruce |< | + | |
\\ | \\ | ||
- | > | + | ====Example #2==== |
+ | >Generate hierarchy | ||
- | ^Primary | + | ===Before (source table)=== |
- | | Key01 |Key10 |Bob |< | + | ^Primary |
- | | Key02 |Key10 |Sue |< | + | | Key01 |Key10 |Bob | |
- | | Key03 |Key10 |Erica |< | + | | Key02 |Key10 |Ann| |
- | | Key04 |Key10 |Yelena |< | + | | Key03 |Key10 |Ira | |
- | | Key05 |Key11 |Chris |< | + | | Key10 |Key20 |Aya | |
- | | Key06 |Key11 |John |< | + | | Key20 | |Bruce | |
- | | Key10 |Key20 |Tia |< | + | |
- | | Key11 |Key20 |Mariko |< | + | |
- | | Key20 | |Bruce |< | + | |
- | + | ||
- | \\ | + | |
- | > Build path with: " | + | |
- | > Reverse the paths: | + | |
+ | ===After (result table)=== | ||
^Primary | ^Primary | ||
- | | Key01 |Key10 |Bob |< | + | | Key01 |Key10 |Bob |**< |
- | | Key02 |Key10 |Sue |< | + | | Key02 |Key10 |Ann|**< |
- | | Key03 |Key10 |Erica |< | + | | Key03 |Key10 |Ira |
- | | Key04 |Key10 |Yelena |< | + | | Key10 |Key20 |Aya |**< |
- | | Key05 |Key11 |Chris |< | + | | Key20 | |Bruce |**< |
- | | Key06 |Key11 |John |< | + | |
- | | Key10 |Key20 |Tia |< | + | |
- | | Key11 |Key20 | + | |
- | | Key20 | |Bruce |< | + | |
+ | ===Action parameters=== | ||
+ | >Primary key: Primary | ||
+ | >Parent key: Parent | ||
+ | >Build path with: Keys | ||
+ | >Reverse the paths | ||
\\ | \\ | ||
Line 100: | Line 84: | ||
* [[transformations: | * [[transformations: | ||
* [[transformations: | * [[transformations: | ||
- | |||
transformations/hierarchypath.txt · Last modified: 2025/01/15 21:40 by craigt