Forum Discussion
Apply a filter to data from Bigquery when navigating to the table
- 5 years ago
Right click Navigation in Applied Steps and choose "Insert Step after". Then add a custom step with a filter. E.g.
= Table.SelectRows(#"Previous Step", each [Merchant] = "testmerchant")Replae #"Previous Step" with the text that is generated by default when you do "Insert Step After" .
Hi Anonymous
Make sure you have the formula bar turned on. In PowerQuery go to VIEW and enable the checkbox for FORMULA BAR. You now see an extra bar where you can add the code.
Does that do the trick?
Regards
Bas
The issue I have is :
"DataSource.Error: ODBC: ERROR [42000] [Microsoft][BigQuery] (70) Invalid query: Cannot query over table 'xxxxxxxxx.dtrk_daily_analytics' without a filter over column(s) '_PARTITION_LOAD_TIME', '_PARTITIONDATE', '_PARTITIONTIME' that can be used for partition elimination
Details:
DataSourceKind=GoogleBigQuery
DataSourcePath=GoogleBigQuery
OdbcErrors=[Table]"
None of '_PARTITION_LOAD_TIME', '_PARTITIONDATE', '_PARTITIONTIME' are defined in actual Schema of BigQuery table. But at the time of table creation, the table was configured as:
So, not sure how to filter on them ('_PARTITION_LOAD_TIME', '_PARTITIONDATE', '_PARTITIONTIME') at Power BI side if adding a custom step. Can I use SQL syntax in Formula Bar ?
On BigQuery side, to query the data it would be something like: