Access nth element of array

Posted by: richard on 20 September 2021, 7:35 am EST

  • Posted 20 September 2021, 7:35 am EST

    Is there a way to access the nth element of an array in an expression? I see methods for First/Last and I also see Lookup function that will work for objects with a field that I can use to match on but nothing by index.

    I have two different arrays in my data where I would like to display the corresponding values together in a table, list, etc. but I have not been able to figure out how to lookup by index/row number instead of a variable. Is this possible?

    example data:
    "labels": ["one", "two", "three"],
    "values": [10, 20, 30]
  • Marked as Answer

    Replied 20 September 2021, 5:38 pm EST


    It is not possible to look up the nth element using the expression in the report.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels