Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Luizcarlospf
Helper I
Helper I

Overwrite empty columns by default values

Sem título.png

To put it in context: I have 2 related tables, but not all lines are related. When I go to view all the values of the tables in an array, I have empty values (names)

As you can see in the image, I need to fill in the value "empty" with a default value ("not registered").
I know it is possible to ignore these values, but I need them to appear.

How do I force a name on (empty) values without a direct relationship between tables.

1 ACCEPTED SOLUTION
timg
Solution Sage
Solution Sage

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:

11

22

3.PNG

Hope that helps!

Regards,

Tim





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
timg
Solution Sage
Solution Sage

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:

11

22

3.PNG

Hope that helps!

Regards,

Tim





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks!!

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.