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
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
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.