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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.