Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
PowerBI does not recognize NUMERIC data type in BigQuery as truly decimal for query folding. It does autodetect as decimal in Query Editor but it does not send a native SUM() when it should.
No issue - meaning query folding works - if data type in BigQuery is FLOAT or INTEGER.
Unfortunately, GoogleBigQuery.DataBase configuration options are very limited e.g. SoftNumbers=true would have solved the problem but it's only available in ODBC.
How to reproduce using public dataset
let Source = GoogleBigQuery.Database(null), #"bigquery-public-data" = Source{[Name="bigquery-public-data"]}[Data], crypto_zcash_Schema = #"bigquery-public-data"{[Name="crypto_zcash",Kind="Schema"]}[Data], transactions_Table = crypto_zcash_Schema{[Name="transactions",Kind="Table"]}[Data] in transactions_Table
select `block_number`, sum(cast(`input_count` as FLOAT64)) as `C1` from `bigquery-public-data`.`crypto_zcash`.`transactions` group by `block_number` LIMIT 1000001 OFFSET 0Not sure why input_count is casted to FLOAT as INTEGER can be aggregated as-is. This should not happen as it consumes unnecessary resource (hence time).
Error Message:
OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the data source. Please try a simpler expression..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.