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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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