Forum Discussion
Token EOF Error
- 6 years ago
Now what will your query do on Jan 1st 2021? 🙂
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
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"- lbendlin6 years agoSuper User
You're still not using the week. Maybe you wanted to do this?
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-2020" & week,Kind="Table"]}[Data]
in
#"data-resilient-all-2020week_Table"- Anonymous6 years agoNot applicable
warmer, How do I concatentate 2020 and week? It needs to look like data-resilient-all-202026
Expression.Error: We cannot apply operator & to types Text and Number.
Details:
Operator=&
Left=data-resilient-all-2020
Right=26