March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Power BI newbie here looking for some help.
In my scenario, I have a dataset where the same customer may appear in multiple rows.
In each row, the customer's reference ID is the same but across other columns, the data values may vary.
I am trying to find a way to run a partial text value match within one of those other columns (e.g. "Variable Value Column" in the dummy table below). In cases where there is a match with at least one row of the same individual, I wish to locate and remove ALL rows relating to that customer based on the Customer Reference Number.
Using the dummy table below, I would like to run a partial text match against the "Variable Value Column" (e.g. using wildcard search text of "lue 3"), which will identify the row with the cell highlighted in red. I then wish to use the reference number column to identify all other matching rows for that individual and completely remove them from my dataset.
Still learning the PowerBI terminology, so any (simplified) insight and direction would be most appreciated.
Solved! Go to Solution.
Hi @haliddelkic ,
Sorry for misunderstanding.
You could group by reference number and make the setting as below:
After grouping,expanding another 2 columns:
And you will see:
Now you could remove all the "true" rows.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hi @haliddelkic ,
Go to query editor ,then create a custom column as below:
=Text.Contains([Variable Value Column],"lue 3")
Then create a new table to remove the rows where the result is true:(Or you could filter out the rows where the result is true in the oringinal table)
= Table.SelectRows(#"Table",each [Custom]=false)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Thanks for your help, Kelly.
However, I was looking to go a step further and remove all rows where the unique reference number is the same as the row where result is TRUE.
So in this scenario, we've identified a single row and tagged it as TRUE using a custom column. We know that person is Fred Jones and his unique reference number is 1234.
Now I want to locate and remove all rows where reference # is 1234.
Hopefully, that makes more sense.
Halid
Hi @haliddelkic ,
Sorry for misunderstanding.
You could group by reference number and make the setting as below:
After grouping,expanding another 2 columns:
And you will see:
Now you could remove all the "true" rows.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |