Forum Discussion
SAP ODBC.DataSource SupportsDerivedTable
- Anonymous4 years ago
Hi pbi_user_rdg ,
According to the official document—— The supported options records fields fall into two categories—
1. Are public and always available. The record can contain the following fields:
HierarchicalNavigationCreateNavigationPropertiesConnectionTimeoutCommandTimeoutSqlCompatibleWindowsAuthSo for example:
Source = Odbc.DataSource("dsn=Test", [ConnectionTimeout=#duration(0,0,10,0)])2. Are only available in an extensibility context.
Since SupportsDerivedTable option is not public ,it is used in Overriding SqlCapabilities, you could not directly use it.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Anonymous!
How can one use the options available only as extensibility context?
Here's my M-query that does not store the table in DirectQuery mode:
let
Source =
Odbc.DataSource(
"dsn=localhost SQL Server",
[HierarchicalNavigation=true, SqlCapabilities=[SupportsDerivedTable = true]
]
),
#"DW_Database" =
Source{
[Name="dbname",Kind="Database"]
}[Data],
dbo_Schema =
#"DW_Database"{
[Name="dbo",Kind="Schema"]
}[Data],
DimDate_Table =
dbo_Schema{[Name="DimDate",Kind="Table"]}[Data]
in
DimDate_Table