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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am using Google Big Query as my connector to Power Bi and have the below query to get my data. In the query if you see I have hard coded the value as 7 to get data for last 7 days. I would like to make this more dynamic and get my result for 3 days someday it can be 10 day etc. How can I do this? Can someone show me with steps to be done here
Hey @zzzsharepoint ,
In the query text, you can pass the powerQuery parameter. something like below:
For ex., If parameter name is _paramIntervalDays then query looks something like :
Get error as DataSource.Error: ODBC: ERROR [42000] [Microsoft][BigQuery] (70) Invalid query: Could not cast literal "& LastDays &" to type INT64 at [23:61]
Details:
DataSourceKind=GoogleBigQuery
DataSourcePath=GoogleBigQuery
OdbcErrors=[Table
Here is the query I tried:
looks like It is a syntax error, you can try writing your as a text and pass the 'querytext' as a query parameter in your connection
The query formed looks something like:
Its not working.. have you tried it with Big Query? I created a Parameter of type TEXT and gave a default value of 7. and now I am passing the paremeter as suggested by you in my big query but always end up in error as mentioned above.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!