Skip to content
  • There are no suggestions because the search field is empty.

How do I create functions in eyko to combine, clean, and transform data for reporting and analysis?

Learn how to create and apply eyko functions to clean, combine, and aggregate data efficiently.

It explains:

  • How to create and name new functions in eyko.

  • How to concatenate data fields, define parameters, and apply delimiters.

  • How to create multi-layered and aggregation-based functions (e.g., counts or cleaned IDs).

  • How to save, test, and verify functions for accuracy in reports and dashboards.

  • Best practices for naming, testing, and managing transformation logic efficiently.

Key Steps

Step 1: Start a New Function 0:09

generated-image-at-00:00:09

  • Click on the 'Start' button to add a new function.

  • Name the function (e.g., 'customer'). This function will combine customer ID and customer name.

Step 2: Select Data to Concatenate 0:23

generated-image-at-00:00:23

  • Choose 'customer ID' from the data options.

  • Locate and select the 'concatenate' function from the list.

Step 3: Define Concatenation Parameters 0:32

generated-image-at-00:00:32

  • Select 'customer name' as the second item to concatenate.

  • Choose a delimiter (e.g., a dash) to separate the concatenated values.

Step 4: Save and Verify the Function 0:46

generated-image-at-00:00:46

  • Save the function.

  • Go into edit mode to view the new function and confirm it works as expected.

Step 5: Create a Multi-layered Function 1:18

generated-image-at-00:01:18

  • Click 'Add' to create another function (e.g., 'order').

  • Locate 'sales orders' and select 'order ID'.

Step 6: Clean Up Order ID 1:36

generated-image-at-00:01:36

  • Use the 'right' function to drop the 'ORD-' prefix from the order ID.

  • Use the '+' operator to append the word 'order' to the cleaned ID.

Step 7: Save and Review the Order Function 2:10

generated-image-at-00:02:10

  • Save the function and check the output for readability.

Step 8: Create a Count Function 2:34

generated-image-at-00:02:34

  • Name the function (e.g., 'count of products').

  • Select 'sales order details' and find 'product ID'.

Step 9: Use Aggregation to Count Products 2:50

generated-image-at-00:02:50

  • Choose the 'count' function to count non-blank product IDs.

  • Save the function.

Step 10: Understand Aggregation Context 3:34

generated-image-at-00:03:34

  • Note that aggregations are context-driven based on the report or dashboard they are used in.

Step 11: Review the Report 4:05

generated-image-at-00:04:05

  • Pull up a report to see how 'count of products' is displayed alongside total quantity.

Cautionary Notes

  • Ensure that the delimiter used in concatenation does not conflict with existing data formats.

  • Be aware that aggregations may yield different results based on the context of the report.

Tips for Efficiency

  • Use meaningful names for functions to easily identify their purpose.

  • Test functions after creation to ensure they perform as expected before finalizing.

Link to Loom

https://loom.com/share/7be9ed7186134034baac8c44ad0503ac

Cookie Policy Privacy Policy