Dynamic Expand List

Comments

3 comments

  • Konsta Danyliuk

    Hello Matthew.
    May I ask you to provide a few records sample of the initial data and the final result you are looking for, please. 

    0
    Comment actions Permalink
  • Matthew Burns
    Transactions(LIST) SampleSize(INT) Example Result(LIST)
    anise, basil, caraway, cilantro, chamomile, dill 2 anise, basil
    cilantro, chamomile, dill, fennel, lavender, lemon Grass 3 cilantro, chamomile, dill
    anise, basil, caraway, cilantro, chamomile, dill 1 anise
    anise, fennel, lavender, parsley, rosemary 2 anise, fennel
    0
    Comment actions Permalink
  • Konsta Danyliuk

    Hello Matthew.
    Thank you for the sample.

    I guess in this case you could use SUBLIST  function - SUBLIST(<Initial LIST>;<Start from the element>;<Length>).

    SUBLIST(#Transactions;0;#SampleSize) -  which means Create a new list from Transactions > Start from Transactions first element > include SampleSize elements of the initial Transactions list.

    0
    Comment actions Permalink

Please sign in to leave a comment.