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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors