ADO.NET Provider for Azure Analysis Services

Build 26.0.9655

JOIN Queries

Joining Measures and Dimensions

In order to retrieve measures per specific level value, issue a join between the Measure view and any Dimension or set of dimensions. For example, issuing the following retrieves the number of customers in each city:

SELECT m.[Customer Count], c.[City] 
FROM [AdventureWorksDW2012Multidimensional-SE].[Adventure Works].Customer AS c 
INNER JOIN [AdventureWorksDW2012Multidimensional-SE].[Adventure Works].Measures AS m

Note that there is no ON condition necessary. That is because tables are already related appropriately in Azure Analysis Services. If you are using a tool that requires ON conditions, set IncludeJoinColumns to true. This appends a number of foreign key columns to each view, relating them to one another. These columns do not return data on their own, but may be picked up on automatically with tools to construct the ON conditions for joins where needed.

For more information on other types of join, see Retrieving Analysis Services Data

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655