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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Apply a function to each Table Record

Hi

 

I have grouped record in a way that for each row I get some columns, and one of this columns is of the type "Table".

I want to transform each table using a function, and then Merge all of this tables in just one.

 

How can I do that?

 

 

borrar1.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Solved!

 

Table.TransformColumns(#"Grouped Rows", {"AllRows", each FuncionUnaTabla(_) })

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I've found how to apply a function to each row, but adding a New Column.

I don't want to add a new column, instead I want to Transform the AllRows columns.

How can I change this code to replace instead of adding a new column?

 #"Added Custom1" = Table.AddColumn(#"Grouped Rows", "Custom", each FuncionUnaTabla([AllRows]))

 

I've tryied with:

= Table.TransformColumns(#"Grouped Rows", each FuncionUnaTabla([AllRows]))

but I get the following error:  "Expression.Error: We cannot convert a value of type Function to type List"

 

Any idea about how to change this?

Thanks!

Anonymous
Not applicable

Solved!

 

Table.TransformColumns(#"Grouped Rows", {"AllRows", each FuncionUnaTabla(_) })
edhans
Super User
Super User

You are going to need to give WAY more info, and preferably the source file (sample data) and your existing M code to date, as well as what the expected output would look like.

 

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum



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!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors