Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Sequence number

Hi Experts,

 

I want to get the sequence number for the partcel ref as below:

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    hi Anonymous , in addition to solution provided by amitchandak  - if the "Parcel_Ref" is not a unique field then you may have to create a "Key" column and add a seq_no column based on the key column 

     

    Seq_no = countx(filter('OrderDetails',[Key] =earlier([Key]) && [Index] <=earlier([Index])), [Key])

     

     

    Please mark the post as a solution if my comment helped with solving your issue. Thanks! 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    hi Anonymous , in addition to solution provided by amitchandak  - if the "Parcel_Ref" is not a unique field then you may have to create a "Key" column and add a seq_no column based on the key column 

     

    Seq_no = countx(filter('OrderDetails',[Key] =earlier([Key]) && [Index] <=earlier([Index])), [Key])

     

     

    Please mark the post as a solution if my comment helped with solving your issue. Thanks!