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
sdc
Helper I
Helper I

BigQuery malformed data in PBI

So I am trying to bring in some data from GCP's BigQuery into PBI desktop and I can connect and pull the data just fine, however when I try to graph it, keeps givng me errors.

In the GCP portal it looks correct when looking at it:

sdc_0-1612451196743.png

 

However inside of PBI it does not:

sdc_1-1612451312761.png

 

Which I assume is the reason for the errors: 

 

Error Message:
OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the data source. Please try a simpler expression..

 

 

Any ideas on how to clean the data or have it come in the right format? 

1 ACCEPTED SOLUTION
sdc
Helper I
Helper I

So it seems that BigQuery has something like "objects" which display as individual columns in their UI but when looking at the data in PBI it does not.

Fix was to create a new view and specifically accessing the columns via the object.column notation

View solution in original post

2 REPLIES 2
sdc
Helper I
Helper I

So it seems that BigQuery has something like "objects" which display as individual columns in their UI but when looking at the data in PBI it does not.

Fix was to create a new view and specifically accessing the columns via the object.column notation

V-lianl-msft
Community Support
Community Support

Hi @sdc ,

 

Based on my understanding,the folding error has to do with query run-time data type mapping and the subsequently associated flags.

You could refer to this sample:

https://github.com/Microsoft/DataConnectors/blob/master/samples/ODBC/SqlODBC/SqlODBC.pq 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.