I am trying to create transaction IDs for journal entries in my output. Non-InterCompany are two line entries and Intercompany are four line entries. I am able to get the transaction ID for Non-IC by using the formula FLOOR(([RecordID]-1)/2)+1. However, I do not know how to get transaction IDs for four line entries. I am highlighting my expected output in the picture below. Thanks!
