Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to split column with Multiple information

Hi All,

 

I have a data source as an excel file which has a particular column having multiple information in it.

I want to split the column in different columns. However the challenge i am facing is that some rows in the column have coupon information and some do not. so when i split column with delimiter the row which does not have coupon information should return null instead of filling with VAT information. Can you suggest a workaround in M for this?

 

 

  • If you add custom columns for each sub-field using Text.BetweenDelimiters to find the specific info, for example,  

    Text.BetweenDelimiters([Total with vat], "Free Shipping", ";") that should do it.

2 Replies

  • HotChilli's avatar
    HotChilli
    Community Champion

    If you add custom columns for each sub-field using Text.BetweenDelimiters to find the specific info, for example,  

    Text.BetweenDelimiters([Total with vat], "Free Shipping", ";") that should do it.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks for the solution HotChilli appreciate it 🙂