AML syntax to add an item to an array?

Hi, we are trying to make use of the AML extend feature on a dataset. We would like to add a model to the derived dataset. Is it possible ?

Something like :

Dataset derived_ds = base_ds.extend({
  models: add(base_ds.models, another_table)
})

Hi @dacou, thank you for reaching out. At the moment, we don’t support extending base datasets’ models or extends an array.

However, we already have this item in our roadmap. I will let you know if there’s any update on its progress.

If you can share a bit about your use case, I’m happy to suggest a concrete AML setup or review a snippet.

Hi @Tai_Nguyen ,

Our usecase is the following : we have a main dataset containing metrics and tables about our customer portfolio and their equipment. We want to extend this dataset with additional tables and metrics that permit to perform deeper analysis on some specific product / aspects but we don’t want to overload the main dataset.

The idea was to keep the main dataset as it is and to create some additional “focused” dataset which include additional attributes and metrics as well as a dedicated custom view.

As a workaround we may :

  • add our “product specific” tables to the main dataset but hide them by creating a custom view that would not include them.
  • create a “product specific” dataset including additional metrics and a custom view including the product specific tables

Would that work ?

Hi @dacou, thanks for the detailed context, that helps a lot! I get the goal: Keeping the main dataset lean with focused deep‑dive view.

Regarding your workaround, Dataset View is a great fit ​ here and your plan looks good. If you hit any issues or notice a missing piece while implementing, ping me and I’ll help