Query Settings
You can view and modify the following global settings for queries.
Language settings
query.language.mdx.dimquery.result.limit
: When you are using very large dimensions, you can use this setting to set the number of data rows (for example, 10000) to be returned for Dimension-only queries (if enabled). When set to -1 it is disabled, and the limitation from thequery.result.max_rows
setting is applied.query.language.mdx.vba.format.firstdayofweek
: Determines the default value used for theFirst_Day_Of_Week
parameter of theFormat
VBA function. The default value isvbSunday
. For more information, including supported values, see Format.query.language.mdx.vba.format.firstweekofyear
: Determines the default value used for theFirst_Week_Of_Year
parameter of theFormat
VBA function. The default value isvbFirstJan1
. For more information, including supported values, see Format.
Including comments in queries
When you need to track and analyze queries, you can include dedicated comments in the inbound queries.
To configure AtScale to propagate these comments to the outbound queries, enable (set to true) the following global settings:
query.includeComments.general.enabled
: Whether to include comments in the outbound query from system-generated queries. Default value is true. Should be set in Custom Settings.query.includeComments.general.userComments
: Whether to include the user comments in the outbound query from inbound queries. Default value is true.query.includeComments.general.queryId
: Whether to include the query id in the outbound query from system-generated queries. Default value is false. Should be set in Custom Settings.query.includeComments.general.userId
: Whether to include the user id in the outbound query from system-generated queries. Default value is false. Should be set in Custom Settings.
For SQL language queries, the comments must be located in the body of the query, right after the SELECT keyword. They should be wrapped like this: :
/* user_comment(`comments here`) */
Here is an example: :
SELECT /* user_comment(`comments here`) */
CAST('Can you see the comment?' AS BOOLEAN)
FROM
asadventuresmall
LIMIT
1
For MDX language queries, the comments must be located in he body of the query, in the PropertyList > UserComments tag. Here is an example:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Execute xmlns="urn:schemas-microsoft-com:xml-analysis">
<Command>
<Statement>
(statement ...)
</Statement>
</Command>
<Properties>
<PropertyList>
<UserComments>This is a user comments space</UserComments>
<Catalog>EngineDemo</Catalog>
(other tags ...)
</PropertyList>
</Properties>
</Execute>
</soap:Body>
</soap:Envelope>
Semi-Additive Metric Settings
query.planning.semiAdditive.defaultAggregationWhenOutOfScope
: Configures the default totaling behavior for semi-additive metrics. WhenTrue
(default), the first/last non-empty subtotal or grand total is shown only when the query contains one of the metric's configured semi-additive dimension attributes. When this setting isFalse
, the first/last non-empty subtotal or grand total is shown when the query does not contain a configured semi-additive dimension attribute.