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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Unpivot column results in This Table is Empty

Hi all,

 

My source is coming from a folder with multiple excel files which have been formatted into the same headers and range. When I try to unpivot the columns (these columns are basically dates as header and value under the header), it will show as

 

"This table is empty"

 

I have manage to identify which excel files are causing the error but I can't seem to pinpoint the issue in the excel file. Excluding the files which causing the error, I mange to unpivot the columns perfectly without any issue.

 

Do let me know if any other information I need to provide.

 

Thanks. 

3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

How about testing each table before unpivoting?

if Table.IsEmpty(#"Previous Step") then ... else Table.Unpivot(#"Previous Step", ...)

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

i just can think of that you are applying some function to every Excel-file (Read file, promote headers in the usedrange, etc) and this function causes to get a empty table of one Excel-file. Are you unpivoting the data after reading every single file or after combing all results?

 

BR

 

Jimmy

Fowmy
Super User
Super User

@Anonymous 

Can you share some sample data and the expected result to have a clear understanding of your question?
You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
____________________________________
How to paste sample data with your question?
How to get your questions answered quickly?

_____________________________________
Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.