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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Niels123
Frequent Visitor

Expression.Evaluate + expanding tables showing records correctly in Query Editor but not in dataview

Hi everyone,

 

I'm trying to append two identical excel files into one using Expression.Evaluate and expanding the tables afterwards:

#"Added Custom" = Table.AddColumn(#"Changed Type", "Table names", each Expression.Evaluate([Source table], #shared)),
#"Expanded Table names" = Table.ExpandTableColumn(#"Added Custom", "Table names", {"year", "number", "Month", .......}),

 

The advantage of working this way is you can keep the source of the excel as a column (without having to add extra columns in the source excel files).

 

I found this solution here:

Solved: Append Table include source name - Microsoft Power BI Community

 

This gives me the desired result in the Query editor:

Niels123_1-1679570340773.png

 

But when looking in the data view I only see the names of the two appended excels (so not the expanded/appended records):

Niels123_2-1679570550502.png

 

Am I doing something wrong?

 

Thanks for your expertise!

2 REPLIES 2
lbendlin
Super User
Super User

Expression.Evaluate is overkill for that.  Create a list of the Excel files you want to append, create a function for the parser, add a custom column calling the parser for each file, then expand that column.

Thanks for the help! I'll try that out 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors