Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Col A | Col B |
AB | XX-TX-AB |
CD | CD-TX-AB |
EF | EF-EF-IL |
GH | IL-GH-XX |
IJ | XX-IJ-XX |
In the Above table there is Col A and Col B. The task is to remove all the values present in Col B based on the Values in the Entire Col A. The above table should look like
Col A | Col B |
AB | XX-TX- |
CD | -TX- |
EF | --IL |
GH | IL--XX |
IJ | XX--XX |
Can anyomne simplify a Power Query M formula. As There has been multiple tries regards the same but the only method that is observed is using replace values but Col A consists of more than 100 values and it is difficult to get through each column, so need to take values from entire column and see if any value exists in Col B then replace it with ""(Blank)
Solved! Go to Solution.
= Table.TransformColumns(Source,{"Col B",each Text.Combine(Splitter.SplitTextByAnyDelimiter(Source[Col A])(_))})
= Table.TransformColumns(Source,{"Col B",each Text.Combine(Splitter.SplitTextByAnyDelimiter(Source[Col A])(_))})