Forum Discussion
Anonymous
6 years agoNot applicable
Token EOF Error
I am getting a token eof error on this query and I am not sure why. The week variable prints 26 when I run this with out the database part. let week = Date.WeekOfYear(DateTime.LocalNow()) in w...
- 6 years ago
Now what will your query do on Jan 1st 2021? 🙂
lbendlin
Super User
6 years agowere you planning to use the week in the calculation further below?
power query can only return one result - you asked it to return two.
- Anonymous6 years agoNot applicable
OK- I need to use the weeknumber in the table name. I knocked it down and now I get this:
DataSource.Error: The table has no visible columns and cannot be queried.
Details:
data-resilient-all-2020week- lbendlin6 years ago
Super User
Show your new Power Query?
- Anonymous6 years agoNot applicable
let
week = Date.WeekOfYear(DateTime.LocalNow()),
Source = Odbc.DataSource("dsn=SystemDSN_ELK_PROD", [HierarchicalNavigation=true]),
gsec_Database = Source{[Name="gsec",Kind="Database"]}[Data],
#"data-resilient-all-2020week_Table" = gsec_Database{[Name="data-resilient-all-2020week",Kind="Table"]}[Data]
in
#"data-resilient-all-2020week_Table"