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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Invoke custom function: returned table neglects column data formats

Hi,

I use a custom function to transform multiple excel workbooks and worksheets. Therefore, I pass two parameters, the path to the workbook and the name of the worksheet. When I manually test the custom function the created result table considers the column data types. However, when I invoke the custom function from my query the column format of my returned table is only text.

I noticed in the video below at the very end after minute 23 that the returned  table apparently also does not returned the column types defined within the function.

https://www.youtube.com/watch?v=rohXtAlIgqY

Any advise highly appreciated.

Thanks and best regards

Thomas

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Set-column-type-while-expanding-from-merged-query/m-p/307648#M136144

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Set-column-type-while-expanding-from-merged-query/m-p/307648#M136144

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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