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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors
Top Kudoed Authors