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
rmahadik
Regular Visitor

Need help to create a list using a custom function and add it has column in table.

Hi Experts,

I am trying to perform a iterative logic to get the row count of each table in Decision_Table. 

Decision_Table contains column with name Data_DB having tables. So I planned to write a custom function which will first generate a list of row count of each table in column Data_DB of Decision_Table and then add list as column in Decision_Table.

 

However I'm not able to create the list and getting below error. Please advise how to create a list if output is coming in iterative way. Or else please advise on solution for above requirement.

rmahadik_0-1661511652465.pngrmahadik_1-1661511681515.png

 

output:

rmahadik_2-1661511717765.png

 

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @rmahadik ,

 

On your table with the nested table column, just add a new custom column with the following:

 

Table.RowCount([Data_DB])

 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @rmahadik ,

 

On your table with the nested table column, just add a new custom column with the following:

 

Table.RowCount([Data_DB])

 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Many Thanks @BA_Pete  solution worked 🙂

rmahadik
Regular Visitor

@Vijay_A_Verma @AlexisOlson @BA_Pete @wdx223_Daniel , Guys please assist me on this.

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.