DAX的参数查询

下面的查询:

要注意,支持参数查询的有:

  1. OLE DB for OLAP MSOLAP driver with ADOMD.NET library
  2. OLE DB for OLAP MSOLAP driver with ADOMD library
  3. OLE DB MSOLAP driver with ADO connection
  4. XMLA Execute Command

半支持的有:

  1. Reporting Services with Analysis Services driver -支持使用DMX编辑器,而且必须手动插入参数。不支持REPORT BUILDER
  2. Reporting Services with OLE DB driver - 可以替代的连接字符为:例如,CONNECT TYPE: OLEDB CONNECT STRING: PROVIDER=MSOLAP;DATA SOURCE=LOCALHOST\TABULAR;CATALOG=ADVENTUREWORKDW;COMMAND TEXT:= "EVALUATE CALCULATETABLE(
    'Product Subcategory',
    'Product Category'[Product Category Name] = """ & Parameters!Category.Value & """ )"

不支持的有:

  1. OLE DB MSOLAP driver with ADO.NET connection

XMLA的例子:


ADOMD使用C#的例子:


你可能感兴趣的:(查询)