Future

Future ideas for SA5 Calc

Progression;

  • Very simple calcs ( SUM, COUNT, etc. )

    • Single-pass

    • < 100 items as data source ( or multiple collection lists )

  • More complex calcs ( STD, AVG, etc. )

  • More complex sourcing

    • Other SA5 data sources

    • FS Load

  • Grouping and rollups

    • Arbitrary groupings

      • Multiple tiers possible

  • Crosstabs, matrices, etc.

Progressive Data Source Definition ( DSD )

Define a source using SA5 Data standards, or else a new arbitrary standard which is based on e.g. CSS Queries and Attributes.

Concept;

<sa5-data-source
  name="price"
  selector=".item[data-price]"
  attr="data-price"
  ></sa5-data-source> 

Or;

  • source from internal content

  • source from internal secondary selector

Transform;

<sa5-data-source
  name="price-group"
  transform="group"
  data-source="price"
  selector=".item[data-price]"
  attr="data-price"
  >
  {
    ["group name 1", "lt", 1000],
    ["group name 2", "between", 1001, 1000],
  }
  </sa5-data-source> 

Grouping Concepts

Allow a single item to match multiple groups. This gives flexibility and puts the definition rules on the user.

  • lt, lte

  • gt, gte

  • between - > >= < <=

Auto calculate count

Auto calculate sum

Consider referencing grouped elements as their own data source for other purposes

Challenges

Consider range grouping approaches - between, > >= < <=

Last updated