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
Chelle
Regular Visitor

Importing an Excel PowerQuery

Hi everyone, 

I am trying to import a Query into PowerBI desktop by using this:

=Excel.CurrentWorkbook(File.Contents("location\Input_full.xlsm"){[Name="QueryTableName"]}[Content])

but it gives me this:
Expression.Error: We cannot convert a value of type Binary to type List.
Details:  
Value=[Binary]
Type=[Type]

What I want is for PowerBI to extract the content of the Excel PowerQuery and import it as another query within PowerBI and not just a connection (like a table in excel, to be used as a source for other queries)

Is this even possible?

Thanks in advance.

 

2 REPLIES 2
danextian
Super User
Super User

Hi @Chelle ,

 

Excel.CurrentWorkbook is not a Power BI M  function. It is specific to Excel only.  Try this feature instead.

danextian_0-1719750950601.png

This will import the raw table that's within that workbook.  If you instead want to import the output of Power Query, you must load it to a table and then connect to that table using the Excel connector.

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I'll give it a try.  Thanks!

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.

Top Solution Authors
Top Kudoed Authors