Forum Discussion
Import query to get less data
Hey,Anonymous
If you want to limit the number of rows while importing the data.
You can Click on the ‘Advanced option’ to expand the options.
In SQL statement you can enter the custom query that is
Select * from table_name where date >= ‘2016-01-01’
**Do mention the database name above
Hope this will help.
- Anonymous3 years agoNot applicable
Thnx for your quick reaction.
I tried:
let
Bron = Sql.Database("sqlsrv-group-prd-datawarehouse.database.windows.net", "sqldb-group-prd-flexkids"),
dbo_VW_FACTUUR = Bron{[Schema="dbo",Item="VW_FACTUUR"]}[Data],Select * from VW_FACTUUR where FACTUUR_DATUM >= ‘2016-01-01’
in
dbo_VW_FACTUURsomehowe it doesn't accept *
Do you know what is wrong?
- grazitti_sapna3 years agoSuper User
Hi Anonymous
Your Welcome.
You can try using evaluate instead select in you SQL query.
let
Bron = Sql.Database("sqlsrv-group-prd-datawarehouse.database.windows.net", "sqldb-group-prd-flexkids"),
dbo_VW_FACTUUR = Bron{[Schema="dbo",Item="VW_FACTUUR"]}[Data],
FilteredRows = EVALUATE dbo_VW_FACTUUR
where FACTUUR_DATUM >= DATE(2016, 1, 1)
in
FilteredRowsThank you. Hope this will help.
- Anonymous3 years agoNot applicable