Forum Discussion
Overwrite empty columns by default values
- 5 years ago
Hi Luizcarlospf,
The clean solution to this would be to add a record in your [seller name] column with an unused ID (e.g. -1) and "not registered" as seller name. Then to map all the records who currently do not have a seller associated with them to that new ID. Below you'll find an example:
1
2
Hope that helps!
Regards,
Tim
the whole problem is the relationship between the tables that I am using. There are sales unrelated to the seller. changing the tables would be impossible due to the large number of empty values. I need a solution with filter or metrics to just change the empty value for some standard name
Hi,
Regarding my earlier solution, within Power query you could use the replace value function replace all empty values at once.
However, if this is not a fitting solution in this case, you could create a calculated column in the sales table and have it filled with the RELATED() value from the seller table and use a SWITCH() to replace the blanks with a different value.
Regards,
Tim