Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Split one row in two or more

Hi Family,

 

I have a Sales table with a column of terms payments, as you can see below:

 

 

o 50 * SD * 10 means that the calculated DueDate is equal to “Ship Date” + 10 and that the amount to be paid is 50% of the amount of the line

o 50 * SD * 60 means that the calculated DueDate is equal to " Ship Date " + 60 and that the amount to be paid is 50% of the amount of the line

 

So if I have a purchase of $ 150,000 with this payment term and a " Ship Date " = 2021-06-01, we should find in the model of two purchases

  • $ 75,000 payable on 2021-06-11 (50% 10 days later than Ship Date)
  • $ 75,000 payable on 2021-07-30 (50% 60 days later than Ship Date)

 

Importantly, the original line of $ 150,000 should no longer be there or no longer counted. We could keep it by changing the amount payable to $ 0, so nothing to pay.

 

My question is, how can I split the original row in two (or more in another case)?  


Thank you all 

aj1973 
Anonymous 

3 Replies

  • aj1973's avatar
    aj1973
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 

    Not sure to understand your case but to split a column By: Position, Space, Delimiter, Number of characters... you can use Power Query, Select the column and:

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      I need to split a row with condition 

      • v-kelly-msft's avatar
        v-kelly-msft
        Icon for Community Support rankCommunity Support

        Hi Anonymous ,

         

        Can you provide an expected output based on your sample data?

         

        Best Regards,
        Kelly

        Did I answer your question? Mark my post as a solution!