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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ZachRoberts
Frequent Visitor

Text.Combine return null for empty table

Hello,

 

I have a column of tables like below:

 

hR2KOr0RWg.png

 

I can expand the column to extract the values but that adds a duplicate line for each value - so I am using the below line in my power query to add a column that combines the text from a value in the tables.

 

Table.AddColumn(#Source, "Project/System", each Text.Combine(Table.Column[ProjectSystem], "Title"), ", "))

 

This works as expected and I am presented with a new column that combines the values as I like but I do have a few records where this throws an error because the table is empty. 

 

How can I have the above line return null to the new column if the table value is empty?

 

Thanks,

Zach 

1 ACCEPTED SOLUTION
ChrisMendoza
Resident Rockstar
Resident Rockstar

@ZachRoberts - have you taken a look at https://docs.microsoft.com/en-us/power-query/handlingerrors ? e.g. try otherwise






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
ChrisMendoza
Resident Rockstar
Resident Rockstar

@ZachRoberts - have you taken a look at https://docs.microsoft.com/en-us/power-query/handlingerrors ? e.g. try otherwise






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Thanks! That was the ticket 🙂 

 

changed my query to the below and it worked

 

Table.AddColumn(#Source, "Project/System", each  try Text.Combine(Table.Column([ProjectSystem], "Title"),", ") otherwise null)

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.