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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
FrankHazel
New Member

Excel.Workbook definition

On page https://msdn.microsoft.com/en-us/library/mt260859.aspx the definition of Excel.Workbook has 2 parameters. In the code generated by PowerBI the function has a third parameter. More specifically, the second is always "null'", the third one is "true".

As a test I removed the "null" second parameter and now the tables loaded with the first line promoted as header, exactly as the second parameter is supposed to do.

What happened here? Does PowerBI generate incorrect code or is the definition page wrong or ?

 

Thanks in advance for your answer

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@FrankHazel

 

The MSDN documentation is somewhat out-of-date. The best place to find up-to-date documentation is in Power Query or Power BI Desktop itself. Inside the query editor, if you enter the formula
= Excel.Workbook
you will see the most recent documentation for that function.

 

Excel.Workbook definition_1.jpg

 

Best Regards,
Herbert

View solution in original post

2 REPLIES 2
v-haibl-msft
Microsoft Employee
Microsoft Employee

@FrankHazel

 

The MSDN documentation is somewhat out-of-date. The best place to find up-to-date documentation is in Power Query or Power BI Desktop itself. Inside the query editor, if you enter the formula
= Excel.Workbook
you will see the most recent documentation for that function.

 

Excel.Workbook definition_1.jpg

 

Best Regards,
Herbert

v-qiuyu-msft
Community Support
Community Support

Hi @FrankHazel,

 

I can report this issue internally, will update to you once get feedback.

 

Best Regards,
Qiuyun Yu

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.