Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.