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.
Hi!
I need help making a column that "standarizes" names. Example:
Manufacturer | Standarized manufacturer |
Manufacturer A | Manufacturer A |
ManB | Manufacturer B |
ManufacturerA | Manufacturer A |
Man A | Manufacturer A |
Man A. | Manufacturer A |
Manufacturer B | Manufacturer B |
ManufacturerB | Manufacturer B |
Thanks in advance!
Solved! Go to Solution.
Hi @Anonymous ,
in a query Editor, hit on custom Column and add this code:
if Text.Contains([Manufacturer], "A") then "Manufacturer A" else "Manufacturer B"
let me know if this works.
My output:
Thanks,
Tejaswi
Hi @Anonymous ,
In a Query editor,
you can select this column and right click-> Replace values.
or else you can use the IF statements/SWitch statemnts in a calculated column if you have a small data as in your sample data.
here the formula with IF
Standardized manufacturer = if(Sheet18[Manufacturer]="Man A"|| (Sheet18[Manufacturer])="Manufacturer A" || (Sheet18[Manufacturer])= "ManufacturerA"|| (Sheet18[Manufacturer])= "Man A." ,"Manufacturer A", "Manufacturer B")
My output with the above Calculated Colum:
You can also use the DAX measure like this:
Measure 3 = Maxx(Sheet18, Var mylist4= {"Man A", "Man A.", "Manufacturer A", "ManufacturerA"} return IF (Sheet18[Manufacturer] in mylist4, "Manufacturer A", "Manufacturer B" ))
Thanks,
Tejaswi
Thanks!
Is there anyway to make it like, if it detects the "A" it knows its manufacturer A?
Hi @Anonymous ,
in a query Editor, hit on custom Column and add this code:
if Text.Contains([Manufacturer], "A") then "Manufacturer A" else "Manufacturer B"
let me know if this works.
My output:
Thanks,
Tejaswi
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |