Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I'm trying to load a dataset from a BigQuery table and it fails if I use the FORMAT_DATE or FORMAT_DATETIME function in my query.
Query:
SELECT
FORMAT_DATETIME('%Y/%d/%m', datetime_column)
FROM BQ_Table
Error:
I confirmed the data type in the column is datetime. I know that the issue is related to those functions because if I remove them the query works just fine. I'm not sure if the functions themselves are not supported or if its related to the % character that is used within them...or something else entirely.
@jdwalker5 , on the step, you have the option to view the source query on right click. Open that and check if the right query is getting generated .
Also make sure you have written the query in the Advance option connection, and have not changed it manually on the advance editor of the power query, because that will not handle the special characters
Appreciate the quick response, @amitchandak
In this example I am building a blank report from scratch where this is the only connection, and I am indeed pasting my query into the advanced options window in the connection setup.
I think the issue is the special characters because I'm getting the same 'Invalid query' error when I use PARSE_DATE or PARSE_DATETIME.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.