Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
XmlaDataSource syntax in C#
posted

How is the syntax in C # for this code?

<olap:XmlaDataSource
      x:Key="DataSource"
      ServerUri="">sampledata.infragistics.com/.../msmdpump.dll"
      Database="Adventure Works DW Standard Edition"
      Cube="Adventure Works"
      Filters="[Sales Territory].[Sales Territory Country]{[Sales Territory].[Sales Territory Country].&amp;[United Kingdom]}"
      Columns="[Date].[Calendar]"
      Rows="[Geography].[City]"
      Measures="Reseller Sales Amount" />

Please Help me, thanks!

Parents Reply
  • 8831
    posted in reply to Parker Smart

    For example if you look at the Adventure Works sample database:

    The unique name of France is [Sales Territory].[Sales Territory].[Country].&[France] but that name is valid for [Sales Territory].[Sales Territory] hierarchy only.

    [Sales Territory].[Sales Territory Country] hierarchy has France member as well:

    but it has a different name - [Sales Territory].[Sales Territory Country].&[France]. So if you haven't another tool where you can check the member unique name you can check what member name pattern is used in the hierarchy you're trying to load.

    Are you sure the unique name of Segment 1 is: [Product].[Sub Category Name].&[Segment 1]

Children