Defining Datasets for Interactions

Learn about defining datasets for interactions.

Dataset for Sales interaction

val sales:DataFrame = framework.dataAccess
.dataset(
  new InteractionDatasetBuilder()
    .ofType("configuration/interactionTypes/Sales")
    .explode("attributes.Year", "Year")
    .explode("attributes.GrossSales", "Sales")
    .explode("members.HCO.Id", "HCO")
    .explode("members.Product.Id", "Product")   
    .asTable("sales"))
.build()
sales.printSchema()
sales.cache()