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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.