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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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