I have a table called Things and another called Options
The Options table has a list of attribute columns and each has an associated Cost Modifier
- Name
- Type (Color, Size, Shape, Special)
- Cost Modifier
The Things table has Lookup values that point to views of certain Types of Options
- Color Option (Single Select)
- Size Option (Single Select)
- Shape Option (Single Select)
- Special Options (Multi Select)
What I want to do is to aggregate the unique options from (Color, Size, Special) and use the resulting value to create a Rollup Sum of all Costs.
Example:
Options (Name | Type | Cost)
Red | Color | 3
Black | Color | 1
Large | Size | 2
X-Large | Size | 3
Hoodie | Shape | 5
V-neck | Shape | 3
T-Shirt | Shape | 2
Distressed | Special | 2
Glow in the Dark | Special | 1
Glittered | Special | 2
Things (Name | Color | Size | Shape | Special | f(Color + Size + Shape + Special) | sum(lookup(Unique Selected)[Cost])
Princess Hoodie | Red | Large | Hoodie | Red, Distressed, Glittered | [Red, Hoodie, Distressed, Glittered] | $14
- I know I added Red in the special and I would normally not have that option in more than one category, but this is academic