Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Extracting Text Before Delimiter

I created a new column in Power Query by extracting "Text Before Delimiter". During my audit, there is a field within the column that I would like to update: "NULL" = [BLANK]. How would we be able to do that in Power Query? Below is sample data: Table 1 = Current Output / Table 2 = Expected Output. 

(Table 1 = Current Output)

LabelsLabels Bucket
  
NULLNULL
1,21
2,3,42
15,99,200015

(Table 2 = Expected Output)

LabelsLabels Bucket
  
NULL 
1,21
2,3,42
15,99,200015

Any advice is greatly appreciated. 

  • Anonymous's avatar
    Anonymous
    5 years ago

    amitchandak  Thank you for your support. I tried your suggestion but could not figure out how to add the command. After playing around with the column, "REPLACE VALUE" worked great. 

    Once again, thanks for your support!

2 Replies

  • Anonymous , Try a new column

    try one of the two

    =Text.Replace("Null", null)

     

     

    =Text.Replace("Null", "")

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak  Thank you for your support. I tried your suggestion but could not figure out how to add the command. After playing around with the column, "REPLACE VALUE" worked great. 

      Once again, thanks for your support!