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

"Object reference not set to an instance to an object" when try to group the table in Power Query

I have few SQL tables that i connected with power bi. Already imported all into power bi. But when i try to group the table, this error occured

 

Error message:

DataSource.Error: Microsoft SQL: Object reference not set to an instance to an object.

2 REPLIES 2
Anonymous
Not applicable

I had this issue , thing i did to resolve was checking null values,variables or expressions in the query, make sure that they are not null or empty. You can do this by adding a check for null values in the query or by using the "IsBlank" function in Power BI.

jennratten
Super User
Super User

In the past I have seen this error message appear when there is an issue with the file, most often the file cannot find the data model.  Please try save-as with a different file name, close and re-open the file and see if that resolves the issue.

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 Kudoed Authors