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
finzilla
Frequent Visitor

null value is eliminated by an aggregate or other SET operation

Setting up a client's PBI and one of the tables gives me this error when importing into Desktop. I've used the same view for other clients with the same db structure. Is there a way to bypass the error?

 

Failed to save modifications to the server. Error returned: 'OLE DB or

ODBC error: [DataSource.Error] Microsoft SQL: Warning: Null value is

eliminated by an aggregate or other SET operation..'.

 

 

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @finzilla,

 

It seems that this error is caused by your data source in Database.

 

To avoid the warning, you may could use “set ansi_warnings off” before the script. 

 

You could have a reference in this blog.

 

https://blog.sqlauthority.com/2015/02/13/sql-server-warning-null-value-is-eliminated-by-an-aggregate...

 

Hope this can help you!

 

Best Regards,

Cherry

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

How can I use “set ansi_warnings off” before the script in PBI?

Anonymous
Not applicable

Did you resolve this ?

I added COALESCE ([col],"null") to by pass my issue.  or zero if you have integer. 

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.