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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Syndicate_Admin
Administrator
Administrator

Power Querry value stored as Table

Hello,

 

I'm really struggling with one column. I imported data through the API, and some rows have the value visible, while others can be seen as a Table. I know that the correct value is present in the Table. Is there simple way to go over it and make both values visible in new added column?

 

 

Thank You

1 ACCEPTED SOLUTION
AlienSx
Super User
Super User

Hello, @Ints. If table consists of single row and column the try this: 

Table.AddColumn(
   Source, "new_column_name", 
   (x) => try Table.FirstValue(x[data_column_name]) otherwise x[data_column_name]
)

View solution in original post

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

I found my mistake and now its worked. Thank you very much!!

Syndicate_Admin
Administrator
Administrator

Yes, i m not using coding very often. I changed as you writed and now I have new error with Column name:

 

Syndicate_Admin
Administrator
Administrator

Thanky you for your answer. Seems that it may work, but there is error when record wasnt found. There are some null values too. Need to add something more?

I don't see how you may get an error with this code other than you don't know how to correctly incorporate it into yours. Replace data_column_name with SHVc.rows.row.SerialNr. Replace Source with the name of your last step. 

AlienSx
Super User
Super User

Hello, @Ints. If table consists of single row and column the try this: 

Table.AddColumn(
   Source, "new_column_name", 
   (x) => try Table.FirstValue(x[data_column_name]) otherwise x[data_column_name]
)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.