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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors