Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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])(_))})
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
100 | |
54 | |
21 | |
12 | |
11 |