Forum Discussion
Difference between dates - power query
- camargos886 years agoCommunity Champion
Yes, I don't know what you are using (view/procedure...) but is it possible to use a hardcode ?
Ricardo
- Anonymous6 years agoNot applicable
Hi camargos88 ,
At the moment I have a direct query to a table in SQL Server. I would like to make this change in Power query without any change to the table in the db.
I have recreated this in the Adventure works and this is the query generated. WHere do you reckon I need to change?
let
Source = Sql.Database("******", "AdventureWorks2012"),
HumanResources_Employee = Source{[Schema="HumanResources",Item="Employee"]}[Data],
#"Removed Columns" = Table.RemoveColumns(HumanResources_Employee,{"Person.Person", "Production.Document", "Purchasing.PurchaseOrderHeader", "Sales.SalesPerson"}),
#"Sorted Rows" = Table.Sort(#"Removed Columns",{{"BirthDate", Order.Ascending}})
in
#"Sorted Rows"- camargos886 years agoCommunity Champion
Hi Anonymous ,
After select Direct Query, you click on Advanced options and write your custom SQL.