I am trying to build an app in Power BI. I am aware that Power BI has some trouble handling large dataset, I am afraid this might affect performance thus I'd like to filter the latest data only. Is it possible to filter data before direct query from SQL database in Power BI, as shown in the screenshot below? If not, what are some other good ways to filter data before direct query?
Update:
Tried to run SQL code:
let
Source = Sql.Databases("myproject.database.windows.net", "MyDatabase", [Query="Select * from My_Table where Timestamp> '2021-01-01' "])
in
Source
and
let
Source = Sql.Databases("myproject.database.windows.net"),
MyDatabase = Source{[Name="MyDatabase"]}[Data],
dbo_My_Table = NiagaraDatabase{[Schema="dbo",Item="dbo_My_Table "]}[Data],
#"Filtered Rows" = Table.SelectRows(dbo_My_Table , each [Timestamp] > '2021-01-01')
in
#"Filtered Rows"
and both returned error:
Details: "Microsoft SQL: Incorrect syntax near '='."
