< query />
View Element Reference
< query />
An enclosing element specifying the database query used in the context of mdx views. This element allows the view to explicitly construct the SQL query used in data retrieval to, for example, add calculated columns or aggregate functions. When a <query> element is not used in the view explicitly, the query is composed automatically from the <dataSource> element’s child <field> elements. The <query> element allows the view developer to control the query directly.